-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathRudderMotor.h
39 lines (26 loc) · 1.17 KB
/
RudderMotor.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 */
/* */
/* RudderMotor.h The Rudder-Motor class */
/* */
/* Author Stefan Wismer */
/* wismerst@student.ethz.ch */
/* */
/************************************************************************/
#ifndef RUDDERMOTOR_H
#define RUDDERMOTOR_H
class RudderMotor {
public:
RudderMotor();
~RudderMotor();
bool init(int side, const char* device);
int obtain_serial_number(int i);
bool conduct_homing_left(int id); // Sets the current position to 0 (per Motor)
bool conduct_homing_right(int id); // Sets the current position to 0 (per Motor)
bool move_to_angle(float degrees); // Move both Motors
bool move_to_angle(int id, float degrees, float reference, int& feedback); // Move only one Motor
bool emergency_stop();
protected:
};
#endif // RUDDERMOTOR_H