helsinkiAUV / auv

Software for the Autonomous Underwater Vehicle developed by the University of Helsinki physics students.
GNU General Public License v3.0
1 stars 0 forks source link

Write Sensor-class #9

Closed helsinkiAUV closed 8 years ago

helsinkiAUV commented 8 years ago

Write a Sensor class from which all of the sensor objects (e.g. TemperatureSensor, SalinitySensor etc.) are derived. This must contain a virtual function "read" as in the Gps-class.

Create the TemperatureSensor by deriving from the Sensor class and make the "read" function virtual. Then, derive a new class TemperatureSimulator (in the testSuite) from the TemperatureSensor class and write an actual implementation of the "read" function.

As the simulators are all programmed in header files and the Sensor class does not need a body, there's no need for cpp files. Create each class in its own header and follow the conventions of the previous code (copyright notice, function documentation, long and descriptive variable names, header guards, no doubles, const-correctness etc.).