Another question is, whether the CC3D needs to be fully set up (e.g. after upgrade and erase)?
self.objMan.ManualControlCommand.metadata.access = UAVMetaDataObject.Access.READONLY self.objMan.ManualControlCommand.metadata.updated() print "Got it!" while True: self.objMan.ManualControlCommand.Thrust.value = 0 self.objMan.ManualControlCommand.updated() time.sleep(1) print "sleep" self.objMan.ManualControlCommand.Thrust.value = 1 self.objMan.ManualControlCommand.updated() time.sleep(1)
print self.objMan.FlighStatus.Armed.value
self.objMan.ManualControlCommand.metadata.access = UAVMetaDataObject.Access.READONLY
def driveServo(self): print "Taking control of self.actuatorCmd" self.objMan.ActuatorCommand.metadata.access = UAVMetaDataObject.Access.READONLY self.objMan.ActuatorCommand.metadata.updated() self.objMan.ManualControlCommand.metadata.access = UAVMetaDataObject.Access.READONLY self.objMan.ManualControlCommand.metadata.updated() print "Got it!" print "starting Arming:" self.objMan.ManualControlCommand.Throttle.value = -1 self.objMan.ManualControlCommand.updated() self.objMan.ManualControlCommand.Pitch.value = -1 self.objMan.ManualControlCommand.updated() self.objMan.ManualControlCommand.Throttle.value = 1 self.objMan.ManualControlCommand.updated() time.sleep(1) while True: print self.objMan.FlightStatus.Armed.value self.objMan.ManualControlCommand.Throttle = 1 self.objMan.ManualControlCommand.updated() time.sleep(1) print "sleep" self.objMan.ManualControlCommand.Thrust.value = 1 self.objMan.ManualControlCommand.updated() time.sleep(1)