Simulation drone battery not connected

Hi, im using the iris_opt_flow drone in gazebo and I am trying to get battery status on the drone. When I use ROS2 with uorb messages to get battery status it comes out as false as in not connected. When I use mavsdk for battery telemetry on the same drone a battery level is displayed but then stops after around 60% battery left even though the drone is still flying around. Is this an issue with the drone model im using or is it that I first need to connect the battery somehow?

any help would be great

This is just what is simulated. You can adjust it using these parameters: Parameter Reference | PX4 User Guide

1 Like