From: Kevron Rees Date: Mon, 25 Aug 2014 18:49:50 +0000 (-0700) Subject: enginecoolant should be signed X-Git-Tag: 0.12.903~125 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=c97f43b81a42db7ff1c9ce3596332629a402ca85;p=profile%2Fivi%2Fautomotive-message-broker.git enginecoolant should be signed --- diff --git a/lib/vehicleproperty.h b/lib/vehicleproperty.h index af8f6f9..c4ce234 100644 --- a/lib/vehicleproperty.h +++ b/lib/vehicleproperty.h @@ -441,7 +441,7 @@ public: /**< Engine coolant temperature in degrees celcius **/ static const Property EngineCoolantTemperature; - PROPERTYTYPE(EngineCoolantTemperature, EngineCoolantTemperatureType, BasicPropertyType, uint) + PROPERTYTYPE(EngineCoolantTemperature, EngineCoolantTemperatureType, BasicPropertyType, int) //typedef BasicPropertyType EngineCoolantTemperatureType; static const Property EngineCoolantLevel; diff --git a/plugins/exampleplugin.cpp b/plugins/exampleplugin.cpp index c7bf265..2e59d29 100644 --- a/plugins/exampleplugin.cpp +++ b/plugins/exampleplugin.cpp @@ -41,9 +41,9 @@ const char* id = "6dd4268a-c605-4a06-9034-59c1e8344c8e"; static gboolean timeoutCallback(gpointer data) { ExampleSourcePlugin* src = (ExampleSourcePlugin*)data; - + src->randomizeProperties(); - + return true; } @@ -110,7 +110,7 @@ ExampleSourcePlugin::ExampleSourcePlugin(AbstractRoutingEngine* re, map config) { return new ExampleSourcePlugin(routingengine, config); - + } const string ExampleSourcePlugin::uuid() @@ -361,10 +361,10 @@ void ExampleSourcePlugin::randomizeProperties() steeringWheelAngle = 1 + (359.00 * (rand() / (RAND_MAX + 1.0))); throttlePos = 1 + (100.00 * (rand() / (RAND_MAX + 1.0))); engineCoolant = 1 + (40.00 * (rand() / (RAND_MAX + 140.0))); - + DebugOut()<<"setting velocity to: "<