forked from gChuNguyen/gSDK_Linux
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathmavlink_control.h
52 lines (43 loc) · 1.56 KB
/
mavlink_control.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
47
48
49
50
51
/*******************************************************************************
* Copyright (c) 2018, The GremsyCo
* All rights reserved.
* Redistribution and use in source and binary forms, with or without modification,
* are strictly prohibited without prior permission of The GremsyCo.
*
* @file mavlink_control.h
* @author The GremsyCo
* @version V1.0.0
* @date August-021-2018
* @brief This file contains expand of gMavlink
*
******************************************************************************/
/* Includes ------------------------------------------------------------------*/
#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 <ardupilotmega/mavlink.h>
#include "gimbal_interface.h"
#include "serial_port.h"
// ------------------------------------------------------------------------------
// Prototypes
// ------------------------------------------------------------------------------
// int main(int argc, char **argv);
int gGimbal_sample(int argc, char **argv);
void gGimbal_control_sample(Gimbal_Interface &gimbal_interface);
void gGimbal_displays(Gimbal_Interface &gimbal_interface);
void commands(Gimbal_Interface &gimbal_interface);
void parse_commandline(int argc, char **argv, char *&uart_name, int &baudrate);
// quit handler
Gimbal_Interface *gimbal_interface_quit;
Serial_Port *serial_port_quit;
void quit_handler( int sig );