|
From: | ???????? |
Subject: | [Paparazzi-devel] Why can't I switch the mode from HOME back to AUTO2 through my remote control for my lisa? |
Date: | Thu, 21 Jun 2012 22:26:09 +0800 |
static inline uint8_t pprz_mode_update( void ) {
uint8_t old_status;
if ((pprz_mode != PPRZ_MODE_HOME &&
pprz_mode != PPRZ_MODE_GPS_OUT_OF_ORDER)
#ifdef UNLOCKED_HOME_MODE
|| TRUE
#endif
) {
old_status=pprz_mode;
ModeUpdate(pprz_mode, PPRZ_MODE_OF_PULSE(fbw_state->channels[RADIO_MODE]));
ModeUpdate(pprz_mode, PPRZ_MODE2_OF_PULSE(fbw_state->channels[RADIO_MODE2],pprz_mode)); //it's the function which can switch the current mode to HOME or reverse
if(old_status!=pprz_mode)return TRUE;
else return FALSE;
} else
return FALSE;
[Prev in Thread] | Current Thread | [Next in Thread] |