Created
November 18, 2022 15:40
-
-
Save francois-baptiste/236f0c1785de8731d18418db0de8e095 to your computer and use it in GitHub Desktop.
Read RaceBox Mini Data Message binary dump
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import numpy as np | |
import pandas as pd | |
df = pd.DataFrame(np.fromfile(r"raceboxmini.dump.bin", dtype=np.dtype([ | |
('Header', np.uint16), | |
('Message Class and ID', np.uint16), | |
('Payload Length', np.uint16), | |
('iTOW', np.uint32), | |
('Year', np.uint16), | |
('Month', np.int8), | |
('Day', np.int8), | |
('Hour', np.int8), | |
('Minute', np.int8), | |
('Second', np.int8), | |
('Validity Flags', np.int8), | |
('Time Accuracy', np.uint32), | |
('Nanoseconds', np.int32), | |
('Fix Status', np.int8), | |
('FIx Status Flags', np.int8), | |
('Date/Time Flags', np.int8), | |
('Number of SVs', np.uint8), | |
('Longitude', np.int32), | |
('Latitude', np.int32), | |
('WGS Altitude', np.int32), | |
('MSL Altitude', np.int32), | |
('Horizontal Accuracy', np.uint32), | |
('Vertical Accuracy', np.uint32), | |
('Speed', np.int32), | |
('Heading', np.int32), | |
('Speed Accuracy', np.uint32), | |
('Heading Accuracy', np.uint32), | |
('PDOP', np.uint16), | |
('Lat/Lon Flags', np.int8), | |
('Battery Status', np.int8), | |
('GForceX', np.int16), | |
('GForceY', np.int16), | |
('GForceZ', np.int16), | |
('Rotation rate X', np.int16), | |
('Rotation rate Y', np.int16), | |
('Rotation rate Z', np.int16), | |
('Checksum', np.int16) | |
]))) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment