vts-browser-js icon indicating copy to clipboard operation
vts-browser-js copied to clipboard

'roll' componenet of position does not have effect

Open kkozlik opened this issue 4 years ago • 2 comments

I am not sure whether I am doing something wrong, but I can't change the roll component of orientation while using autopilot.

For me the following calls have same outcome however I would expect different roll with the second call:

browser.autopilot.flyTo([ "obj", 13.392177745684078, 49.10441293186297, "fix", 1250, 22, -30, 0, 400, 90 ]);
browser.autopilot.flyTo([ "obj", 13.392177745684078, 49.10441293186297, "fix", 1250, 22, -30, 30, 400, 90 ]);

Is it possible to change roll ?

kkozlik avatar Mar 28 '21 19:03 kkozlik

Roll component is not supported in autopilot. Interpolation became complex with roll component. Quaternions would have to be used in some cases.

But you can try luck and modify source code: https://github.com/melowntech/vts-browser-js/blob/master/src/core/map/trajectory.js

davidmtech avatar Apr 14 '21 07:04 davidmtech

Thanks for the hint. I will take a look to source.

Btw. is the roll supported somewhere? Can I somehow get a view with roll component even without autopilot?

kkozlik avatar Apr 14 '21 08:04 kkozlik