The STEAM Org Robotics Kit  v1
Robot.h
1 #ifndef ROBOT_H
2 #define ROBOT_H
3 
4 #include "Motor.h"
5 #include "Ultrasonic.h"
6 
11 class Robot {
12 public:
13  Robot(Motor &leftMotor, Motor &rightMotor, Ultrasonic &frontUltrasonic,
14  Ultrasonic &backUltrasonic);
18  void drive();
19 
20 private:
21  Motor leftMotor, rightMotor;
22  Ultrasonic frontUltrasonic, backUltrasonic;
23 };
24 
25 #endif
This allows for control of a motor through a L298N module A great explainer on how the l298N module w...
Definition: Motor.h:12
The robot class has left and right motors and has front and back ultrasonic sensors.
Definition: Robot.h:11
void drive()
Update this method to change how the robot behaves.
Definition: Robot.cpp:8
Allows to interface with a standard ultrasonic sensor.
Definition: Ultrasonic.h:9