Copter: remove some comments

This commit is contained in:
Randy Mackay 2017-01-20 14:37:07 +09:00 committed by Lucas De Marchi
parent c5ba54c3fe
commit af514eb101
4 changed files with 4 additions and 4 deletions

View File

@ -344,7 +344,7 @@ bool Copter::mode_allows_arming(control_mode_t mode, bool arming_from_gcs)
// notify_flight_mode - sets notify object based on flight mode. Only used for OreoLED notify device
void Copter::notify_flight_mode(control_mode_t mode)
{
AP_Notify::flags.flight_mode = mode; //for on-board oled display
AP_Notify::flags.flight_mode = mode;
switch (mode) {
case AUTO:

View File

@ -166,7 +166,7 @@ void Copter::read_battery(void)
// update motors with voltage and current
if (battery.get_type() != AP_BattMonitor::BattMonitor_TYPE_NONE) {
motors->set_voltage(battery.voltage());
AP_Notify::flags.battery_voltage = battery.voltage(); //for on-board oled display
AP_Notify::flags.battery_voltage = battery.voltage();
}
if (battery.has_current()) {
motors->set_current(battery.current_amps());

View File

@ -124,7 +124,7 @@ void Plane::read_battery(void)
low_battery_event();
}
if (battery.get_type() != AP_BattMonitor::BattMonitor_TYPE_NONE) {
AP_Notify::flags.battery_voltage = battery.voltage(); //for on-board oled display
AP_Notify::flags.battery_voltage = battery.voltage();
}
if (should_log(MASK_LOG_CURRENT)) {

View File

@ -324,7 +324,7 @@ void Plane::set_mode(enum FlightMode mode, mode_reason_t reason)
// don't switch modes if we are already in the correct mode.
return;
}
AP_Notify::flags.flight_mode = mode; //for on-board oled display
AP_Notify::flags.flight_mode = mode;
if(g.auto_trim > 0 && control_mode == MANUAL)
trim_control_surfaces();