added capabilities call to VehicleProperty
authorKevron Rees <tripzero.kev@gmail.com>
Mon, 27 Aug 2012 23:30:13 +0000 (16:30 -0700)
committerKevron Rees <tripzero.kev@gmail.com>
Mon, 27 Aug 2012 23:30:13 +0000 (16:30 -0700)
lib/vehicleproperty.cpp
lib/vehicleproperty.h

index aa6bb81..692eeba 100644 (file)
@@ -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;
+}
index 44e5ddb..40914d3 100644 (file)
@@ -100,6 +100,8 @@ public:
 
        /**< Mass Air Flow.  TODO: units */
        static const Property MassAirFlow;
+
+       static std::list<VehicleProperty::Property> capabilities();
     
 };