Defines | Typedefs | Functions
testMCDC3006S.c File Reference
#include "mcdc3006s/MCDC3006Slib/MCDC3006S.h"
Include dependency graph for testMCDC3006S.c:

Go to the source code of this file.

Defines

#define AD_HOME   getenv( "AD_HOME" ) /* char *getenv(const char *nombre); */
#define DEFAULT_SEMFILE   "/robot/etc/semDrive"
#define DEFAULT_SERIAL_DEVICE   "/dev/brazo_derecho"
#define FALSE   0
#define TRUE   1

Typedefs

typedef int boolean

Functions

int main (int argc, char *argv[])
void mainMenu (driverSensor_t *odo, driverConf_t *dc)
 Main Menu. Shows the menu and performs usered entered commands until the user exits de program.
int moveToPosition (long int position, boolean relative, driverSensor_t *odo, driverConf_t *dc)
 Moves the Driver MCDC3006S to an absolute position.
int moveVelocity (long int velocity, driverConf_t *dc)
 Moves the Driver MCDC3006S at a determined velocity.
int testMovementMonitor ()

Define Documentation

#define AD_HOME   getenv( "AD_HOME" ) /* char *getenv(const char *nombre); */

Definition at line 11 of file testMCDC3006S.c.

#define DEFAULT_SEMFILE   "/robot/etc/semDrive"

Definition at line 17 of file testMCDC3006S.c.

#define DEFAULT_SERIAL_DEVICE   "/dev/brazo_derecho"

Definition at line 16 of file testMCDC3006S.c.

#define FALSE   0

Definition at line 14 of file testMCDC3006S.c.

#define TRUE   1

Definition at line 13 of file testMCDC3006S.c.


Typedef Documentation

typedef int boolean

Definition at line 19 of file testMCDC3006S.c.


Function Documentation

int main ( int  argc,
char *  argv[] 
)

Used to monitor the status of the initCommunication() method

Definition at line 25 of file testMCDC3006S.c.

void mainMenu ( driverSensor_t odo,
driverConf_t dc 
)

Main Menu. Shows the menu and performs usered entered commands until the user exits de program.

Definition at line 106 of file testMCDC3006S.c.

int moveToPosition ( long int  position,
boolean  relative,
driverSensor_t odo,
driverConf_t dc 
)

Moves the Driver MCDC3006S to an absolute position.

Parameters:
positionis the position where the driver should move
relativeis a boolean that checks if the movement is relative or not
odois the reference to a t_odometry type where the driver odometry is stored
dcis the Driver Configuration structure where some data of the driver is stored
Returns:
0 if everything OK
-1 at the driver level

Definition at line 440 of file testMCDC3006S.c.

int moveVelocity ( long int  velocity,
driverConf_t dc 
)

Moves the Driver MCDC3006S at a determined velocity.

Parameters:
velocityis the velocity in rpm at the driver will move
dcis the Driver Configuration structure where some data of the driver is stored
Returns:
0 if everything OK
-1 if there is an error at the driver level

Definition at line 481 of file testMCDC3006S.c.

Definition at line 493 of file testMCDC3006S.c.



motor_drivers
Author(s): Raul Perula-Martinez
autogenerated on Thu Apr 2 2015 03:07:04