#include "davis.h"
#include "lacrosse.h"
Go to the source code of this file.
|
| #define | ANE_DAVIS 1 |
| |
|
#define | ANE_LACROSSE 2 |
| |
|
#define | ANE_AUTO 99 |
| |
|
#define | MEDIA_NEXT_CYCLE |
| |
|
| enum | wind_dir {
NORTH,
NORTH_EAST,
EAST,
SOUTH_EAST,
SOUTH,
SOUTH_WEST,
WEST,
NORTH_WEST
} |
| |
| enum | wind_tendency { INCREASE,
DECREASE,
STABLE
} |
| |
◆ ANE_DAVIS
◆ anemometer_adjust()
| uint8_t anemometer_adjust |
( |
struct wind_array * |
wind | ) |
|
apply correction to wind value if needed.
- Returns
- 1 - data is valid, 0 - wrong data.
◆ anemometer_init()
| 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.
- Returns
- allocated wind structure.
- Note
- the wind struct is global, no need to pass it.
◆ get_wind_direction()
| enum wind_dir get_wind_direction |
( |
int |
direction | ) |
|
return standard direction from encoder.
- Parameters
-
| direction | degrees wind direction to convert (0-359). |
- Returns
- converted value.
◆ wind
global wind array struct used into ISR.