Welcome to the EyeBot  Version 7 - RPi1
A Controller For Various Hardware IO
vomega.h
Go to the documentation of this file.
1 
7 #ifndef VOMEGA_H_
8 #define VOMEGA_H_
9 
10 #include <stdio.h>
11 #include "serial.h"
12 #include "types.h"
13 
14 int VWInitialised;
15 
16 int VWInit();
17 
18 int VWSetSpeed(int linSpeed, int angSpeed); // Set fixed linSpeed (mm/s) and angSpeed [(rad/100)/s]
19 int VWGetSpeed(int *linSspeed, int *angSpeed); // Read current speeds
20 int VWSetPosition(int x, int y, int phi); // Set robot position to x, y [mm], phi [rad/100]
21 int VWGetPosition(int *x, int *y, int *phi); // Get robot position as x, y [mm], phi [rad/100]
22 int VWControl(int Vv, int Tv, int Vw, int Tw); // Set PI params. for v and w (typical 70 30 70 10)
23 int VWControlOff(void); // Stop PI control for v and w
24 int VWStraight(int dist, int lin_speed); // Drive straight, dist [mm], lin. speed [mm/s]
25 int VWTurn(int angle, int ang_speed); // Turn on spot, angle [rad/100], ang. speed [(rad/100)/s]
26 int VWCurve(int dist, int angle, int lin_speed);// Drive Curve, dist [mm], angle [rad/100], lin. speed [mm/s]
27 int VWDriveRemain(void); // Return remaining drive time in 1/100 sec
28 int VWDriveDone(void); // Non-blocking check whether drive is finished (1) or not (0)
29 int VWDriveWait(void); // Suspend current thread until drive operation has finished
30 int VWStalled(void); // Returns number of stalled motor [1..2], 3 if both stalled, 0 if none
31 
32 #endif /* VOMEGA_H_ */
int VWStraight(int dist, int lin_speed)
Drives straight.
Definition: vomega.c:343
int VWStalled(void)
Checks to see if the vehicle is stalled.
Definition: vomega.c:569
Defines types used for the EyeBot 7.
int VWSetSpeed(int linSpeed, int angSpeed)
Sets the VW speed, angle.
Definition: vomega.c:119
int VWTurn(int angle, int ang_speed)
Turns the vehicle on the spot.
Definition: vomega.c:376
int VWDriveWait(void)
Blocks until the drive is complete.
Definition: vomega.c:532
int VWGetPosition(int *x, int *y, int *phi)
Gets the position wrt original position.
Definition: vomega.c:230
int VWControlOff(void)
Stopss VW control.
Definition: vomega.c:314
int VWSetPosition(int x, int y, int phi)
Sets the position wrt current position.
Definition: vomega.c:194
int VWGetSpeed(int *linSspeed, int *angSpeed)
Obtains the current speeds.
Definition: vomega.c:150
int VWDriveRemain(void)
Checks the remaining drive time.
Definition: vomega.c:443
int VWInit()
Initialises the VW with settings defined in hdt file.
Definition: vomega.c:14
Defines all the functions to connect to a serial USB/serial connection.
int VWDriveDone(void)
Checks to see if the current drive is complete.
Definition: vomega.c:484
int VWCurve(int dist, int angle, int lin_speed)
Turns the vehicle in a curve.
Definition: vomega.c:412
int VWControl(int Vv, int Tv, int Vw, int Tw)
SStarts VW control.
Definition: vomega.c:283