5 , mHeadingSensor(headingSensor)
Interface to generalize all classes that can provide a way to control a Car.
HeadingCar(Control &control, HeadingSensor &headingSensor)
Constructs a car equipped with a heading sensor.
virtual void update()
Updates the readings from the heading sensor.
int getHeading()
Returns the car's current heading in degrees [0, 360)
A heading sensor is an interface that can represent all sensors which can provide the vehicle's headi...
virtual int getHeading()=0
Returns the current heading of the vehicle.
virtual void update()=0
Updates the sensor's readings.
A class to programmatically represent a very basic vehicle with two motors.