Пример #1
0
// return true if any battery is pushing too much power
bool AP_BattMonitor::overpower_detected() const
{
    bool result = false;
    for (int instance = 0; instance < AP_BATT_MONITOR_MAX_INSTANCES; instance++) {
        result |= overpower_detected(instance);
    }
    return result;
}
// return true if any battery is pushing too much power
bool AP_BattMonitor::overpower_detected() const
{
    bool result = false;
    for (int instance = 0; instance < _num_instances; instance++) {
        result |= overpower_detected(instance);
    }
    return result;
}