|
amtecpowercube.cc File Reference
#include <errno.h>
#include <fcntl.h>
#include <stdio.h>
#include <string.h>
#include <sys/types.h>
#include <sys/stat.h>
#include <termios.h>
#include <stdlib.h>
#include <unistd.h>
#include <netinet/in.h>
#include <math.h>
#include "driver.h"
#include "error.h"
#include "drivertable.h"
#include "player.h"
#include "replace.h"
Define Documentation
#define AMTEC_DEFAULT_PORT "/dev/ttyS0"
|
|
#define AMTEC_SLEEP_TIME_USEC 20000
|
|
#define AMTEC_DEFAULT_SPEED_DEG_PER_SEC DTOR(40)
|
|
#define AMTEC_MAX_CMDSIZE 48
|
|
#define AMTEC_MODULE_TILT 11
|
|
#define AMTEC_MODULE_PAN 12
|
|
#define AMTEC_CMD_RESET 0x00
|
|
#define AMTEC_CMD_HOME 0x01
|
|
#define AMTEC_CMD_HALT 0x02
|
|
#define AMTEC_CMD_SET_EXT 0x08
|
|
#define AMTEC_CMD_GET_EXT 0x0a
|
|
#define AMTEC_CMD_SET_MOTION 0x0b
|
|
#define AMTEC_CMD_SET_ISTEP 0x0d
|
|
#define AMTEC_PARAM_ACT_POS 0x3c
|
|
#define AMTEC_PARAM_MIN_POS 0x45
|
|
#define AMTEC_PARAM_MAX_POS 0x46
|
|
#define AMTEC_PARAM_CUBESTATE 0x27
|
|
#define AMTEC_PARAM_MAXCURR 0x4c
|
|
#define AMTEC_PARAM_ACT_VEL 0x41
|
|
#define AMTEC_MOTION_FRAMP 4
|
|
#define AMTEC_MOTION_FRAMP_ACK 14
|
|
#define AMTEC_MOTION_FSTEP_ACK 16
|
|
#define AMTEC_MOTION_FVEL_ACK 17
|
|
#define AMTEC_STATE_ERROR 0x01
|
|
#define AMTEC_STATE_HOME_OK 0x02
|
|
#define AMTEC_STATE_HALTED 0x04
|
|
Function Documentation
Generated on Tue May 3 14:15:38 2005 for Player by 1.3.6
|