Welcome to the EyeBot
Version 7 - RPi1
A Controller For Various Hardware IO
|
Defines the VW functions. More...
Functions | |
int | VWInit () |
Initialises the VW with settings defined in hdt file. More... | |
int | VWSetSpeed (int linSpeed, int angSpeed) |
Sets the VW speed, angle. More... | |
int | VWGetSpeed (int *linSpeed, int *angSpeed) |
Obtains the current speeds. More... | |
int | VWSetPosition (int x, int y, int phi) |
Sets the position wrt current position. More... | |
int | VWGetPosition (int *x, int *y, int *phi) |
Gets the position wrt original position. More... | |
int | VWControl (int Vv, int Tv, int Vw, int Tw) |
SStarts VW control. More... | |
int | VWControlOff (void) |
Stopss VW control. More... | |
int | VWStraight (int dist, int lin_speed) |
Drives straight. More... | |
int | VWTurn (int angle, int ang_speed) |
Turns the vehicle on the spot. More... | |
int | VWCurve (int dist, int angle, int lin_speed) |
Turns the vehicle in a curve. More... | |
int | VWDriveRemain () |
Checks the remaining drive time. More... | |
int | VWDriveDone () |
Checks to see if the current drive is complete. More... | |
int | VWDriveWait () |
Blocks until the drive is complete. More... | |
int | VWStalled () |
Checks to see if the vehicle is stalled. More... | |
Defines the VW functions.
int VWControl | ( | int | Vv, |
int | Tv, | ||
int | Vw, | ||
int | Tw | ||
) |
SStarts VW control.
Vv | |
Tv | |
Vw | |
Vw |
int VWControlOff | ( | void | ) |
Stopss VW control.
int VWCurve | ( | int | dist, |
int | angle, | ||
int | lin_speed | ||
) |
Turns the vehicle in a curve.
dist | the radial distance |
angle | the angle to rotate |
lin_speed | the speed to rotate |
int VWDriveDone | ( | void | ) |
Checks to see if the current drive is complete.
int VWDriveRemain | ( | void | ) |
Checks the remaining drive time.
int VWDriveWait | ( | void | ) |
Blocks until the drive is complete.
int VWGetPosition | ( | int * | x, |
int * | y, | ||
int * | phi | ||
) |
Gets the position wrt original position.
x | stores the horizontal component |
y | stores the vertical component |
phi | stores the turn angle |
int VWGetSpeed | ( | int * | linSpeed, |
int * | angSpeed | ||
) |
Obtains the current speeds.
linspeed | the integer to store the linear speed |
angSpeed | the integer to store the angular speed |
int VWInit | ( | ) |
Initialises the VW with settings defined in hdt file.
int VWSetPosition | ( | int | x, |
int | y, | ||
int | phi | ||
) |
Sets the position wrt current position.
x | the horizontal component |
y | the vertical component |
phi | the turn angle |
int VWSetSpeed | ( | int | linSpeed, |
int | angSpeed | ||
) |
Sets the VW speed, angle.
linSpeed | the straightline speed |
angSpeed | the angular turning speed |
int VWStalled | ( | void | ) |
Checks to see if the vehicle is stalled.
int VWStraight | ( | int | dist, |
int | lin_speed | ||
) |
Drives straight.
dist | the distance to travel |
lin_speed | the speed to travel at |
int VWTurn | ( | int | angle, |
int | ang_speed | ||
) |
Turns the vehicle on the spot.
angle | the angle to turn to |
ang_speed | the speed to turn the angle |