From 30a841227baecfced53501d7c92e27cf18cdca58 Mon Sep 17 00:00:00 2001 From: Th3maz1ng Date: Sun, 23 Apr 2023 21:02:05 +0200 Subject: [PATCH] Quickly calibrated the compass to check if it worked with the PCB in the casing and with the magnetic connector nearby, and it does --- src/W800_SDK_v1.00.10/app/gfx/gfx_task.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/W800_SDK_v1.00.10/app/gfx/gfx_task.c b/src/W800_SDK_v1.00.10/app/gfx/gfx_task.c index 59e8c4a..f4d5da6 100644 --- a/src/W800_SDK_v1.00.10/app/gfx/gfx_task.c +++ b/src/W800_SDK_v1.00.10/app/gfx/gfx_task.c @@ -471,7 +471,7 @@ void gfx_task(void *param) /* Let's init all the watch's sensors */ watch_peripherals_pressure_sensor_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_wrist_wakeup_enable(persistency_get_settings()->display.display_wrist_wakeup); 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); */ - 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);