mirror of
https://github.com/ArduPilot/ardupilot
synced 2025-02-23 08:13:56 -04:00
RC_Channel: rename dataflash to logger
This commit is contained in:
parent
bf1ed2285a
commit
961085fbd1
@ -694,9 +694,9 @@ void RC_Channel::do_aux_function(const aux_func_t ch_option, const aux_switch_po
|
|||||||
SRV_Channels::set_emergency_stop(true);
|
SRV_Channels::set_emergency_stop(true);
|
||||||
|
|
||||||
// log E-stop
|
// log E-stop
|
||||||
AP_Logger *df = AP_Logger::get_singleton();
|
AP_Logger *logger = AP_Logger::get_singleton();
|
||||||
if (df && df->logging_enabled()) {
|
if (logger && logger->logging_enabled()) {
|
||||||
df->Write_Event(DATA_MOTORS_EMERGENCY_STOPPED);
|
logger->Write_Event(DATA_MOTORS_EMERGENCY_STOPPED);
|
||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
@ -707,9 +707,9 @@ void RC_Channel::do_aux_function(const aux_func_t ch_option, const aux_switch_po
|
|||||||
SRV_Channels::set_emergency_stop(false);
|
SRV_Channels::set_emergency_stop(false);
|
||||||
|
|
||||||
// log E-stop cleared
|
// log E-stop cleared
|
||||||
AP_Logger *df = AP_Logger::get_singleton();
|
AP_Logger *logger = AP_Logger::get_singleton();
|
||||||
if (df && df->logging_enabled()) {
|
if (logger && logger->logging_enabled()) {
|
||||||
df->Write_Event(DATA_MOTORS_EMERGENCY_STOP_CLEARED);
|
logger->Write_Event(DATA_MOTORS_EMERGENCY_STOP_CLEARED);
|
||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user