summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKevron Rees <tripzero.kev@gmail.com>2012-08-27 16:30:13 -0700
committerKevron Rees <tripzero.kev@gmail.com>2012-08-27 16:30:13 -0700
commitfe70e7c2aee0a4cf66b5e2cd0e2e257d388d5c24 (patch)
tree1d1cf146a0ae2a6c7685a6e7e191ec535ffac9f7
parent1e39825a8f5dab7ae5009085d9c4adb6c7d15d8f (diff)
downloadautomotive-message-broker-fe70e7c2aee0a4cf66b5e2cd0e2e257d388d5c24.tar.gz
added capabilities call to VehicleProperty
-rw-r--r--lib/vehicleproperty.cpp22
-rw-r--r--lib/vehicleproperty.h2
2 files changed, 24 insertions, 0 deletions
diff --git a/lib/vehicleproperty.cpp b/lib/vehicleproperty.cpp
index aa6bb816..692eebaf 100644
--- a/lib/vehicleproperty.cpp
+++ b/lib/vehicleproperty.cpp
@@ -44,3 +44,25 @@ VehicleProperty::VehicleProperty()
}
+std::list<VehicleProperty::Property> VehicleProperty::capabilities()
+{
+ PropertyList mProperties;
+
+ mProperties.push_back(VehicleSpeed);
+ mProperties.push_back(EngineSpeed);
+ mProperties.push_back(TransmissionShiftPosition);
+ mProperties.push_back(TransmissionGearPosition);
+ mProperties.push_back(ThrottlePosition);
+ mProperties.push_back(WheelBrake);
+ mProperties.push_back(SteeringWheelAngle);
+ mProperties.push_back(TurnSignal);
+ mProperties.push_back(ClutchStatus);
+ mProperties.push_back((EngineOilPressure));
+ mProperties.push_back(EngineCoolantTemperature);
+ mProperties.push_back(AccelerationX);
+ mProperties.push_back(AccelerationY);
+ mProperties.push_back(AccelerationZ);
+ mProperties.push_back(MassAirFlow);
+
+ return mProperties;
+}
diff --git a/lib/vehicleproperty.h b/lib/vehicleproperty.h
index 44e5ddbb..40914d32 100644
--- a/lib/vehicleproperty.h
+++ b/lib/vehicleproperty.h
@@ -100,6 +100,8 @@ public:
/**< Mass Air Flow. TODO: units */
static const Property MassAirFlow;
+
+ static std::list<VehicleProperty::Property> capabilities();
};