Main Page | Modules | Namespace List | Class Hierarchy | Alphabetical List | Class List | Directories | File List | Namespace Members | Class Members | File Members | Related Pages | Examples

satctl.h File Reference

#include <stdio.h>
#include <stdlib.h>
#include <unistd.h>
#include <termios.h>
#include <string.h>
#include <math.h>
#include <sys/time.h>
#include <sys/types.h>
#include <sys/stat.h>
#include <sys/fcntl.h>
#include <sys/ioctl.h>
#include <asm/ioctls.h>
#include <bits/types.h>

Include dependency graph for satctl.h:

Include dependency graph

This graph shows which files directly or indirectly include this file:

Included by dependency graph

Go to the source code of this file.

Classes

struct  wheel_t
struct  la_t
struct  dva_t
struct  adat_t
struct  mcfg_t

Defines

#define CMD_STRLEN   80
#define MICROMO   1
#define SMARTMOTOR   2
#define DFLT_TVAL   1000000
#define SS_TVEL   30.0
#define SS_TACC   30.0
#define SU_TVTOL   2.0
#define MM_RPS_COUNT   2000/MM_SR*2000/MM_ENC_RES
#define MM_RPM_COUNT   MM_RPS_COUNT/60.0
#define MWIT_SSPINUP   0x0001
#define MWIT_BDSSPINUP   0x0002
#define MWIT_RSPINUP_3   0x0004
#define MWIT_BDRSPINUP_3   0x0008
#define MWIT_RSPINUP_5   0x0010
#define MWIT_BDRSPINUP_5   0x0020
#define MWIT_SHAKE_25   0x0040
#define MWIT_SHAKE_50   0x0080
#define MWIT_SHAKE_75   0x0100
#define MWIT_SHAKE_100   0x0200
#define MWCV_TTA   0x01
#define MWCV_TAV   0x02
#define MWCV_FAOR   0x04
#define MWCV_FVOR   0x08
#define MWCV_BLOCK   0x10
#define MWCV_TRANS   0x20
#define MWCV_AOR_S   0x01
#define MWCV_VOR_S   0x02
#define DMUI_FBA   0x01
#define DMUI_FBD   0x02
#define DMU_PORT   "/dev/mopak"
#define LAIT_COMM   0x01
#define LAIT_PRGP   0x02
#define LAIT_JPOS   0x04
#define LAIT_JNEG   0x08
#define LAIT_CTRA   0x10
#define LAIT_MOLD   0x20
#define LAIT_MPOS   0x40
#define LAIT_MNEG   0x80
#define LAIT_SLIM   5000

Functions

int mwInit (wheel_t *wheel, int actions)
int mwStop (wheel_t *wheel)
int mwChangeVel (wheel_t *wheel, dva_t *params, int *status)
int dmuInit (long maxBufferSize, int rate, int flags)
int dmuStop (pid_t rpid)
int dmuReadData (adat_t **accData, int maxsets)
__uint16_t mbcrc_16 (__uint8_t *ptr, int len)
int laInit (la_t *lades, int action)
int laMove (la_t *lades, int steps)

Variables

itimerval mtmr1
itimerval mtmr2
timeval dflt_tv
const float MM_ENC_RES
const float MM_SR
const float SM_VELSF
const float SM_ACCSF
const int LA_ACC
const int LA_VEL
const char * hex_charset
const int debug
const char cfgWords [11][9]


Define Documentation

#define CMD_STRLEN   80
 

Definition at line 130 of file satctl.h.

#define DFLT_TVAL   1000000
 

Definition at line 134 of file satctl.h.

#define DMU_PORT   "/dev/mopak"
 

Definition at line 342 of file satctl.h.

Referenced by _daq().

#define DMUI_FBA   0x01
 

Definition at line 340 of file satctl.h.

#define DMUI_FBD   0x02
 

Definition at line 341 of file satctl.h.

#define LAIT_COMM   0x01
 

Definition at line 435 of file satctl.h.

#define LAIT_CTRA   0x10
 

Definition at line 439 of file satctl.h.

#define LAIT_JNEG   0x08
 

Definition at line 438 of file satctl.h.

#define LAIT_JPOS   0x04
 

Definition at line 437 of file satctl.h.

#define LAIT_MNEG   0x80
 

Definition at line 442 of file satctl.h.

#define LAIT_MOLD   0x20
 

