source: flair-src/trunk/demos/Skeletons/CustomReferenceAngles/src/MyApp.h@ 91

Last change on this file since 91 was 43, checked in by Sanahuja Guillaume, 8 years ago

skeletons

File size: 1.3 KB
Line 
1// created: 2015/10/27
2// filename: MyApp.h
3//
4// author: Guillaume Sanahuja
5// Copyright Heudiasyc UMR UTC/CNRS 7253
6//
7// version: $Id: $
8//
9// purpose: skeleton to use UavStateMachine with custom reference angles only
10//
11//
12/*********************************************************************/
13
14#ifndef MYAPP_H
15#define MYAPP_H
16
17#include <UavStateMachine.h>
18
19namespace flair {
20 namespace core {
21 class AhrsData;
22 }
23 namespace gui {
24 class PushButton;
25 }
26 namespace sensor {
27 class TargetController;
28 }
29}
30
31class MyApp : public flair::meta::UavStateMachine {
32 public:
33 MyApp(flair::meta::Uav* uav,flair::sensor::TargetController *controller);
34 ~MyApp();
35
36 private:
37 enum class BehaviourMode_t {
38 Default,
39 CustomReferenceAngles
40 };
41
42 BehaviourMode_t behaviourMode;
43
44 void StartCustomAngles(void);
45 void StopCustomAngles(void);
46 void ExtraCheckPushButton(void);
47 void ExtraCheckJoystick(void);
48 flair::core::AhrsData *GetReferenceOrientation(void);
49 void SignalEvent(Event_t event);
50
51 flair::gui::PushButton *start_CustomAngles,*stop_CustomAngles;
52 flair::core::AhrsData *customReferenceOrientation;
53};
54
55#endif // MYAPP_H
Note: See TracBrowser for help on using the repository browser.