Caddy
A 2005 Roborodentia entry with vision and path planning capability
Main Page
Related Pages
Data Structures
Files
File List
Globals
All
Data Structures
Files
Functions
Variables
Typedefs
Macros
Pages
src
servos.h
Go to the documentation of this file.
1
/*
2
* This file is part of Caddy.
3
*
4
* Caddy is free software: you can redistribute it and/or modify
5
* it under the terms of the GNU General Public License as published by
6
* the Free Software Foundation, either version 3 of the License, or
7
* (at your option) any later version.
8
*
9
* Caddy is distributed in the hope that it will be useful,
10
* but WITHOUT ANY WARRANTY; without even the implied warranty of
11
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12
* GNU General Public License for more details.
13
*
14
* You should have received a copy of the GNU General Public License
15
* along with Caddy. If not, see <http://www.gnu.org/licenses/>.
16
*/
21
#ifndef SERVOS_H
22
#define SERVOS_H
23
24
// avr-libc
25
#include <stdint.h>
26
34
#define PAN 0
35
47
#define TILT 1
48
61
#define BOOM 2
62
77
#define LIFT 3
78
88
#define DOOR 4
89
90
// Servo positions
91
#define PAN_CENTER 128 //133
92
#define MAX_PAN_LEFT 50
93
#define MAX_PAN_RIGHT 195
94
95
#define TILT_BB_GRAB 133
96
#define TILT_VERT 128
97
#define TILT_LOOKUP 186
98
#define TILT_BACK MAX_TILT_BACK
99
#define TILT_FORWARD MAX_TILT_FORWARD
100
#define MAX_TILT_BACK 195
101
#define MAX_TILT_FORWARD 70
102
103
#define BOOM_UP MAX_BOOM_UP
104
#define BOOM_BB_GRAB 183
105
#define MAX_BOOM_UP 45
106
#define MAX_BOOM_DOWN 148
107
108
#define LIFT_OPEN MAX_LIFT_OPEN
109
#define LIFT_UP MAX_LIFT_UP
110
#define LIFT_CORRAL 150
111
#define LIFT_BB_READY 114
112
#define MAX_LIFT_OPEN 183
113
#define MAX_LIFT_UP 74
114
115
#define DOOR_CLOSED MAX_DOOR_CLOSED
116
#define DOOR_OPEN MAX_DOOR_OPEN
117
#define MAX_DOOR_CLOSED 71
118
#define MAX_DOOR_OPEN 200
119
120
126
void
setServo(uint8_t servoNum, uint8_t servoPos);
127
133
void
disableServo(uint8_t servoNum);
134
135
#endif // #ifndef
Generated on Wed Apr 10 2013 22:02:29 for Caddy by
1.8.1.2