Copter: report simple mode status to GCS as text
This commit is contained in:
parent
3a7036fd67
commit
6c74981010
@ -43,12 +43,15 @@ void Copter::set_simple_mode(uint8_t b)
|
||||
if(ap.simple_mode != b){
|
||||
if(b == 0){
|
||||
Log_Write_Event(DATA_SET_SIMPLE_OFF);
|
||||
GCS_MAVLINK::send_statustext_all(MAV_SEVERITY_LOW, PSTR("Simple:OFF"));
|
||||
}else if(b == 1){
|
||||
Log_Write_Event(DATA_SET_SIMPLE_ON);
|
||||
GCS_MAVLINK::send_statustext_all(MAV_SEVERITY_LOW, PSTR("Simple:ON"));
|
||||
}else{
|
||||
// initialise super simple heading
|
||||
update_super_simple_bearing(true);
|
||||
Log_Write_Event(DATA_SET_SUPERSIMPLE_ON);
|
||||
GCS_MAVLINK::send_statustext_all(MAV_SEVERITY_LOW, PSTR("SuperSimple:ON"));
|
||||
}
|
||||
ap.simple_mode = b;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user