Syntax 

int PCMSSetGovernorSpeed(Trip trip, long speed)


Parameters 

Trip trip – Handle to a trip.

long speed – The governor speed.


Description

Sets the vehicle’s governor speed. This will be the maximum speed allowed when running the trip and overrides all other road speeds including custom. Governor speed must be a positive number to be in effect or set to 0 to disable the feature. The default is 55 mph.


There is no upper bound on the speed value that can be set. However, unrealistically high values will have no effect on the trip’s estimated travel times.


Return Values 

Returns negative (-1) on error; zero (0) for success.


Supported Since: PC*MILER|Connect 30

Category: Trip Options