lots of comments inline
authorKevron Rees <kevron_m_rees@linux.intel.com>
Mon, 1 Apr 2013 20:07:04 +0000 (13:07 -0700)
committerKevron Rees <kevron_m_rees@linux.intel.com>
Mon, 1 Apr 2013 20:07:04 +0000 (13:07 -0700)
CMakeLists.txt
plugins/dbus/maintenance.h
plugins/dbus/runningstatus.h

index 0e3a081..d8cfb88 100644 (file)
@@ -6,7 +6,7 @@ set(CMAKE_BUILD_TYPE, Debug)
 include(FindPkgConfig)
 
 set(PROJECT_NAME "automotive-message-broker")
-set(PROJECT_VERSION "0.7.9")
+set(PROJECT_VERSION "0.8.9")
 
 add_definitions(-DPROJECT_VERSION="${PROJECT_VERSION}")
 add_definitions(-DPROJECT_NAME="${PROJECT_NAME}")
@@ -31,10 +31,10 @@ if(opencvlux_plugin)
 endif(opencvlux_plugin)
 
 include (CMakeForceCompiler)
-option(ENABLE_ICECC "Enable icecc checking, for distributed compilation" OFF)
+option(ENABLE_ICECC "Enable icecc checking, for distributed compilation" ON)
 
 if (ENABLE_ICECC)
-   find_program(ICECC icecc)
+   find_program(ICECC /usr/lib/icecc/bin/c++)
     if (ICECC)
         message(STATUS "icecc will be used for distributed compiling")
         cmake_force_cxx_compiler(${ICECC} icecc)
index ab32a88..1c8cfd5 100644 (file)
@@ -16,6 +16,7 @@ public:
                /** @attributeName Odometer
                 *  @type unsigned long
                 *  @access readonly
+                *  @attributeComment \brief MUST return Distance traveled in km
                 **/
                wantProperty<uint>(VehicleProperty::Odometer, "Odometer", "i", AbstractProperty::Read);
 
@@ -23,6 +24,36 @@ public:
        }
 };
 
+/** @interface Fluid : VehiclePropertyType **/
+class FluidProperty : public DBusSink
+{
+public:
+       FluidProperty(AbstractRoutingEngine* re, GDBusConnection* connection)
+               :DBusSink("org.automotive.Fluid","/org/automotive/maintenance/Fluid", re, connection, map<string, string>())
+       {
+               /** @attributeName Transmission
+                *  @type unsigned short
+                *  @access readonly
+                *  @attributeComment \brief MUST return Transmission fluid level percentage. 0-100.
+                **/
+               wantProperty<uint16_t>(VehicleProperty::TransmissionFluidLevel, "Transmission", "q", AbstractProperty::Read);
+
+               /** @attributeName Brake
+                *  @type unsigned short
+                *  @access readonly
+                *  @attributeComment \brief MUST return Brake fluid level percentage. 0-100.
+                **/
+               wantProperty<uint16_t>(VehicleProperty::BrakeFluidLevel, "Brake", "q", AbstractProperty::Read);
+
+               /** @attributeName Washer
+                *  @type unsigned short
+                *  @access readonly
+                *  @attributeComment \brief MUST return Washer fluid level percentage. 0-100.
+                **/
+               wantProperty<uint16_t>(VehicleProperty::WasherFluidLevel, "Washer", "q", AbstractProperty::Read);
+       }
+};
+
 /** @interface Battery : VehiclePropertyType **/
 class BatteryProperty: public DBusSink
 {
@@ -33,12 +64,14 @@ public:
                /** @attributeName Voltage
                 *  @type double
                 *  @access readonly
+                *  @attributeComment \brief MUST return battery voltage.
                 **/
                wantProperty<double>(VehicleProperty::BatteryVoltage, "Voltage", "d", AbstractProperty::Read);
 
                /** @attributeName Current
                 *  @type double
                 *  @access readonly
+                *  @attributeComment \brief MUST return battery current in Amperes
                 **/
                wantProperty<double>(VehicleProperty::BatteryCurrent, "Current", "d", AbstractProperty::Read);
                supportedChanged(re->supported());
@@ -55,24 +88,28 @@ public:
                /** @attributeName LeftFront
                 *  @type double
                 *  @access readonly
+                *  @attributeComment \brief MUST return left front tire pressure in kPa.
                 **/
                wantProperty<double>(VehicleProperty::TirePressureLeftFront, "LeftFront", "d", AbstractProperty::Read);
 
                /** @attributeName RightFront
                 *  @type double
                 *  @access readonly
+                *  @attributeComment \brief MUST return right front tire pressure in kPa.
                 **/
                wantProperty<double>(VehicleProperty::TirePressureRightFront, "RightFront", "d", AbstractProperty::Read);
 
                /** @attributeName LeftRear
                 *  @type double
                 *  @access readonly
+                *  @attributeComment \brief MUST return left rear tire pressure in kPa.
                 **/
                wantProperty<double>(VehicleProperty::TirePressureLeftRear, "LeftRear", "d", AbstractProperty::Read);
 
                /** @attributeName RightRear
                 *  @type double
                 *  @access readonly
+                *  @attributeComment \brief MUST return right rear tire pressure in kPa.
                 **/
                wantProperty<double>(VehicleProperty::TirePressureRightRear, "RightRear", "d", AbstractProperty::Read);
                supportedChanged(re->supported());
@@ -89,24 +126,28 @@ public:
                /** @attributeName LeftFront
                 *  @type double
                 *  @access readonly
+                *  @attributeComment \brief MUST return left front tire temperature in Celcius.
                 **/
                wantProperty<double>(VehicleProperty::TireTemperatureLeftFront, "LeftFront", "d", AbstractProperty::Read);
 
                /** @attributeName RightFront
                 *  @type double
                 *  @access readonly
+                *  @attributeComment \brief MUST return right front tire temperature in Celcius.
                 **/
                wantProperty<double>(VehicleProperty::TireTemperatureRightFront, "RightFront", "d", AbstractProperty::Read);
 
                /** @attributeName LeftRear
                 *  @type double
                 *  @access readonly
+                * @attributeComment \brief MUST return left rear tire temperature in Celcius.
                 **/
                wantProperty<double>(VehicleProperty::TireTemperatureLeftRear, "LeftRear", "d", AbstractProperty::Read);
 
                /** @attributeName RightRear
                 *  @type double
                 *  @access readonly
+                *  @attributeComment \brief MUST return right rear tire temperature in Celcius.
                 **/
                wantProperty<double>(VehicleProperty::TireTemperatureRightRear, "RightRear", "d", AbstractProperty::Read);
                supportedChanged(re->supported());
index 09dd705..05be09f 100644 (file)
@@ -31,7 +31,7 @@ public:
                :DBusSink("org.automotive.VehicleSpeed","/org/automotive/runningstatus/VehicleSpeed", re, connection, map<string, string>())
        {
                /** @attributeName VehicleSpeed
-                *  @type unsigned short
+                *  @type unsigned long
                 *  @access readonly
                 **/
                wantProperty<uint16_t>(VehicleProperty::VehicleSpeed,"VehicleSpeed", "i", AbstractProperty::Read);
@@ -49,7 +49,7 @@ public:
                :DBusSink("org.automotive.EngineSpeed","/org/automotive/runningstatus/EngineSpeed", re, connection, map<string, string>())
        {
                /** @attributeName EngineSpeed
-                *  @type unsigned short
+                *  @type unsigned long
                 *  @access readonly
                 **/
                wantProperty<uint16_t>(VehicleProperty::EngineSpeed,"EngineSpeed", "i", AbstractProperty::Read);