Set Battery Monitor voltage and current

I managed to do this by mixing Mavlink and LUA scripting.
I first receive data from my sensor in my companion computer and then send it using the Mavlink message “BATTERY_STATUS”. Then, in flight control, I receive this message using LUA scripting with the “receive_chan” method of “mavlink” and update the flight control’s battery data using the “update_telem_data” and “update_rpm” methods of “esc_telem” with received values.

2 Likes