6 #include <Adafruit_MotorShield.h> 7 #include <SoftwareSerial.h> 95 String _name =
"", text;
192 MOREbot(
int LM,
int RM,
int trig,
int echo);
203 MOREbot(String name,
int LM,
int RM,
int trig,
int echo,
int rx,
int tx);
245 void left(
int speed);
250 void right(
int speed);
Bluetooth BLE class.
Definition: MOREbot.h:68
float getDirection()
Call function for the last direction recieved.
Definition: MOREbot.cpp:149
void btControl()
Operation function for full control from a BLE connection.
Definition: MOREbot.cpp:225
void bounce()
Operation function for full control to maintain distance to object in front.
Definition: MOREbot.cpp:242
Definition: MOREbot.h:160
void setup()
Checks that the module is responding and attempts to rename it if a name was given during constructio...
Definition: MOREbot.cpp:80
void stop()
Drive function for MOREbot to stop.
Definition: MOREbot.cpp:216
void right(int speed)
Drive function for MOREbot to drive right.
Definition: MOREbot.cpp:211
String getText()
Call function for the last text recieved.
Definition: MOREbot.cpp:165
int getButton()
Call function for the last button id recieved.
Definition: MOREbot.cpp:153
bluetooth(int rx, int tx)
Basic Bluetooth constructor.
Definition: MOREbot.cpp:69
ultrasonic(int trig, int echo)
Ultrasonic constructor.
Definition: MOREbot.cpp:40
bluetooth getBluetooth()
Call function for the bluetooth object.
Definition: MOREbot.cpp:192
float readDistance()
Function to get distance from the Ultrasonic.
Definition: MOREbot.cpp:47
motor getLeftMotor()
Call function for the left motor motor object.
Definition: MOREbot.cpp:180
void processData()
Reads the BLE stream for any data that the module has recieved.
Definition: MOREbot.cpp:89
void backward(int speed)
Drive function for MOREbot to drive backward.
Definition: MOREbot.cpp:201
ultrasonic getUltrasonic()
Call function for the ultrasonic object.
Definition: MOREbot.cpp:188
bool getModeButton()
Call function for the current mode status, inverts when the mode button id (2) is recieved.
Definition: MOREbot.cpp:141
void setup()
Robot setup.
Definition: MOREbot.cpp:175
void stop()
Stop motor function.
Definition: MOREbot.cpp:35
float readDistance()
Distance sensing function.
Definition: MOREbot.cpp:221
void counterClockwise(int speed)
counterClockwise motor function.
Definition: MOREbot.cpp:13
void forward(int speed)
Drive function for MOREbot to drive forward.
Definition: MOREbot.cpp:196
void clockwise(int speed)
Backward motor function.
Definition: MOREbot.cpp:24
Motor class.
Definition: MOREbot.h:11
int getSliderValue()
Call function for the last slider value recieved.
Definition: MOREbot.cpp:161
int getSlider()
Call function for the last slider id recieved.
Definition: MOREbot.cpp:157
motor getRightMotor()
Call function for the right motor motor object.
Definition: MOREbot.cpp:184
motor(int MX)
Motor constructor.
Definition: MOREbot.cpp:9
void left(int speed)
Drive function for MOREbot to drive left.
Definition: MOREbot.cpp:206
int getSpeed()
Call function for sthe last speed recieved.
Definition: MOREbot.cpp:145
Ultrasonic class.
Definition: MOREbot.h:43
MOREbot(int LM, int RM)
Two motor MOREbot constructor.
Definition: MOREbot.cpp:169