2#include "../../utilities/Utilities.hpp"
Interface to generalize all classes that can provide a way to control a Car.
virtual void overrideMotorSpeed(int firstMotorSpeed, int secondMotorSpeed)=0
Set the motor speed individually as a percentage of the motors` total power.
virtual void setSpeed(int speed)=0
Sets the driving speed as percentage of the total motor speed where the sign represents the direction...
virtual void setAngle(int angle)=0
Sets the driving angle in degrees [-90, 90].
void setAngle(int angle) override
Set the car's driving angle.
void setSpeed(float speed) override
Sets the car's driving speed as a percentage of the motors total speed where the sign indicates direc...
void overrideMotorSpeed(int firstMotorSpeed, int secondMotorSpeed) override
Set the motor speed individually as a percentage of the motors` total power.
SimpleCar(Control &control)
Constructs a simple car.
const int kMinControlSpeed
const int kMaxControlSpeed
const int kMinControlAngle
const int kMaxControlAngle
constexpr AnyNumber getConstrain(AnyNumber number, AnyNumber min, AnyNumber max)
Limit the number between a range.