Interface to generalize all classes that can provide a way to control a Car.
A class to programmatically represent a vehicle equipped with odometers.
virtual void update()
Adjusts the cruise control speed.
A class to programmatically represent a vehicle equipped with a heading sensor.
virtual void update()
Updates the readings from the 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 very basic vehicle with two motors.
SmartCar(Runtime &runtime, Control &control, HeadingSensor &headingSensor, Odometer &odometer)
Constructs a car equipped with a heading sensor and an odometer.
void update() override
Adjusts the speed when cruise control is enabled and calculates the current heading.