Battery
Read battery_status uORB topic and obtain details about the battery's state
- Library:
UAV Toolbox Support Package for PX4 Autopilots / PX4 Sensor Blocks
Description
The Battery block reads the battery_status uORB
topic
and outputs the details about the state of the battery connected to PX4 flight controller. The
block also outputs the timestamp.
On each simulation step, the block checks if a new message is available on the battery_status topic. If a new message is available, the block retrieves the message and converts it to the output values. If a new message is not available, the outputs are based on the last received uORB message. If a message has not been received since the start of the simulation, the outputs are zeroes.
Ports
Output
Parameters
Version History
Introduced in R2018b