hi , i am handling a moveByEvent to know how much exactly the drone moved
its going good when the error = OK i mean when it finish the last move
but when it is interrupted it give me a wrong values ??
any thing could be done ?
is there any other way to know how much the drone moved
@olympe.listen_event()
def onAnyEvent(self, event, scheduler):
if isinstance(event, olympe.ArsdkMessageEvent):
if event.message.fullName == "ardrone3.PilotingEvent.moveByEnd":
error = event.args["error"].name
print(event.message.fullName,"(forward :{dX}, right:{dY}, down :{dZ}, rotate :{dPsi}, error {error.name})".format(**event.args))