X-Git-Url: http://git.droids-corp.org/?p=aversive.git;a=blobdiff_plain;f=projects%2Fmicrob2010%2Fmechboard%2Factuator.h;fp=projects%2Fmicrob2010%2Fmechboard%2Factuator.h;h=c55f564c3e7b9b300f374db1d402a12ae209010f;hp=0000000000000000000000000000000000000000;hb=5918edd6f4f713ef3c8b0b0020dd30a4fb8222ae;hpb=9d2d9100592e18fed985730298215884127fc568 diff --git a/projects/microb2010/mechboard/actuator.h b/projects/microb2010/mechboard/actuator.h new file mode 100644 index 0000000..c55f564 --- /dev/null +++ b/projects/microb2010/mechboard/actuator.h @@ -0,0 +1,39 @@ +/* + * Copyright Droids Corporation (2009) + * + * This program is free software; you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation; either version 2 of the License, or + * (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program; if not, write to the Free Software + * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA + * + * Revision : $Id: actuator.h,v 1.6 2009-11-08 17:25:00 zer0 Exp $ + * + */ + +#define FINGER_RIGHT 666 +#define FINGER_RIGHT_RELAX 621 +#define FINGER_CENTER_RIGHT 491 +#define FINGER_CENTER 490 +#define FINGER_CENTER_LEFT 489 +#define FINGER_LEFT 340 +#define FINGER_LEFT_RELAX 385 + +void finger_goto(uint16_t position); +uint16_t finger_get_goal_pos(void); +uint8_t finger_get_side(void); + +void servo_lintel_out(void); +void servo_lintel_1lin(void); +void servo_lintel_2lin(void); + +void actuator_init(void); +