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

Last change on this file since 96 was 84, checked in by Thomas Fuhrmann, 8 years ago

Update MavlinkUDP files and add pause function

File size: 1.4 KB
RevLine 
[71]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
[82]9// Milan Erdelj
[71]10// Copyright Heudiasyc UMR UTC/CNRS 7253
11//
12// version: $Id: $
13//
14// purpose: Implementation of GuiInterface, using sockets
15//
16//
17/*********************************************************************/
18
19#ifndef MAVPLANNER_GUI_GCS_H
20#define MAVPLANNER_GUI_GCS_H
21
22#include <string>
[83]23#include <array>
[71]24
25#include "GuiInterface.h"
26
[79]27#include "MavlinkUDP.h"
28
[82]29#define INTER_COMMAND_PAUSE 10000 // us
30#define PERIOD_SECOND 1000000 // us
31
[71]32namespace flair {
33namespace core {
34 class FrameworkManager;
35 class Socket;
36}
37}
38
39class GuiGcs : public GuiInterface {
40public:
41
42 GuiGcs(const flair::core::FrameworkManager *parent, std::string name,
43 std::string &outputAddress, int outputPort);
44 ~GuiGcs();
45
46protected:
47
48 virtual void MissionStart();
49 virtual void MissionStop();
[84]50 virtual void MissionPause();
[77]51 virtual void MissionSend();
[71]52
[79]53 uint16_t MavCommandGet(const std::string& command) const;
54
[71]55private:
56 std::string outputAddress;
57 int outputPort;
[79]58
59 MavlinkUDP* mavCom;
[82]60
[84]61 bool missionPauseEnabled;
62
[82]63 void Initialize();
[83]64 void ParametersParse(const std::string& parametersString, std::array<float, 6>& parametersFloat);
[71]65};
66
67#endif // MAVPLANNER_GUI_GCS_H
Note: See TracBrowser for help on using the repository browser.