I am trying to access the moveByChanged event message, but I get an error message saying that it is uninitialized.
from olympe.messages.ardrone3.PilotingState import FlyingStateChanged, moveByChanged from olympe.enums.ardrone3.PilotingState import MoveByChanged_Status drone = olympe.Drone("10.202.0.1") drone.connection() drone( olympe.messages.ardrone3.Piloting.TakeOff() >> olympe.messages.ardrone3.PilotingState.FlyingStateChanged(state="hovering", _timeout=15) >>olympe.messages.ardrone3.Piloting.moveBy(1, 0, 0, 0) >> olympe.messages.ardrone3.PilotingState.FlyingStateChanged(state="hovering", _timeout=15) ).wait() print("Moveby changed :" ,drone.get_state(moveByChanged))
The error message happening at the last line:
RuntimeError: ardrone3.PilotingState.moveByChanged state is uninitialized
Should we not be able to access the last received moveByChanged with the .drone.get_state(…)? Have I done anything else wrong?
From my current understanding, I would guess that I have received at least two moveByChanged event messages by the time of printing, one when sending moveBy and one when the moveBy finished. I this correct?
In my log, i can’t find any received event messages named moveByChanged. Is there a way to change the verbosity level of the logging?