Go to the documentation of this file.
3 #include "../../utilities/Utilities.hpp"
11 , mThrottling(throttling)
37 mThrottling.
setSpeed(secondMotorSpeed);
void overrideMotorSpeed(int firstMotorSpeed, int secondMotorSpeed) override
Set the motor speed individually as a percentage of the motors` total power.
const int kMaxControlAngle
constexpr AnyNumber getMap(AnyNumber valueToMap, AnyNumber fromLow, AnyNumber fromHigh, AnyNumber toLow, AnyNumber toHigh)
Maps a value from a range to another.
void setAngle(int angle) override
Sets the driving angle in degrees [-90, 90].
AckermanControl(Motor &steering, Motor &throttling)
Constructs an Ackerman way of controlling the vehicle.
void setSpeed(int speed) override
Sets the driving speed as percentage of the total motor speed where the sign represents the direction...
const int kMinControlAngle
constexpr AnyNumber getConstrain(AnyNumber number, AnyNumber min, AnyNumber max)
Limit the number between a range.
virtual void setSpeed(int speed)=0
Sets the motor speed and direction as the percentage of the maximum possible speed,...