|
PX4 Firmware
PX4 Autopilot Software http://px4.io
|
#include <px4_platform_common/px4_config.h>#include <px4_platform_common/module.h>#include <px4_platform_common/module_params.h>#include <px4_platform_common/getopt.h>#include <px4_platform_common/posix.h>#include <px4_platform_common/tasks.h>#include <px4_platform_common/time.h>#include <px4_platform_common/log.h>#include <lib/mathlib/mathlib.h>#include <drivers/drv_hrt.h>#include <drivers/drv_adc.h>#include <lib/parameters/param.h>#include <lib/perf/perf_counter.h>#include <lib/battery/battery.h>#include <lib/conversion/rotation.h>#include <uORB/Subscription.hpp>#include <uORB/Publication.hpp>#include <uORB/topics/actuator_controls.h>#include <uORB/topics/vehicle_control_mode.h>#include <uORB/topics/parameter_update.h>#include <uORB/topics/battery_status.h>#include <px4_platform_common/px4_work_queue/ScheduledWorkItem.hpp>#include <DevMgr.hpp>#include "parameters.h"Go to the source code of this file.
Classes | |
| class | BatteryStatus |
Functions | |
| __EXPORT int | battery_status_main (int argc, char *argv[]) |
| Analog layout: FMU: IN2 - battery voltage IN3 - battery current IN4 - 5V sense IN10 - spare (we could actually trim these from the set) IN11 - spare on FMUv2 & v3, RC RSSI on FMUv4 IN12 - spare (we could actually trim these from the set) IN13 - aux1 on FMUv2, unavaible on v3 & v4 IN14 - aux2 on FMUv2, unavaible on v3 & v4 IN15 - pressure sensor on FMUv2, unavaible on v3 & v4. More... | |
| int battery_status_main | ( | int | argc, |
| char * | argv[] | ||
| ) |
Analog layout: FMU: IN2 - battery voltage IN3 - battery current IN4 - 5V sense IN10 - spare (we could actually trim these from the set) IN11 - spare on FMUv2 & v3, RC RSSI on FMUv4 IN12 - spare (we could actually trim these from the set) IN13 - aux1 on FMUv2, unavaible on v3 & v4 IN14 - aux2 on FMUv2, unavaible on v3 & v4 IN15 - pressure sensor on FMUv2, unavaible on v3 & v4.
IO: IN4 - servo supply rail IN5 - analog RSSI on FMUv2 & v3
The channel definitions (e.g., ADC_BATTERY_VOLTAGE_CHANNEL, ADC_BATTERY_CURRENT_CHANNEL, and ADC_AIRSPEED_VOLTAGE_CHANNEL) are defined in board_config.h Battery status app start / stop handling function
Definition at line 448 of file battery_status.cpp.
References main().