From bcb30ecbf39a0dac2e07ae8cd6c544b35473b9f6 Mon Sep 17 00:00:00 2001 From: Alessio Morale Date: Sun, 7 Sep 2014 22:43:36 +0200 Subject: [PATCH] OP-1477 - enable temp compensation and fix axis orders --- flight/targets/boards/gpsplatinum/board_hw_defs.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/flight/targets/boards/gpsplatinum/board_hw_defs.c b/flight/targets/boards/gpsplatinum/board_hw_defs.c index e4127d022..683ddc027 100644 --- a/flight/targets/boards/gpsplatinum/board_hw_defs.c +++ b/flight/targets/boards/gpsplatinum/board_hw_defs.c @@ -245,9 +245,10 @@ static const struct pios_hmc5x83_cfg pios_mag_cfg = { #endif .M_ODR = PIOS_HMC5x83_ODR_75, .Meas_Conf = PIOS_HMC5x83_MEASCONF_NORMAL, - .Gain = PIOS_HMC5x83_GAIN_1_9, - .Mode = PIOS_HMC5x83_MODE_CONTINUOUS, + .Gain = PIOS_HMC5x83_GAIN_1_9, + .Mode = PIOS_HMC5x83_MODE_CONTINUOUS, .Driver = &PIOS_HMC5x83_SPI_DRIVER, + .TempCompensation = true, }; #endif /* PIOS_INCLUDE_HMC5883 */