-
Notifications
You must be signed in to change notification settings - Fork 2
/
SailMotor.h
39 lines (27 loc) · 1.09 KB
/
SailMotor.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
/************************************************************************/
/* */
/* P R O J E K T A V A L O N */
/* */
/* SailMotor.h Class for the SailMotor */
/* */
/* Author Stefan Wismer */
/* [email protected] */
/* */
/************************************************************************/
#ifndef SAILMOTOR_H
#define SAILMOTOR_H
class SailMotor {
public:
SailMotor();
~SailMotor();
bool init(const char* device);
bool calibrate(int id); // Sets the current position to move to
bool move_to_angle(float degrees, float reference, int& feedback, int& num_rounds); // Move the Sail
bool emergency_stop();
int sign(int i);
int sign(float i);
int sign(double i);
protected:
// Maybe sometime there will be something here...
};
#endif // SAILMOTOR_H