Brian Silverman | 5f17a97 | 2016-02-28 01:49:32 -0500 | [diff] [blame] | 1 | package frc971; |
| 2 | |
| 3 | // Values returned from an IMU. |
Austin Schuh | 73b6e3b | 2019-05-27 16:37:15 -0700 | [diff] [blame^] | 4 | // Published on ".frc971.imu_values" |
Brian Silverman | 5f17a97 | 2016-02-28 01:49:32 -0500 | [diff] [blame] | 5 | message 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 | }; |