-
Notifications
You must be signed in to change notification settings - Fork 30
/
Copy pathanalyzervehicle_rover.h
52 lines (37 loc) · 1.49 KB
/
analyzervehicle_rover.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
#include "analyzervehicle.h"
#ifndef _ANALYZER_VEHICLE_ROVER
#define _ANALYZER_VEHICLE_ROVER
#include <set>
namespace AnalyzerVehicle {
class Rover : public Base {
public:
/// @brief Construct a Rover object
Rover() :
Base()
{ }
/// @brief Returns a short string describing the vehicle.
/// @return A short string describing the vehicle e.g. "Copter".
const std::string typeString() const override { return "Rover"; }
/// @brief Evaluation of whether the vehicle is flying.
/// @return ``true`` if it is believed the vehicle is flying.
bool is_flying() const override;
/// @brief Return the default value for a parameter.
/// @detail Default parameters are supplied so that some analysis can be done even in the absence of parameters in the logs.
/// @param name Parameter to retrieve default value for.
/// @param[out] ret Value of parameter.
/// @return ``true`` if a default was found for the parameters.
bool param_default(const char *name, float &ret) const override;
/// @brief Vehicle type.
/// @return The current vehicle type.
vehicletype_t vehicletype() const override {
return rover;
}
protected:
private:
// parameter defaults:
std::map<const std::string, float> _param_defaults = {
// { "ANGLE_MAX", 3000.0f } // degrees*100
};
};
} // end namepsace
#endif