Been poking at the new accelerometer and gpsd and have the basics of data collection running. The columns are GPS time, lat, lon, roll and pitch. Spitting out a new line every second, gpsd only seems to update the timestamp every few seconds. This is just sitting on my desk for now, first and last three samples are with accelerometer sitting on the desk and the middle ones are with me waving it around. The roll/pitch are floats after being calculated but I trimmed everything after the decimal point because I don't need that kind of accuracy. May use a more compressed format for the timestamp to save space on disk. Next bit is to move this code and accelerometer into the truck and then make a script to consume the data and spit out a KML with color coding goodness.
2022-06-08T11:25:50.000Z,42.59053,-117.86828,0,-3
2022-06-08T11:25:50.000Z,42.59053,-117.86828,0,-3
2022-06-08T11:25:51.000Z,42.59053,-117.86828,0,-3
2022-06-08T11:25:51.000Z,42.59053,-117.86828,40,-14
2022-06-08T11:25:51.000Z,42.59053,-117.86828,75,-36
2022-06-08T11:25:51.000Z,42.59053,-117.86828,77,-37
2022-06-08T11:25:52.000Z,42.59053,-117.86828,79,-39
2022-06-08T11:25:52.000Z,42.59053,-117.86828,80,-39
2022-06-08T11:25:52.000Z,42.59053,-117.86828,18,-1
2022-06-08T11:25:52.000Z,42.59053,-117.86828,-40,10
2022-06-08T11:25:53.000Z,42.59053,-117.86828,-47,-4
2022-06-08T11:25:53.000Z,42.59053,-117.86828,-53,-28
2022-06-08T11:25:53.000Z,42.59053,-117.86828,-18,0
2022-06-08T11:25:53.000Z,42.59053,-117.86828,-1,-2
2022-06-08T11:25:53.000Z,42.59053,-117.86828,0,0
2022-06-08T11:25:54.000Z,42.59053,-117.86828,0,0
2022-06-08T11:25:54.000Z,42.59053,-117.86828,0,-1