After function path generation, drone doesn't follow POI
Hi Jim,
like you know I'm testing the function capabilities of Dronelink.
I've written one fuction that permits to create a plan with two POIs. Everything works and the plan is generated but I cannot find why the drone doesn't follow the POIs.
So I exported the path and reimported in dronelink and the result is the same:
Then I created a new plan that is similar to this one but via web interface and the result is that it works correctly:
Can you help me to understand why I have this issue?
Thank you.
Raf
Comments
3 comments
Found the problem.
It's here:
plan.droneMotionLimits.rotational = new Dronelink.MotionLimits()
plan.droneMotionLimits.rotational.velocity = new Dronelink.Limits(rotation_rate, 0)
I want to set the rotation rate to 10°/s
The rotation needs to be expressed in radians not degrees. For conversion utils:
https://github.com/dronelink/dronelink-kernel-js/blob/master/types/utils/Convert.d.ts
Oh thank you!
Please sign in to leave a comment.