source: flair-src/branches/mavlink/tools/Controller/Mavlink/src/GuiGcs.h@ 79

Last change on this file since 79 was 79, checked in by Thomas Fuhrmann, 6 years ago

MissionSend is working

File size: 1.2 KB
Line 
1// %flair:license{
2// This file is part of the Flair framework distributed under the
3// CECILL-C License, Version 1.0.
4// %flair:license}
5// created: 2016/09/02
6// filename: GuiGcs.h
7//
8// authors: Thomas Fuhrmann
9// Copyright Heudiasyc UMR UTC/CNRS 7253
10//
11// version: $Id: $
12//
13// purpose: Implementation of GuiInterface, using sockets
14//
15//
16/*********************************************************************/
17
18#ifndef MAVPLANNER_GUI_GCS_H
19#define MAVPLANNER_GUI_GCS_H
20
21#include <string>
22
23#include "GuiInterface.h"
24
25#include "MavlinkUDP.h"
26
27namespace flair {
28namespace core {
29 class FrameworkManager;
30 class Socket;
31}
32}
33
34class GuiGcs : public GuiInterface {
35public:
36
37 GuiGcs(const flair::core::FrameworkManager *parent, std::string name,
38 std::string &outputAddress, int outputPort);
39 ~GuiGcs();
40
41protected:
42
43 virtual void MissionStart();
44 virtual void MissionStop();
45 virtual void MissionResume();
46 virtual void MissionSend();
47
48 uint16_t MavCommandGet(const std::string& command) const;
49
50private:
51 flair::core::Socket *outputSocket;
52 std::string outputAddress;
53 int outputPort;
54
55 MavlinkUDP* mavCom;
56};
57
58#endif // MAVPLANNER_GUI_GCS_H
Note: See TracBrowser for help on using the repository browser.