uint16_t accelerationX = 0;
uint16_t transmissionShiftPostion = 0;
uint16_t steeringWheelAngle=0;
+uint16_t throttlePos = 0;
static gboolean timeoutCallback(gpointer data)
{
props.push_back(VehicleProperty::AccelerationX);
props.push_back(VehicleProperty::TransmissionShiftPosition);
props.push_back(VehicleProperty::SteeringWheelAngle);
+ props.push_back(VehicleProperty::ThrottlePosition);
return props;
}
accelerationX = 1 + (15000.00 * (rand() / (RAND_MAX + 1.0)));
transmissionShiftPostion = 1 + (6.00 * (rand() / (RAND_MAX + 1.0)));
steeringWheelAngle = 1 + (359.00 * (rand() / (RAND_MAX + 1.0)));
+ throttlePos = 1 + (100.00 * (rand() / (RAND_MAX + 1.0)));
DebugOut()<<"setting velocity to: "<<velocity<<endl;
DebugOut()<<"setting enginespeed to: "<<engineSpeed<<endl;
routingEngine->updateProperty(VehicleProperty::AccelerationX, accelerationX);
routingEngine->updateProperty(VehicleProperty::SteeringWheelAngle, steeringWheelAngle);
routingEngine->updateProperty(VehicleProperty::TransmissionShiftPosition, transmissionShiftPostion);
+ routingEngine->updateProperty(VehicleProperty::ThrottlePosition, throttlePos);
}