154 #if defined(WIN32) || defined(_WIN32) || defined(__WIN32__) 155 #include <winsock2.h> 157 #define ROBOT_CONNECTION_TYPE SOCKET 159 #define ROBOT_CONNECTION_TYPE int 206 ROBOT_CONNECTION_TYPE
rConnect (
const char * address);
266 void rBeep(
double duration,
int frequency);
278 void rBeep2(
double duration,
int freq1,
int freq2);
417 int rGetLightTxt (
const char * sensorName,
int sampleSize);
435 void rGetIRAll (
int irSensors[2],
int sampleSize);
453 int rGetIRTxt (
const char * sensorName,
int sampleSize);
471 void rGetLine (
int lineSensors[2],
int sampleSize);
637 void rTurnLeft (
double speed,
double time);
675 void rTurnSpeed (
char * direction,
double speed,
double time);
692 void rForward (
double speed,
double time);
723 void rBackward (
double speed,
double time);
737 void rMotors (
double leftSpeed,
double rightSpeed);
unsigned char G
The value of the green component.
Definition: MyroC.h:118
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...
Definition: MyroC-sensor.c:133
int height
The actual height of the image, but no more than 266.
Definition: MyroC.h:149
void rSavePicture(Picture *pic, char *filename)
Save a Picture to a .jpeg.
Definition: MyroC-image-file-linux-mac.c:240
int rGetStall(int sampleSize)
Definition: MyroC-general.c:524
void rTurnLeft(double speed, double time)
turn Scribbler left for a specified time and speed
Definition: MyroC-movement.c:415
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...
Definition: MyroC-sensor.c:356
void rSetBluetoothEcho(char onOff)
Turn on and off the printing transmission and echong of Bluetooth transmissions All robot commands in...
Definition: MyroC-utilities-linux-mac.c:359
void rSetName(const char *name)
Change name stored in the robot to the 16-byte name given.
Definition: MyroC-general.c:281
Struct for a picture object.
Definition: MyroC.h:147
void rSetForwardnessTxt(char *direction)
alternative to rSetForwardness for compatibility with earlier MyroC
Definition: MyroC-general.c:395
ROBOT_CONNECTION_TYPE rConnect(const char *address)
connects program to Scribbler
Definition: MyroC-connect-linux.c:148
void rDisplayImageProcessingErrors()
Turn on and off the printing of error messasge for image processing.
Definition: MyroC-display-linux-mac.c:1303
void rMotors(double leftSpeed, double rightSpeed)
move robot with given speeds for the left and right motors continues until given another motion comma...
Definition: MyroC-movement.c:561
Picture rTakePicture()
Use the camera to take a photo.
Definition: MyroC-camera-windows.c:165
void rWaitTimedImageDisplay()
Wait until all timed, non-blocking image window timers are complete.
Definition: MyroC-display-linux-mac.c:1317
void rGetInfo(char *infoBuffer)
returns information about the robot's dongle, firmware, and communication mode as a 60 character arra...
Definition: MyroC-sensor.c:578
void rSetVolume(char highMute)
Set sound to high volume (H) or mute (M) highMute set volume of Scribbler.
Definition: MyroC-general.c:194
void rBeep(double duration, int frequency)
Beeps with the given duration and frequency.
Definition: MyroC-general.c:229
Struct for a pixel.
Definition: MyroC.h:115
int rGetBrightTxt(char *sensorName, int sampleSize)
Reads one of the Fluke's virtual light sensors. Each sensor reports a total intensity in the left...
Definition: MyroC-sensor.c:536
char * rGetName()
Get the name of the robot.
Definition: MyroC-general.c:315
void rDisconnect()
stop Scribbler motion and close Bluetooth
Definition: MyroC-connect-linux.c:411
int rGetLightTxt(const char *sensorName, int sampleSize)
Get the average values of a specified light sensor. Values of each light sensor can somewhat (typical...
Definition: MyroC-sensor.c:183
void rHardStop()
cuts power to the motor of the robot
Definition: MyroC-movement.c:627
double rGetBattery()
Get the current voltage from the Scribbler batteries; Maximum charge from 6 batteries could be up to ...
Definition: MyroC-general.c:487
void rDisplayPicture(Picture *pic, double duration, const char *windowTitle)
Display a picture in a new window.
Definition: MyroC-display-linux-mac.c:1190
void rSetConnection(ROBOT_CONNECTION_TYPE new_socket_num)
set current connection to the socket number
Definition: MyroC-general.c:148
void rGetBrightAll(int brightSensors[3], int sampleSize)
Read the Fluke's virtual light sensors. Since readings of each brightness sensor can vary substantial...
Definition: MyroC-sensor.c:510
int rGetObstacleTxt(const char *sensorName, int sampleSize)
Get the average values of a specified obstacle (IR) sensor. Since values of each obstacle sensor can ...
Definition: MyroC-sensor.c:456
void rForward(double speed, double time)
moves Scribbler forward for a specified time and speed
Definition: MyroC-movement.c:485
void rStop()
directs robot to stop movement
Definition: MyroC-movement.c:619
void rSetForwardness(char *direction)
specifies which end of the Scribbler is considered the front
Definition: MyroC-general.c:360
void rSetLEDFront(int led)
Set the front [fluke] LED on or off.
Definition: MyroC-general.c:436
void rFinishProcessing()
all timed motions/image displays completed, all robots stopped, and all robot Bluetooth connections c...
Definition: MyroC-general.c:172
void rBeep2(double duration, int freq1, int freq2)
Generates two notes for the prescribed duration.
Definition: MyroC-general.c:258
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...
Definition: MyroC-sensor.c:428
unsigned char R
The value of the red component.
Definition: MyroC.h:117
void rTurnSpeed(char *direction, double speed, double time)
turn Scribbler in direction for a specified time and speed
Definition: MyroC-movement.c:452
void rBackward(double speed, double time)
moves Scribbler backward for a specified time and speed
Definition: MyroC-movement.c:541
char * rGetForwardness()
Gets the forwardness of the Scribbler.
Definition: MyroC-general.c:404
unsigned char B
The value of the blue component.
Definition: MyroC.h:119
void rSetLEDBack(double led)
Set the the intensity of the back fluke LED.
Definition: MyroC-general.c:458
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...
Definition: MyroC-sensor.c:244
int width
The actual width of the image, but no more than 427.
Definition: MyroC.h:150
Picture rLoadPicture(char *filename)
Load a picture from a .jpeg file.
Definition: MyroC-image-file-linux-mac.c:320
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...
Definition: MyroC-sensor.c:293
void rFastForward(double time)
moves Scribbler forward at the largest possible speed for a specified time
Definition: MyroC-movement.c:500
void rSetIRPower(int power)
Set the amount of power for the dongle's IR sensors.
Definition: MyroC-sensor.c:397
void rTurnRight(double speed, double time)
turn Scribbler right for a specified time and speed
Definition: MyroC-movement.c:432