Converting Pitch and Roll to acceleration X, Y and Z

Former Member
Former Member
Hi

I have made a tool to convert a binary logfile from a drone into a gpx file, to be used for Garmin Virb overlays, for further details see here: https://dl.dropboxusercontent.com/u/98489236/ParrotBebop/index.html

In the logfile from the drone I do already have yaw, pitch and roll in radians units.
The gauges values Pitch and Roll in Virb is calculated from the acceleration X, Y and Z from the gpx file.

That means that even though I have the values as pitch and roll, and I still want them displayed as Pitch and Roll in the overlays, I do need to convert then as acceleration X, Y and Z and add them to the gpx file, then Virb will convert them back to Pitch and Roll, right?

Does anybody have formulaes for converting pitch and roll into acceleration X, Y and Z as used in the gpx files?

I have tried googling the issue, but I always end up in some pretty hardcore maths.

Any help is greatly appriciated