Non-blocking goto function
Posted: Sat May 15, 2021 7:59 am
Hi, I have a Vicon Wand and the idea is to send the current position of the wand as reference for the drone while flying, as a pursuit. This way, I cannot use anymore a sequence defined offline, and I cannot use the go_to() function inside PositionHlCommander, since it is blocking.
One idea is to use the start_forward, start_left commands in MotionCommander, which are non blocking, and wrap them into IFs to check whether the position is reached.
Are there any simpler goto-like commands that are non-blocking? Should I use the send_position_setpoint in Commander?
One idea is to use the start_forward, start_left commands in MotionCommander, which are non blocking, and wrap them into IFs to check whether the position is reached.
Are there any simpler goto-like commands that are non-blocking? Should I use the send_position_setpoint in Commander?