comparison Common/Inc/data_central.h @ 776:45b8f3c2acce

Add support for a configurable compass declination in a range of -99 to 99 degrees. This allows the displayed compass reading to be configured to take into account the compass declination (difference between the measured magnetic North direction and the actual geographical North direction) that has different values for different locations around the globe. See https://magnetic-declination.com/ for more information. (mikeller)
author heinrichsweikamp
date Thu, 18 May 2023 09:49:17 +0200
parents 6169309d6eb9
children e40790a67165
comparison
equal deleted inserted replaced
775:46c6d2380d4e 776:45b8f3c2acce
26 26
27 #ifndef DATA_CENTRAL_H 27 #ifndef DATA_CENTRAL_H
28 #define DATA_CENTRAL_H 28 #define DATA_CENTRAL_H
29 29
30 #include <stdint.h> 30 #include <stdint.h>
31 #include <stdbool.h>
31 32
32 #include "settings.h" 33 #include "settings.h"
33 #include "stm32f4xx_hal.h" 34 #include "stm32f4xx_hal.h"
34 #include "configuration.h" 35 #include "configuration.h"
35 36
500 501
501 _Bool is_ambient_pressure_close_to_surface(SLifeData *lifeData); 502 _Bool is_ambient_pressure_close_to_surface(SLifeData *lifeData);
502 503
503 uint8_t isLoopMode(uint8_t Mode); 504 uint8_t isLoopMode(uint8_t Mode);
504 505
506 bool isCompassCalibrated(void);
505 void setCompassHeading(uint16_t heading); 507 void setCompassHeading(uint16_t heading);
506 #endif // DATA_CENTRAL_H 508 #endif // DATA_CENTRAL_H