103 int rConnect (
const char * address);
124 void rBeep(
double duration,
int frequency);
133 void rBeep2(
double duration,
int freq1,
int freq2);
262 int rGetLightTxt (
const char * sensorName,
int sampleSize);
280 void rGetIRAll (
int irSensors[2],
int sampleSize);
298 int rGetIRTxt (
const char * sensorName,
int sampleSize);
316 void rGetLine (
int lineSensors[2],
int sampleSize);
438 void rTurnLeft (
double speed,
double time);
468 void rTurnSpeed (
char * direction,
double speed,
double time);
483 void rForward (
double speed,
double time);
509 void rBackward (
double speed,
double time);
523 void rMotors (
double leftSpeed,
double rightSpeed);
void rGetLightsAll(int lightSensors[3], int sampleSize)
Get the average values of each of the three light sensors in an array. Values of each light sensor ca...
int rGetStall(int sampleSize)
Determine if robot has stalled Since readings of each brightness sensor can vary substantially, each sensor can be queried sampleSize times and an average obtained.
void rTurnLeft(double speed, double time)
turn Scribbler left for a specified time and speed
unsigned char G
The value of the green component.
Definition: MyroC.h:64
void rGetLine(int lineSensors[2], int sampleSize)
Use Scribbler 2 line sensors of Scribbler to check for a black line on a white surface under the robo...
void rSetBluetoothEcho(char onOff)
Turn on and off echoing of Bluetooth transmissions All robot commands involve the transmission of a c...
void rSetName(const char *name)
Change name stored in the robot to the 16-byte name given.
Struct for a picture object.
Definition: MyroC.h:75
void rSetForwardnessTxt(char *direction)
alternative to rSetForwardness for compatibility with earlier MyroC
unsigned char B
The value of the blue component.
Definition: MyroC.h:65
void rSavePicture(Picture pic, char *filename)
Save a Picture to a .jpeg.
void rMotors(double leftSpeed, double rightSpeed)
move robot with given speeds for the left and right motors continues until given another motion comma...
Picture rTakePicture()
Use the camera to take a photo.
void rGetInfo(char *infoBuffer)
returns information about the robot's dongle, firmware, and communication mode as a 60 character arra...
void rBeep(double duration, int frequency)
Beeps with the given duration and frequency.
Struct for a pixel.
Definition: MyroC.h:61
int rGetBrightTxt(char *sensorName, int sampleSize)
Reads one of the Fluke's virtual light sensors. Since values of each obstacle sensor can vary substan...
void rDisconnect()
disconnect program from Scribbler
int rGetLightTxt(const char *sensorName, int sampleSize)
Get the average values of a specified light sensor. Values of each light sensor can somewhat (typical...
void rHardStop()
cuts power to the motor of the robot
double rGetBattery()
Get the percentage of volts left in the batteries of the scribbler.
int height
Definition: MyroC.h:77
int width
Definition: MyroC.h:78
void rGetBrightAll(int brightSensors[3], int sampleSize)
Read the Fluke's virtual light sensors. Since readings of each brightness sensor can vary substantial...
int rGetObstacleTxt(const char *sensorName, int sampleSize)
Get the average values of a specified obstacle (IR) sensor. Since values of each obstacle sensor can ...
void rForward(double speed, double time)
moves Scribbler forward for a specified time and speed
void rStop()
directs robot to stop movement
void rSetForwardness(char *direction)
specifies which end of the Scribbler is considered the front
void rSetLEDFront(int led)
Set the front [fluke] LED on or off.
void rBeep2(double duration, int freq1, int freq2)
Generates two notes for the prescribed duration.
void rSetConnection(int new_socket_num)
set current connection to the socket number
void rGetObstacleAll(int obstSensors[3], int sampleSize)
Get the average values of the three obstacle sensors in an array. Since readings of each obstacle sen...
void rTurnSpeed(char *direction, double speed, double time)
turn Scribbler in direction for a specified time and speed
void rBackward(double speed, double time)
moves Scribbler backward for a specified time and speed
char * rGetForwardness()
Gets the forwardness of the Scribbler.
void rSetLEDBack(double led)
Set the the intensity of the back fluke LED,.
void rGetIRAll(int irSensors[2], int sampleSize)
Get an array of true/false values regarding the presence of obstacle based on the average values of e...
Picture rLoadPicture(char *filename)
Load a picture from a .jpeg file.
void rDisplayPicture(Picture pic, double duration, const char *windowTitle)
Display a picture in a new window.
int rConnect(const char *address)
connects program to Scribbler
int rGetIRTxt(const char *sensorName, int sampleSize)
Use specified IR sensor to determine if obstacle is present. Since values of each light sensor can va...
void rFastForward(double time)
moves Scribbler forward at the largest possible speed for a specified time
unsigned char R
The value of the red component.
Definition: MyroC.h:63
const char * rGetName()
Get the name of the robot.
void rSetIRPower(int power)
Set the amount of power for the dongle's IR sensors.
void rTurnRight(double speed, double time)
turn Scribbler right for a specified time and speed