Regardless of what I do or how I do it, the command: from olympe.messages import battery might load correctly but the battery object is completely blank!
No get_state() is working and I always get:
return drone.get_state(battery.health)[“state_of_health”]
AttributeError: ‘function’ object has no attribute ‘health’
1/ battery.health issue
It seems that the “battery” message identifier is masked by a function with the same name in your code. (Do you have a “def battery():” somewhere ?)
2/ reset_orientation issue
reset_orientation is a command and there is no sate associated with command messages (only the event messages have an associated state). So if you get a RuntimeError: gimbal.reset_orientation state is uninitialized it’s completely normal. You may be looking for the gimbal.attitude event message instead.