8#include "../distance/DistanceCar.hpp"
9#include "../heading/HeadingCar.hpp"
Interface to generalize all classes that can provide a way to control a Car.
A class to programmatically represent a vehicle equipped with odometers.
void overrideMotorSpeed(int firstMotorSpeed, int secondMotorSpeed) override
Sets the motor speed individually as a percentage of the motors` total power unless cruise control is...
void setSpeed(float speed) override
Sets the car's speed in meters per second if cruise control is enabled otherwise as a percentage of t...
A class to programmatically represent a vehicle equipped with a heading sensor.
A heading sensor is an interface that can represent all sensors which can provide the vehicle's headi...
An interface to programmatically represent all odometers.
An interface to serve as a wrapper for the native runtime environment, greatly inspired by the Arduin...
A class to programmatically represent a vehicle equipped with odometers and a heading sensor.
void update() override
Adjusts the speed when cruise control is enabled and calculates the current heading.