Open Sint
3.4-2
|
These routines are used to read the wind speed and direction, do media etc. More...
Functions | |
uint8_t | anemometer_adjust (struct wind_array *wind) |
apply correction to wind value if needed. More... | |
void | anemometer_start (struct wind_array *wind) |
enable the anemometer and start storing value. | |
void | anemometer_stop (struct wind_array *wind) |
disable the anemometer. | |
void | array_init (struct wind_array *wind) |
initialize the wind struct | |
uint8_t | anemometer_eeread (void) |
Read which wind sensor is stored into the EEPROM. | |
void | anemometer_eesave (uint8_t sensor) |
void | anemometer_init (void) |
initialize the anemometer. allocate the memory for the wind struct, read from eeprom which wind sensor to use and, in case of auto wind sensor, try to locate which one. More... | |
enum wind_dir | get_wind_direction (int direction) |
return standard direction from encoder. More... | |
Variables | |
uint8_t EEMEM | EE_sensor |
These routines are used to read the wind speed and direction, do media etc.
uint8_t anemometer_adjust | ( | struct wind_array * | wind | ) |
apply correction to wind value if needed.
void anemometer_init | ( | void | ) |
initialize the anemometer. allocate the memory for the wind struct, read from eeprom which wind sensor to use and, in case of auto wind sensor, try to locate which one.
enum wind_dir get_wind_direction | ( | int | direction | ) |
return standard direction from encoder.
direction | degrees wind direction to convert (0-359). |
uint8_t EEMEM EE_sensor |
type of wind sensor (GLOBAL)