view Small_CPU/Inc/compass.h @ 540:ffd01ead2c80

Bugfix return from submenu in t3 view: In case of beeing in a sub menu (e.g. set bearing) in t3 view and pressing back button, visualization changed to t7 view without reset of the menu state => OSTC assumes still beeing in a sub menu while user sees main screen. Solution: evaluate menu state and take action according to it.
author Ideenmodellierer
date Sat, 10 Oct 2020 18:30:13 +0200
parents 5f11787b4f42
children
line wrap: on
line source

/* Define to prevent recursive inclusion -------------------------------------*/
#ifndef COMPASS_H
#define COMPASS_H

#include <stdint.h>

void compass_init(uint8_t fast, uint8_t gain);
void accelerator_init(void);
void compass_read(void);
void acceleration_read(void);
int compass_calib(void);
void compass_calc(void);
//void compass_calc_mini_during_calibration(void);
 
float check_compass_calib(void);

void compass_sleep(void);
void accelerator_sleep(void);

#endif /* COMPASS_H */