comparison Common/Inc/data_central.h @ 539:d784f281833a

Added inertia simulation for compass heading: In previous version calculated compass values were directly used for visualization of the compass. This causes a fast changing (jumping) of values. With the inertia introduction the compass behalfs more like an analog compass. The final value is reached slowly and the displayed values are more stable. For configuration a new menu item has been added to the compass menu allowing to switch inertia off (default), small and large inertia simulation
author Ideenmodellierer
date Sat, 10 Oct 2020 16:59:18 +0200
parents 58200d756365
children 1b995079c045
comparison
equal deleted inserted replaced
538:b1eee27cd02b 539:d784f281833a
431 void setDate(RTC_DateTypeDef Sdate); 431 void setDate(RTC_DateTypeDef Sdate);
432 void setTime(RTC_TimeTypeDef Stime); 432 void setTime(RTC_TimeTypeDef Stime);
433 void setBatteryPercentage(uint8_t newChargePercentage); 433 void setBatteryPercentage(uint8_t newChargePercentage);
434 void setButtonResponsiveness(uint8_t *ButtonSensitivyList); 434 void setButtonResponsiveness(uint8_t *ButtonSensitivyList);
435 void calibrateCompass(void); 435 void calibrateCompass(void);
436 void compass_Inertia(float newHeading);
437 float compass_getCompensated();
436 void clearDeco(void); 438 void clearDeco(void);
437 void translateDate(uint32_t datetmpreg, RTC_DateTypeDef *sDate); 439 void translateDate(uint32_t datetmpreg, RTC_DateTypeDef *sDate);
438 void translateTime(uint32_t tmpreg, RTC_TimeTypeDef *sTime); 440 void translateTime(uint32_t tmpreg, RTC_TimeTypeDef *sTime);
439 void updateSetpointStateUsed(void); 441 void updateSetpointStateUsed(void);
440 442