-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbeacon.h
46 lines (41 loc) · 1.08 KB
/
beacon.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
#pragma once
#ifndef BEACON_H
#define BEACON_H
#include "Arduino.h"
#include "variables.h"
class Beacon {
public:
Beacon(void);
uint32_t getId(void);
void setId(uint32_t id);
void setPos(double lat, double lon, double alt);
double getLat(void);
double getLon(void);
double getAlt(void);
void setLat(double lat);
void setLon(double lon);
void setAlt(double alt);
void setCourse(int course);
void setAction(uint8_t action);
void setFlags(uint8_t flags);
uint8_t getRssi(void);
void setRssi(uint8_t value);
uint8_t getSnr(void);
void setSnr(uint8_t value);
uint32_t getLastContactMillis(void);
void setLastContactMillis(uint32_t value);
bool hasPos(void);
private:
uint32_t _id;
bool _hasPos;
double _lat;
double _lon;
double _alt;
int _course;
uint8_t _rssi;
uint8_t _snr;
uint8_t _flags;
uint8_t _action;
uint32_t _lastContactMillis;
};
#endif