Rover API Documentation
rover_sensor.hpp
Go to the documentation of this file.
1 /*
2  * Copyright (c) 2017 FH Dortmund and others
3  * All rights reserved. This program and the accompanying materials
4  * are made available under the terms of the Eclipse Public License v1.0
5  * which accompanies this distribution, and is available at
6  * http://www.eclipse.org/legal/epl-v10.html
7  *
8  * Description:
9  * Rover Sensor API - Interfaces for Rover sensors application development
10  * Header file
11  *
12  * Contributors:
13  * M.Ozcelikors <mozcelikors@gmail.com>, modified C++ API 04.12.2017
14  * created C++ API 17.11.2017
15  * initial QMC5883L driver implemented 30.11.2017
16  * David Schmelter, Fraunhofer IEM - compass sensor initial implementation
17  * Gael Blondelle, Eclipse Foundation - initial API and parameters
18  *
19  */
20 
21 #ifndef API_ROVER_SENSORS_HPP_
22 #define API_ROVER_SENSORS_HPP_
23 
24 #include <stdint.h>
25 #include <stdio.h>
26 #include <unistd.h>
27 
28 
29 //To debug the application, uncomment the following
30 //#define DEBUG 1
31 
32 
33 namespace rover
34 {
43  ROVER_REAR = 5};
44 
49  {
50  public:
55  virtual void initialize (void) = 0;
56 
61  virtual float read (void) = 0;
62 
66  virtual ~RoverSensor() {};
67 
68  };
69 }
70 
71 
72 
73 #endif /* API_ROVER_SENSORS_HPP_ */
virtual float read(void)=0
Virtual function (interface) for reading from sensors.
RoverSensor class is an abstract class to define interface between common sensors used in the rover...
Definition: rover_sensor.hpp:48
virtual void initialize(void)=0
Virtual function (interface) for setting up sensors.
RoverSensorID_t
RoverSensorID_t defines the sensor location ID of the proximity sensors on the rover.
Definition: rover_sensor.hpp:38
Definition: rover_sensor.hpp:40
virtual ~RoverSensor()
Destructor for the RoverSensor class.
Definition: rover_sensor.hpp:66
Definition: rover_sensor.hpp:43
Definition: rover_sensor.hpp:41
rover Namespace contains classes to manage Rover sensors, gpio, buzzer, buttons, driving, utilities, and cloud.
Definition: rover_api.hpp:293
Definition: rover_sensor.hpp:42
Definition: rover_sensor.hpp:38
Definition: rover_sensor.hpp:39