The first thing to do is to configure the hardware settings: 1 - Connect the board to your computer and got to the System tab in your GCS 2 - Browse the first part (Settings) and find the HwSettings UAVObject 3 - Enable the Battery module : OptionalModules > Battery > Enable 4 - Set the analog input pins for voltage and current : - ADCRouting > adc0 > BatteryCurrent
- ADCRouting > adc1 > BatteryVoltage
5 - Save changes, click Upload button : 6 - Reboot your board: disconnect all power sources and reconnect to your computer.
Here is the adc mapping for various boards: Board | adc0 | adc1 | adc2 | adc3 | adc4 | adc5 | adc6 |
---|
Revolution | PWR port pin 3 | PWR port pin 4 | Output port out 3 | Output port out 4 | Output_port out 5 | Output port out 6 | internal | Sparky2 | PWR port pin 3 | PWR port pin 4 | PWR port pin2 | Output port out 3 | Output port out 4 | Output_port out 5 | Output port out 6 | RevoNano | FlexiIO pin 4 | FlexiIO pin 5 | FlexiIO pin 6 | FlexiIO pin 7 | FlexiIO pin 8 | Output_port out 5 | Output port out 6 |
FlexiIO refers to the receiver port |