How to use orbit(param 4) funtion on set waypoints API



I’ve been trying out the Orbit (param 4) on the Set Waypoints API(JS REST).

I can’t seem to make it work.

Please help, thank you!

I test the code on FlytSim before doing it on the actual drone.

Sample waypoint code: (The drone goes to the desired location but doesn’t do the orbit)