Subversion Repositories FlightCtrl

Compare Revisions

Ignore whitespace Rev 2045 → Rev 2048

/branches/dongfang_FC_rewrite/configuration.c
55,7 → 55,8
#include "configuration.h"
#include "sensors.h"
#include "rc.h"
#include "uart0.h"
//#include "uart0.h"
#include "output.h"
 
int16_t variables[VARIABLE_COUNT];
ParamSet_t staticParams;
81,8 → 82,6
void configuration_applyVariablesToParams(void) {
uint8_t i;
 
debugOut.analog[20] = variables[0];
 
#define SET_POT_MM(b,a,min,max) {if (a>=255-VARIABLE_COUNT) b=variables[a+VARIABLE_COUNT-255]; else b=a; if(b<=min) b=min; else if(b>=max) b=max;}
#define SET_POT(b,a) {if (a>=255-VARIABLE_COUNT) b=variables[a+VARIABLE_COUNT-255]; else b=a;}
SET_POT_MM(dynamicParams.gyroP, staticParams.gyroP, 5, 200);
280,7 → 279,9
staticParams.outputFlash[1].timing = 15;
 
staticParams.outputDebugMask = 8;
staticParams.outputFlags = 16|8|4;
staticParams.outputFlags = OUTPUTFLAGS_FLASH_0_AT_BEEP | OUTPUTFLAGS_FLASH_1_AT_BEEP | OUTPUTFLAGS_USE_ONBOARD_LEDS;
 
staticParams.naviMode = 200; // free.
}
 
/***************************************************/