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_log.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_log.h')
| -rw-r--r-- | src/kernel/ao_log.h | 4 | 
1 files changed, 2 insertions, 2 deletions
diff --git a/src/kernel/ao_log.h b/src/kernel/ao_log.h index 5c568c99..241ba7d7 100644 --- a/src/kernel/ao_log.h +++ b/src/kernel/ao_log.h @@ -252,8 +252,8 @@ struct ao_log_mega {  			int16_t		gyro_y;		/* 20 */  			int16_t		gyro_z;		/* 22 */  			int16_t		mag_x;		/* 24 */ -			int16_t		mag_y;		/* 26 */ -			int16_t		mag_z;		/* 28 */ +			int16_t		mag_z;		/* 26 */ +			int16_t		mag_y;		/* 28 */  			int16_t		accel;		/* 30 */  		} sensor;	/* 32 */  		/* AO_LOG_TEMP_VOLT */  | 
