Caddy
A 2005 Roborodentia entry with vision and path planning capability
 All Data Structures Files Functions Variables Typedefs Macros Pages
servos.c
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  */
17 #include "servos.h"
18 
19 // AVRLIB
20 #include "rprintf.h"
21 
22 // avr-libc
23 #include <stdint.h>
24 
25 void setServo(uint8_t servoNum, uint8_t servoPos)
26 {
27  rprintf("sv %d %d\r", servoNum, servoPos);
28 }
29 
30 void disableServo(uint8_t servoNum)
31 {
32  rprintf("so %d 0\r", servoNum);
33 }