AK.F1.Timing.Messages.Driver.SetDriverSpeedMessage.SetDriverSpeedMessage C# (CSharp) Method

SetDriverSpeedMessage() public method

Initialises a new instance of the SetDriverSpeedMessage class and specifies if the Id of the driver, the speed capture location and the speed.
/// Thrown when or is negative. ///
public SetDriverSpeedMessage ( int driverId, SpeedCaptureLocation location, int speed ) : System
driverId int The Id of the driver.
location SpeedCaptureLocation The speed capture location.
speed int The driver's speed.
return System
        public SetDriverSpeedMessage(int driverId, SpeedCaptureLocation location, int speed)
            : base(driverId)
        {
            Guard.InRange(speed >= 0, "speed");

            Location = location;
            Speed = speed;
        }