mirror of https://github.com/ArduPilot/ardupilot
enable logs default
git-svn-id: https://arducopter.googlecode.com/svn/trunk@1768 f9c3cf11-9bcb-44bc-f272-b75c42450872
This commit is contained in:
parent
667aa34fbd
commit
20fdbda315
|
@ -115,7 +115,7 @@
|
|||
#define RELAY_TOGGLE 5
|
||||
#define STOP_REPEAT 10
|
||||
|
||||
//#define MAV_CMD_CONDITION_YAW 23
|
||||
#define MAV_CMD_CONDITION_YAW 23
|
||||
|
||||
// GCS Message ID's
|
||||
#define MSG_ACKNOWLEDGE 0x00
|
||||
|
|
|
@ -98,9 +98,12 @@ setup_factory(uint8_t argc, const Menu::arg *argv)
|
|||
return(-1);
|
||||
AP_Var::erase_all();
|
||||
Serial.printf_P(PSTR("\nFACTORY RESET complete - please reset APM to continue"));
|
||||
|
||||
default_log_bitmask();
|
||||
default_gains();
|
||||
|
||||
for (;;) {
|
||||
}
|
||||
|
||||
// note, cannot actually return here
|
||||
return(0);
|
||||
}
|
||||
|
@ -643,7 +646,7 @@ default_throttle()
|
|||
save_EEPROM_throttle();
|
||||
}
|
||||
|
||||
void default_logs()
|
||||
void default_log_bitmask()
|
||||
{
|
||||
|
||||
// convenience macro for testing LOG_* and setting LOGBIT_*
|
||||
|
|
|
@ -304,6 +304,7 @@ void set_mode(byte mode)
|
|||
|
||||
if (g.log_bitmask & MASK_LOG_MODE)
|
||||
Log_Write_Mode(control_mode);
|
||||
|
||||
}
|
||||
|
||||
void set_failsafe(boolean mode)
|
||||
|
|
|
@ -774,8 +774,10 @@ test_rawgps(uint8_t argc, const Menu::arg *argv)
|
|||
while(1){
|
||||
if (Serial3.available())
|
||||
Serial1.write(Serial3.read());
|
||||
|
||||
if (Serial1.available())
|
||||
Serial3.write(Serial1.read());
|
||||
|
||||
if(Serial.available() > 0){
|
||||
return (0);
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue