Rev 281 |
Rev 291 |
Go to most recent revision |
Blame |
Compare with Previous |
Last modification |
View Log
| RSS feed
#ifndef __SERVO_H__
#define __SERVO_H__
/* Setup */
int servo_set_RS232_baudrate(int baud); /* BaudRate */
int servo_get_RS232_baudrate(void);
int servo_store_RS232_baudrate(void);
int servo_set_period(int period); /* Servo period in us */
int servo_get_period(void);
int servo_store_period(void);
int servo_get_setup_switch(void); /* RC0 RC1 RC2 */
int servo_set_RC5_switch(int data);
/* Servo control */
#define DEG180 0xFFFFFF
#define SERVO_ANGLE(deg,min,sec) (((deg)*3600 + (min)*60 + (sec)) * DEG180 / 648000)
int servo_turn_off(int servo);
int servo_turn_on(int servo);
int servo_turn_off_all(void);
int servo_turn_on_all(void);
int servo_set_angle(int servo, int angle);
int servo_get_angle(int servo);
/* Analog control */
int servo_get_analog(int port);
#endif