New compile option FLIGHT_PHASES added. Enabled by default of course.

This commit is contained in:
bsongis
2012-04-14 18:30:18 +00:00
parent 6bc2ddc3d4
commit d5b386d5db
8 changed files with 117 additions and 28 deletions
+5
View File
@@ -500,7 +500,12 @@ void per10ms();
int16_t getValue(uint8_t i);
bool getSwitch(int8_t swtch, bool nc);
#ifdef FLIGHT_PHASES
extern uint8_t getFlightPhase();
#else
#define getFlightPhase() 0
#endif
extern uint8_t getTrimFlightPhase(uint8_t phase, uint8_t idx);
extern int16_t getRawTrimValue(uint8_t phase, uint8_t idx);
extern int16_t getTrimValue(uint8_t phase, uint8_t idx);