mirror of https://github.com/ArduPilot/ardupilot
separate out automatic reset of modes and radio
git-svn-id: https://arducopter.googlecode.com/svn/trunk@1804 f9c3cf11-9bcb-44bc-f272-b75c42450872
This commit is contained in:
parent
2937acc2a2
commit
857ca3f5be
|
@ -124,7 +124,7 @@ void init_ardupilot()
|
|||
init_rc_in(); // sets up rc channels from radio
|
||||
init_rc_out(); // sets up the timer libs
|
||||
|
||||
#ifdef ALWAYS_RESET_SETTINGS
|
||||
#ifdef ALWAYS_RESET_RADIO_RANGE
|
||||
{
|
||||
RC_Channel *rcp = &g.rc_1;
|
||||
for (unsigned char i=0; i<8; i++) {
|
||||
|
@ -133,7 +133,9 @@ void init_ardupilot()
|
|||
rcp[i].save_eeprom();
|
||||
}
|
||||
}
|
||||
#endif
|
||||
|
||||
#ifdef ALWAYS_RESET_MODES
|
||||
default_flight_modes();
|
||||
#endif
|
||||
|
||||
|
|
Loading…
Reference in New Issue