blob: 4d9dec720a493e1e28c3493bf18788853dda5c95 [file] [log] [blame]
Brian Silverman5f17a972016-02-28 01:49:32 -05001package frc971;
2
3// Values returned from an IMU.
Austin Schuh73b6e3b2019-05-27 16:37:15 -07004// Published on ".frc971.imu_values"
Brian Silverman5f17a972016-02-28 01:49:32 -05005message IMUValues {
6 // Gyro readings in radians/second.
7 // Positive is clockwise looking at the connector.
8 float gyro_x;
9 // Positive is clockwise looking at the right side (from the connector).
10 float gyro_y;
11 // Positive is counterclockwise looking at the top.
12 float gyro_z;
13
14 // Accelerometer readings in Gs.
15 // Positive is up.
16 float accelerometer_x;
17 // Positive is away from the right side (from the connector).
18 float accelerometer_y;
19 // Positive is away from the connector.
20 float accelerometer_z;
21
22 // Magnetometer readings in gauss.
23 // Positive is up.
24 float magnetometer_x;
25 // Positive is away from the right side (from the connector).
26 float magnetometer_y;
27 // Positive is away from the connector.
28 float magnetometer_z;
29
30 // Barometer readings in pascals.
31 float barometer;
32
33 // Temperature readings in degrees Celsius.
34 float temperature;
35
36 // FPGA timestamp when the values were captured.
37 double fpga_timestamp;
38 // CLOCK_MONOTONIC time in nanoseconds when the values were captured.
39 int64_t monotonic_timestamp_ns;
40};