SPICA Data Storage
Expected Data Packet:
General
Uptime (seconds) = 9 bits
2^9 = 512 seconds = 8.53 minutes
Altitude 1 (MPL3115A2)
Altitude (m) = 16 bits = 65536 ft max
Temp
Altitude 2 (MS5607)
Altitude (m) = 16 bits = 65536 ft max
Temp
Acceleration (16g)
X, Y, Z acceleration = 12 bits each
Maximum = ±15.99 (remove the decimal) = ±1599
2^12 = 4196 = ±2048
Heading
Pitch, Roll, Yaw = 9 bits each
Maximum = ±180
2^9 = 512 = ±256
GPS
GPS Time
GPS Lat
GPS Long
Altitude
Fix Status
Total Bits = XX
XX bytes at 5 Hz = Bytes / Second
1 MegaByte / XX bytes per sec = seconds = minutes of data
Ideally, there is a rolling buffer of data, waiting for takeoff. Once takeoff happens, ignore / erase the previous data aside from maybe 5 seconds before