/// do not request if not supported:
PropertyList proplist = routingEngine->supported();
- if(contains(proplist,mAmbPropertyName))
+ if(contains(proplist, mAmbPropertyName))
routingEngine->getPropertyAsync(request);
}
void VariantType::fromGVariant(GVariant *val)
{
AbstractPropertyType *v = VehicleProperty::getPropertyTypeForPropertyNameValue(mAmbPropertyName);
- v->fromVariant( val );
+ v->fromVariant(val);
AsyncSetPropertyRequest request;
request.property = mAmbPropertyName;
VehicleProperty::EngineOilPressureType *oilPSI;
VehicleProperty::EngineCoolantTemperatureType *coolantTemp;
VehicleProperty::SteeringWheelAngleType *steeringAngle;
+ VehicleProperty::SteeringWheelAngleW3CType *steeringAngleW3C;
VehicleProperty::ThrottlePositionType *throttle;
VehicleProperty::ClutchStatusType *clutch;
VehicleProperty::WheelBrakeType *brake;
props.push_back(VehicleProperty::ThrottlePosition);
props.push_back(VehicleProperty::WheelBrake);
props.push_back(VehicleProperty::SteeringWheelAngle);
+ props.push_back(VehicleProperty::SteeringWheelAngleW3C);
props.push_back(VehicleProperty::TurnSignal);
props.push_back(VehicleProperty::ClutchStatus);
props.push_back(VehicleProperty::EngineOilPressure);
engineSpeed(new VehicleProperty::EngineSpeedType(0)),
vehicleSpeed(new VehicleProperty::VehicleSpeedType(0)),
steeringAngle(new VehicleProperty::SteeringWheelAngleType(0)),
+ steeringAngleW3C(new VehicleProperty::SteeringWheelAngleW3CType(0)),
clutch(new VehicleProperty::ClutchStatusType(false)),
brake(new VehicleProperty::WheelBrakeType(false)),
tempButton(new VehicleProperty::ButtonEventType(ButtonEvents::NoButton)),
return this->brake;
else if (propType == VehicleProperty::SteeringWheelAngle)
return this->steeringAngle;
+ else if (propType == VehicleProperty::SteeringWheelAngleW3C)
+ return this->steeringAngleW3C;
else if (propType == VehicleProperty::TurnSignal)
return this->turnSignal;
else if (propType == VehicleProperty::ClutchStatus)
void WheelPrivate::changeSteeringAngle(int val)
{
*steeringAngle = (((double)val/(double)32767.0) + (double)1.0) * (double)180.0;
+ *steeringAngleW3C = (((double)val/(double)32767.0) + (double)1.0) * (double)180.0;
this->re->updateProperty(steeringAngle, mParent->uuid());
+ this->re->updateProperty(steeringAngleW3C, mParent->uuid());
}
void WheelPrivate::changeClutch(int val)