diff options
author | Keith Packard <keithp@keithp.com> | 2017-06-11 22:34:11 -0700 |
---|---|---|
committer | Keith Packard <keithp@keithp.com> | 2017-06-11 22:54:22 -0700 |
commit | 2a05849c3bf8c1617409237be48802dd6fc6255b (patch) | |
tree | a8b5d2273f9f15a6dcbd5637a1a8707588856931 /src/kernel/ao_telemetry.h | |
parent | fed48732828c85ae56106cd72c5aeaaad47c552f (diff) |
altos: HMC5883 output order is X Z Y
Re-label everything to have the correct names. This doesn't actually
change the code at all, so the eeprom and telemetry is all compatible.
Matching changes on the host side will be required to actually process
the data correctly, of course.
Signed-off-by: Keith Packard <keithp@keithp.com>
Diffstat (limited to 'src/kernel/ao_telemetry.h')
-rw-r--r-- | src/kernel/ao_telemetry.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/kernel/ao_telemetry.h b/src/kernel/ao_telemetry.h index 45aaeb07..23e3ed7d 100644 --- a/src/kernel/ao_telemetry.h +++ b/src/kernel/ao_telemetry.h @@ -198,8 +198,8 @@ struct ao_telemetry_mega_sensor { int16_t gyro_z; /* 24 */ int16_t mag_x; /* 26 */ - int16_t mag_y; /* 28 */ - int16_t mag_z; /* 30 */ + int16_t mag_z; /* 28 */ + int16_t mag_y; /* 30 */ /* 32 */ }; |