MAVSDK-Python icon indicating copy to clipboard operation
MAVSDK-Python copied to clipboard

Dynamically changing inputs

Open a-altug opened this issue 3 years ago • 4 comments

Is there a way to change offboard classes' inputs dynamically after called for once for dynamic-offboard drive like landing on a marker or flying on a path by making obstacle avoidance.

Or, is calling them continuously by using a while loop (that different ofboard.class()es are called for different conditions. Means, driving with velocity setpoint or driving with position setpoint) only solution?

@julianoes @JonasVautherin

a-altug avatar May 20 '21 17:05 a-altug

I'm afraid I don't really get what you mean. Could you show a pseudo-code of what you would want to do?

JonasVautherin avatar May 20 '21 19:05 JonasVautherin

while part of #351

a-altug avatar May 20 '21 20:05 a-altug

Ok I still don't get this issue. Did you play with the offboard examples? https://github.com/mavlink/MAVSDK-Python/tree/main/examples

JonasVautherin avatar May 20 '21 23:05 JonasVautherin

@a-altug you can update the setpoint you need dynamically at the rate you want. Is that what you meant?

julianoes avatar May 21 '21 05:05 julianoes