Definition at line 440 of file satctl.h.

#define LAIT_MPOS   0x40
 

Definition at line 441 of file satctl.h.

#define LAIT_PRGP   0x02
 

Definition at line 436 of file satctl.h.

#define LAIT_SLIM   5000
 

Definition at line 443 of file satctl.h.

Referenced by PhysicalLinearActuator::Initialize().

#define MICROMO   1
 

Definition at line 131 of file satctl.h.

#define MM_RPM_COUNT   MM_RPS_COUNT/60.0
 

Definition at line 185 of file satctl.h.

#define MM_RPS_COUNT   2000/MM_SR*2000/MM_ENC_RES
 

Definition at line 183 of file satctl.h.

#define MWCV_AOR_S   0x01
 

Definition at line 295 of file satctl.h.

#define MWCV_BLOCK   0x10
 

Definition at line 287 of file satctl.h.

#define MWCV_FAOR   0x04
 

Definition at line 285 of file satctl.h.

#define MWCV_FVOR   0x08
 

Definition at line 286 of file satctl.h.

#define MWCV_TAV   0x02
 

Definition at line 284 of file satctl.h.

#define MWCV_TRANS   0x20
 

Definition at line 289 of file satctl.h.

#define MWCV_TTA   0x01
 

Definition at line 283 of file satctl.h.

#define MWCV_VOR_S   0x02
 

Definition at line 296 of file satctl.h.

#define MWIT_BDRSPINUP_3   0x0008
 

Definition at line 222 of file satctl.h.

#define MWIT_BDRSPINUP_5   0x0020
 

Definition at line 224 of file satctl.h.

#define MWIT_BDSSPINUP   0x0002
 

Definition at line 218 of file satctl.h.

#define MWIT_RSPINUP_3   0x0004
 

Definition at line 221 of file satctl.h.

#define MWIT_RSPINUP_5   0x0010
 

Definition at line 223 of file satctl.h.

#define MWIT_SHAKE_100   0x0200
 

Definition at line 230 of file satctl.h.

#define MWIT_SHAKE_25   0x0040
 

Definition at line 227 of file satctl.h.

#define MWIT_SHAKE_50   0x0080
 

Definition at line 228 of file satctl.h.

#define MWIT_SHAKE_75   0x0100
 

Definition at line 229 of file satctl.h.

#define MWIT_SSPINUP   0x0001
 

Definition at line 217 of file satctl.h.

#define SMARTMOTOR   2
 

Definition at line 132 of file satctl.h.

#define SS_TACC   30.0
 

Definition at line 136 of file satctl.h.

#define SS_TVEL   30.0
 

Definition at line 135 of file satctl.h.

#define SU_TVTOL   2.0
 

Definition at line 137 of file satctl.h.


Function Documentation

int dmuInit long  maxBufferSize,
int  rate,
int  flags
 

Definition at line 39 of file dmu.c.

References _daq(), rrate, sh_attdat, sh_nextr, sh_nextw, and sh_serial.

Referenced by DMU::Initialize().

int dmuReadData adat_t **  accData,
int  maxsets
 

Definition at line 223 of file dmu.c.

References adat_t::deltat, sh_attdat, sh_nextr, adat_t::temp, adat_t::xaccel, adat_t::xrate, adat_t::yaccel, adat_t::yrate, adat_t::zaccel, and adat_t::zrate.

Referenced by DMU::GetDigitalReading().

int dmuStop pid_t  rpid  ) 
 

int laInit la_t lades,
int  action
 

int laMove la_t lades,
int  steps
 

__uint16_t mbcrc_16 __uint8_t *  ptr,
int  len
 

int mwChangeVel wheel_t wheel,
dva_t params,
int *  status
 

int mwInit wheel_t wheel,
int  actions
 

int mwStop wheel_t wheel  ) 
 


Variable Documentation

const char cfgWords[11][9]
 

const int debug
 

struct timeval dflt_tv
 

const char* hex_charset
 

const int LA_ACC
 

const int LA_VEL
 

const float MM_ENC_RES
 

const float MM_SR
 

struct itimerval mtmr1
 

struct itimerval mtmr2
 

const float SM_ACCSF
 

const float SM_VELSF
 


Generated on Wed Sep 5 12:54:34 2007 for DSACSS Operational Code by  doxygen 1.3.9.1