Dear all,
We are trying to do the exact same thing.
We also use the example.py and with this example we are able to read the attitude state, and to control the servo directly.
Based on the example to control the servo, we try to populate the ManualControlCommand with Roll, Pitch, Yaw, Throttle.
self.objMan.ManualControlCommand.metadata.access = UAVMetaDataObject.Access.READONLY
self.objMan.ManualControlCommand.metadata.updated()
while True:
print "."
self.objMan.ManualControlCommand.Throttle.value = 0.9
self.objMan.ManualControlCommand.Roll.value = 0.9
self.objMan.ManualControlCommand.Pitch.value = 0.9
self.objMan.ManualControlCommand.Yaw.value = 0.9
self.objMan.ManualControlCommand.Thrust.value = 0.9
self.objMan.ManualControlCommand.updated()
time.sleep(1)
self.objMan.ManualControlCommand.Throttle.value = 0.1
self.objMan.ManualControlCommand.Roll.value = 0.1
self.objMan.ManualControlCommand.Pitch.value = 0.1
self.objMan.ManualControlCommand.Yaw.value = 0.1
self.objMan.ManualControlCommand.Thrust.value = 0.1
self.objMan.ManualControlCommand.updated()
time.sleep(1)
But I don't see anything happen on the drone.
I read in this forum that it is possible to set the input type and input channel to None, but I don't understand how to do it. Can someone tell me how to do that.
Kind regards,
Iris