No analog input is left for the battery monitor
What ArduPilot says:
- Config Error: No analog voltage channel for battery N
- Config Error: No analog current channel for battery N
New in 4.7. A battery monitor is set to an analog type (BATT_MONITOR 3, 4 or 31) but the board could not give ArduPilot an analog input to read it with. It is a Config Error: the flight controller repeats the message and does not finish starting until the parameter is corrected. The number counts from 0 here: “battery 0” is the first monitor (BATT_MONITOR), “battery 1” the second (BATT2_MONITOR).
What to do, most likely first
A second or third monitor was switched on by mistake, or with a type the board cannot serve.
Check
BATT2_MONITORand the later ones should be 0 unless that sensor exists.FixSet the monitor that is not fitted to 0 and reboot. Parameters can still be changed while the board shows a Config Error.
All the board's analog inputs are taken: several analog monitors, an analog airspeed sensor, analog RSSI.
FixFree an input, or use a digital sensor type for one of the batteries, and reboot.
The board has no analog battery input at all.
CheckThe board's documentation says which battery sensor it carries.
FixChoose the type of the sensor it does have (INA2xx, DroneCAN, ESC telemetry) and reboot.
Parameters to look at
| Parameter | What it is |
|---|---|
BATT_MONITOR | Battery monitoring |
BATT2_MONITOR | Battery monitoring |
BATT_VOLT_PIN | Battery Voltage sensing pin on the AD7091R5 Ic |
BATT_CURR_PIN | Battery Current sensing pin |
Where to do it:Setup & Tuning GuideBoard & Wiring Planner
The code that sends it
Config Error: No analog voltage channel for battery N
libraries/AP_BattMonitor/AP_BattMonitor_Analog.cpp AP_BattMonitor_Analog::AP_BattMonitor_Analog() · Open in ArduPilot Copter-4.7.1
Config Error: No analog current channel for battery N
libraries/AP_BattMonitor/AP_BattMonitor_Analog.cpp AP_BattMonitor_Analog::AP_BattMonitor_Analog() · Open in ArduPilot Copter-4.7.1