Newer
Older
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
#ifndef PARASOL_H
#define PARASOL_H
/**
* @brief This singleton class handles the parasol actuator.
* @see getSingleton
*/
class Parasol
{
/**
* The ID of the servo
*/
static const int SERVO_ID = 0; // To update
/**
* Those constantes are angles for the relevant action (names are pretty explicit)
*/
static const int SERVO_CLOSED_POS = 0x00;
static const int SERVO_DEPLOYED_POS = 0x00;
public:
/**
* @brief Parasol is a singleton. This static method will return the only possible instance of Parasol (and create it if deemed necessary)
*/
static Parasol* getSingleton();
/**
* @brief Closes the parasol
*/
void close();
/**
* @brief Deploys the parasol
*/
void deploy();
private:
/**
* @brief Constructor
* @see getSingleton
*/
Parasol();
};
#endif