Go to the documentation of this file.
2 #include "../../utilities/Utilities.hpp"
const int kMinControlSpeed
void setAngle(int angle) override
Set the car's driving angle.
SimpleCar(Control &control)
Constructs a simple car.
const int kMaxControlAngle
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.
virtual void setSpeed(int speed)=0
Sets the driving speed as percentage of the total motor speed where the sign represents the direction...
const int kMaxControlSpeed
virtual void setAngle(int angle)=0
Sets the driving angle in degrees [-90, 90].
const int kMinControlAngle
constexpr AnyNumber getConstrain(AnyNumber number, AnyNumber min, AnyNumber max)
Limit the number between a range.
virtual void overrideMotorSpeed(int firstMotorSpeed, int secondMotorSpeed)=0
Set the motor speed individually as a percentage of the motors` total power.