-
Notifications
You must be signed in to change notification settings - Fork 0
/
mavinflux.h
46 lines (37 loc) · 1.07 KB
/
mavinflux.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
/**
* @author Julien Geneste
* @brief pushData mavlink messages into an influx DB.
*
* 08/12/2022 - v.1
*/
#include <iostream>
#include <stdio.h>
#include <cstdlib>
#include <unistd.h>
#include <cmath>
#include <string.h>
#include <inttypes.h>
#include <fstream>
#include <signal.h>
#include <time.h>
#include <sys/time.h>
using std::string;
using namespace std;
#include <common/mavlink.h>
#include <iostream>
#include <InfluxDBFactory.h>
#include "app/autopilot_interface.h"
#include "app/serial_port.h"
#include "app/udp_port.h"
#include "app/influxdb_interface.h"
// ------------------------------------------------------------------------------
// Prototypes
// ------------------------------------------------------------------------------
int main(int argc, char **argv);
int top(int argc, char **argv);
void parse_commandline(int argc, char **argv, char *&uart_name, int &baudrate,
bool &use_udp, char *&udp_ip, int &udp_port, bool &autotakeoff);
// quit handler
Autopilot_Interface *autopilot_interface_quit;
Generic_Port *port_quit;
void quit_handler( int sig );