Smartcar Shield
Car.hpp
Go to the documentation of this file.
1 
5 #pragma once
6 
7 class Car
8 {
9 public:
10  virtual ~Car() = default;
11 
16  virtual void setSpeed(float speed) = 0;
17 
27  virtual void setAngle(int angle) = 0;
28 
42  virtual void overrideMotorSpeed(int firstMotorSpeed, int secondMotorSpeed) = 0;
43 };
Car::overrideMotorSpeed
virtual void overrideMotorSpeed(int firstMotorSpeed, int secondMotorSpeed)=0
Set the motor speed individually as a percentage of the motors` total power.
Car
Definition: Car.hpp:7
Car::setAngle
virtual void setAngle(int angle)=0
Set the car's driving angle.
Car::setSpeed
virtual void setSpeed(float speed)=0
Sets the car's driving speed.
Car::~Car
virtual ~Car()=default