Browse Source

Copter: remove some comments

master
Randy Mackay 8 years ago committed by Lucas De Marchi
parent
commit
af514eb101
  1. 2
      ArduCopter/flight_mode.cpp
  2. 2
      ArduCopter/sensors.cpp
  3. 2
      ArduPlane/sensors.cpp
  4. 2
      ArduPlane/system.cpp

2
ArduCopter/flight_mode.cpp

@ -344,7 +344,7 @@ bool Copter::mode_allows_arming(control_mode_t mode, bool arming_from_gcs) @@ -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:

2
ArduCopter/sensors.cpp

@ -166,7 +166,7 @@ void Copter::read_battery(void) @@ -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());

2
ArduPlane/sensors.cpp

@ -124,7 +124,7 @@ void Plane::read_battery(void) @@ -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)) {

2
ArduPlane/system.cpp

@ -324,7 +324,7 @@ void Plane::set_mode(enum FlightMode mode, mode_reason_t reason) @@ -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…
Cancel
Save