diff options
author | Kevron Rees <tripzero.kev@gmail.com> | 2017-01-03 08:24:42 -0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2017-01-03 08:24:42 -0800 |
commit | 8af1cc9a502cb85736b7afb37dc9073a168aa605 (patch) | |
tree | 9cc25edebe2d54a8e638a2f1ce27b72e11ff8fdd /plugins/wheel/wheelplugin.cpp | |
parent | be3f71efda71a23251324877e13cc8dec0f5b1f3 (diff) | |
parent | 5b9c64147350ccd7859765c1a5cb3323826f2e29 (diff) | |
download | automotive-message-broker-8af1cc9a502cb85736b7afb37dc9073a168aa605.tar.gz |
Merge pull request #86 from again4you/fix_warning_v2
fixed all warning messages when enabling -Wall option (v2)
Diffstat (limited to 'plugins/wheel/wheelplugin.cpp')
-rw-r--r-- | plugins/wheel/wheelplugin.cpp | 23 |
1 files changed, 9 insertions, 14 deletions
diff --git a/plugins/wheel/wheelplugin.cpp b/plugins/wheel/wheelplugin.cpp index 0cbdf017..48685da9 100644 --- a/plugins/wheel/wheelplugin.cpp +++ b/plugins/wheel/wheelplugin.cpp @@ -143,11 +143,6 @@ void WheelSourcePlugin::getPropertyAsync(AsyncPropertyReply *reply) reply->completed(reply); } -AsyncPropertyReply *WheelSourcePlugin::setProperty(AsyncSetPropertyRequest request ) -{ - -} - void WheelSourcePlugin::subscribeToPropertyChanges(VehicleProperty::Property property) { mRequests.insert(property); @@ -207,21 +202,21 @@ void readCallback(GObject *srcObj, GAsyncResult *res, gpointer userData) WheelPrivate::WheelPrivate(WheelSourcePlugin *parent, AbstractRoutingEngine *route) :re(route), gis(nullptr), axis(nullptr), button(nullptr), - oilPSI(new VehicleProperty::EngineOilPressureType(10)), - coolantTemp(new VehicleProperty::EngineCoolantTemperatureType(100)), - turnSignal(new VehicleProperty::TurnSignalType(TurnSignals::Off)), - throttle(new VehicleProperty::ThrottlePositionType(0)), machineGuns(new VehicleProperty::MachineGunTurretStatusType(false)), - gearPosition(new VehicleProperty::TransmissionGearPositionType(Transmission::Neutral)), - shiftPosition(new VehicleProperty::TransmissionShiftPositionType(Transmission::Neutral)), - engineSpeed(new VehicleProperty::EngineSpeedType(0)), vehicleSpeed(new VehicleProperty::VehicleSpeedType(0)), + engineSpeed(new VehicleProperty::EngineSpeedType(0)), + turnSignal(new VehicleProperty::TurnSignalType(TurnSignals::Off)), + shiftPosition(new VehicleProperty::TransmissionShiftPositionType(Transmission::Neutral)), + gearPosition(new VehicleProperty::TransmissionGearPositionType(Transmission::Neutral)), + oilPSI(new VehicleProperty::EngineOilPressureType(10)), + coolantTemp(new VehicleProperty::EngineCoolantTemperatureType(100)), steeringAngle(new VehicleProperty::SteeringWheelAngleType(0)), steeringAngleW3C(new VehicleProperty::SteeringWheelAngleW3CType(0)), + throttle(new VehicleProperty::ThrottlePositionType(0)), clutch(new VehicleProperty::ClutchStatusType(false)), brake(new VehicleProperty::WheelBrakeType(false)), - tempButton(new VehicleProperty::ButtonEventType(ButtonEvents::NoButton)), - mParent(parent) + mParent(parent), + tempButton(new VehicleProperty::ButtonEventType(ButtonEvents::NoButton)) { unsigned char numAxes = 0; |