-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathtarget_aprs.h
24 lines (20 loc) · 862 Bytes
/
target_aprs.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
#include "gps.h"
#include "target.h"
class target_aprs: public target
{
private:
const std::string callsign;
const char callsign_ssid { 0 };
gps *const g { nullptr };
const std::string beacon_text;
const unsigned long interval_ms { 0 };
unsigned long last_transmit { 0 };
std::optional<double> send_every_x_meter;
const bool send_oe { true };
protected:
std::optional<target_msg_t> wait_for_receive_packet() override;
void send_message(const target_msg_t & msg) override;
public:
target_aprs(QueueHandle_t out, Print *const p, const int id, const std::string & callsign, const char callsign_ssid, gps *const g, const std::string & beacon_text, const unsigned long interval_ms, const std::optional<double> send_every_x_meter, const bool oe);
virtual ~target_aprs();
};