173 int rConnect (
const char * address);
228 void rBeep(
double duration,
int frequency);
237 void rBeep2(
double duration,
int freq1,
int freq2);
376 int rGetLightTxt (
const char * sensorName,
int sampleSize);
394 void rGetIRAll (
int irSensors[2],
int sampleSize);
412 int rGetIRTxt (
const char * sensorName,
int sampleSize);
430 void rGetLine (
int lineSensors[2],
int sampleSize);
596 void rTurnLeft (
double speed,
double time);
634 void rTurnSpeed (
char * direction,
double speed,
double time);
651 void rForward (
double speed,
double time);
682 void rBackward (
double speed,
double time);
696 void rMotors (
double leftSpeed,
double rightSpeed);
unsigned char G
The value of the green component.
Definition: MyroC.h:100
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 height
The actual height of the image, but no more than 266.
Definition: MyroC.h:131
void rSavePicture(Picture *pic, char *filename)
Save a Picture to a .jpeg.
int rGetStall(int sampleSize)
void rTurnLeft(double speed, double time)
turn Scribbler left for a specified time and speed
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:129
void rSetForwardnessTxt(char *direction)
alternative to rSetForwardness for compatibility with earlier MyroC
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 rWaitTimedImageDisplay()
Wait until all timed, non-blocking image window timers are complete.
void rGetInfo(char *infoBuffer)
returns information about the robot's dongle, firmware, and communication mode as a 60 character arra...
void rSetVolume(char highMute)
Set sound to high volume (H) or mute (M) highMute set volume of Scribbler.
void rBeep(double duration, int frequency)
Beeps with the given duration and frequency.
Struct for a pixel.
Definition: MyroC.h:97
int rGetBrightTxt(char *sensorName, int sampleSize)
Reads one of the Fluke's virtual light sensors. Each sensor reports a total intensity in the left...
void rDisconnect()
stop Scribbler motion and close Bluetooth
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 current voltage from the Scribbler batteries; Maximum charge from 6 batteries could be up to ...
void rDisplayPicture(Picture *pic, double duration, const char *windowTitle)
Display a picture in a new window.
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 rFinishProcessing()
all timed motions/image displays completed, all robots stopped, and all robot Bluetooth connections c...
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...
unsigned char R
The value of the red component.
Definition: MyroC.h:99
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.
unsigned char B
The value of the blue component.
Definition: MyroC.h:101
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...
int width
The actual width of the image, but no more than 427.
Definition: MyroC.h:132
Picture rLoadPicture(char *filename)
Load a picture from a .jpeg file.
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
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