Quickly calibrated the compass to check if it worked with the PCB in the casing and with the magnetic connector nearby, and it does
This commit is contained in:
parent
b45c5fdcbf
commit
30a841227b
@ -471,7 +471,7 @@ void gfx_task(void *param)
|
|||||||
/* Let's init all the watch's sensors */
|
/* Let's init all the watch's sensors */
|
||||||
watch_peripherals_pressure_sensor_init();
|
watch_peripherals_pressure_sensor_init();
|
||||||
watch_peripherals_magnetometer_init();
|
watch_peripherals_magnetometer_init();
|
||||||
watch_peripherals_magnetometer_calibration_data_set(4812, 8550, -3200, 20, -2200, 3500, 0.0);
|
watch_peripherals_magnetometer_calibration_data_set(-3120, 1050, 1140, 5200, 1200, 3200, 30.0);
|
||||||
watch_peripherals_accelerometer_init();
|
watch_peripherals_accelerometer_init();
|
||||||
watch_peripherals_accelerometer_wrist_wakeup_enable(persistency_get_settings()->display.display_wrist_wakeup);
|
watch_peripherals_accelerometer_wrist_wakeup_enable(persistency_get_settings()->display.display_wrist_wakeup);
|
||||||
watch_peripherals_accelerometer_step_counter_enable(true);
|
watch_peripherals_accelerometer_step_counter_enable(true);
|
||||||
@ -554,7 +554,7 @@ void gfx_task(void *param)
|
|||||||
APP_LOG_TRACE("X %d Y %d Z %d", MDataRaw.MFieldX, MDataRaw.MFieldY, MDataRaw.MFieldZ);
|
APP_LOG_TRACE("X %d Y %d Z %d", MDataRaw.MFieldX, MDataRaw.MFieldY, MDataRaw.MFieldZ);
|
||||||
*/
|
*/
|
||||||
|
|
||||||
compass_screen_set_azimuth(&compassScreen, angle_with_offset(azimuth, 180));
|
compass_screen_set_azimuth(&compassScreen, angle_with_offset(azimuth, 270));
|
||||||
}
|
}
|
||||||
|
|
||||||
compass_screen_set_temperature(&compassScreen, temperature);
|
compass_screen_set_temperature(&compassScreen, temperature);
|
||||||
|
Loading…
Reference in New Issue
Block a user