New to cesium here so sorry if this is a dumb question. I'm trying to convert lat, lon, alt, heading, pitch, roll into a quaternion for orientation of a flight, and for some reason the heading is around 80 degrees out of whack.
Here's the relevant code:
var curloc = Cesium.Cartesian3.fromDegrees(curlon, curlat, (curalt * 0.3048), Cesium.Ellipsoid.WGS84);
var quat = Cesium.Transforms.headingPitchRollQuaternion(curloc, curhead, curpitch, curroll, Cesium.Ellipsoid.WGS84);
path.orientation.unitQuaternion.push(time, quat.x, quat.y, quat.z, quat.w);
Do I need to alter the reference frame or something - I thought the current location would do that?