Subversion Repositories FlightCtrl

Compare Revisions

Ignore whitespace Rev 2048 → Rev 2052

/branches/dongfang_FC_rewrite/commands.c
56,8 → 56,12
#include "eeprom.h"
#include "attitude.h"
#include "output.h"
#include "rc.h"
 
#ifdef USE_MK3MAG
// TODO: Kick that all outa here!
uint8_t compassCalState = 0;
#endif
 
void commands_handleCommands(void) {
/*
88,11 → 92,14
flight_setNeutral();
controlMixer_setNeutral();
beepNumber(getActiveParamSet());
} else if (staticParams.bitConfig & (CFG_COMPASS_ACTIVE | CFG_GPS_ACTIVE) && argument == 7) {
}
#ifdef USE_MK3MAG
else if (staticParams.bitConfig & (CFG_COMPASS_ENABLED | CFG_GPS_ENABLED) && argument == 7) {
// If right stick is centered and down
compassCalState = 1;
beep(1000);
}
#endif
}
 
// save the ACC neutral setting to eeprom
135,6 → 142,8
*
*/
 
#ifdef USE_MK3MAG
uint8_t commands_isCalibratingCompass(void) {
return RC_testCompassCalState();
}
#endif