mirror of
https://github.com/ArduPilot/ardupilot
synced 2025-02-06 07:53:57 -04:00
Copter: remove some comments
This commit is contained in:
parent
c5ba54c3fe
commit
af514eb101
@ -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:
|
||||
|
@ -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());
|
||||
|
@ -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)) {
|
||||
|
@ -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();
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user