Skip to content

User Guide: Battery Configuration

Carsten Boehme edited this page Nov 4, 2013 · 16 revisions

Enabling ADC inputs

Note these instructions are current for 20130811. In next the module page simplifies this somewhat.

Most boards CANNOT tolerate more than 3.3V brought into them. Make sure you are using an appropriate sensor for your board, such as this one

  1. Enable the Battery module using the UAVO Browser. This is done by setting ModuleSettings->AdminState[Battery] to ENABLE.
  2. Configure the ADCRouting to indicate what the channels are. This is done by setting ADCRouting->ChannelMap[ADC#] to either Disabled, BatteryVoltage, BatteryCurrent, AnalogAirspeed or Generic. Make sure that you only try and use ADC# that are valid for the board you are using.
  3. If you are using the battery module, then make sure the values in FlightBatterySettings are appropriate for your battery type and sensor. The gains you should use in the SensorCalibration should match your sensor (see table below).
  4. Reboot the board.

TODO: fill this out more

Sensor VoltageFactor CurrentFactor
AttoPilot 90A ? ?
AttoPilot 180A 0.012862 ?

Optionally you can enable the MAVLinkRelay module to send this information to your OSD.

Clone this wiki locally