moveByEnd event is not accurate when error=interrupted

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

    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 {})".format(**event.args))

This topic was automatically closed after 30 days. New replies are no longer allowed.