libduck.h 456 Bytes
Newer Older
jp7g21's avatar
jp7g21 committed
1
2
3
#ifndef _LIBDUCK_H
#define _LIBDUCK_H

4
5
6
7
8
9
10
11
#define MOTOR_1 1
#define MOTOR_2 2
#define MOTOR_3 3

#ifndef DEFAULT_DUCK_FNAME
# define DEFAULT_DUCK_FNAME "/dev/ttyUSB0"
#endif /* DEFAULT_DUCK_FNAME */

jp7g21's avatar
jp7g21 committed
12
13
extern int duck_debug_mode;

14
15
16
17
18
19
void open_duck(const char *fname);
void configure_duck(void);
int duck_set_position(int motor, int angle);
int duck_delay(int ms);
int duck_set_velocity(int motor, int deg_per_sec);
void close_duck(void);
jp7g21's avatar
jp7g21 committed
20
21

#endif /* _LIBDUCK_H */