Smartcar Shield
Loading...
Searching...
No Matches
HeadingCar.hpp
Go to the documentation of this file.
1
5#pragma once
6
7#include "../../sensors/heading/HeadingSensor.hpp"
8#include "../simple/SimpleCar.hpp"
9
10class HeadingCar : virtual public SimpleCar
11{
12public:
30 HeadingCar(Control& control, HeadingSensor& headingSensor);
31
41 int getHeading();
42
57 virtual void update();
58
59private:
60 HeadingSensor& mHeadingSensor;
61};
62
Interface to generalize all classes that can provide a way to control a Car.
Definition Control.hpp:24
A class to programmatically represent a vehicle 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)
Definition HeadingCar.cpp:9
A heading sensor is an interface that can represent all sensors which can provide the vehicle's headi...
A class to programmatically represent a very basic vehicle with two motors.
Definition SimpleCar.hpp:11