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:
Th3maz1ng 2023-04-23 21:02:05 +02:00
parent b45c5fdcbf
commit 30a841227b

View File

@ -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);