Class Race.State

All Implemented Interfaces:
Iterable<Byte>, Collection<Byte>, List<Byte>
Enclosing class:
Race

public static class Race.State extends SetCommand
The race state
  • Method Details

    • getAccelerations

      public List<Property<Acceleration>> getAccelerations()
      Returns:
      The accelerations
    • getUndersteering

      public Property<Double> getUndersteering()
      Returns:
      The understeering percentage between 0.0-1.0 whereas up to 0.2 (20%) is considered OK, up to 0.3 (30%) marginal, over 30% critical
    • getOversteering

      public Property<Double> getOversteering()
      Returns:
      The oversteering percentage between 0.0-1.0 whereas up to 0.2 (20%) is considered OK, up to 30% marginal, over 30% critical
    • getGasPedalPosition

      public Property<Double> getGasPedalPosition()
      Returns:
      The gas pedal position between 0.0-1.0, whereas 1.0 (100%) is full throttle
    • getSteeringAngle

      public Property<com.highmobility.autoapi.value.measurement.Angle> getSteeringAngle()
      Returns:
      The steering angle, whereas 0.0 is straight ahead, positive number to the right and negative number to the left
    • getBrakePressure

      public Property<com.highmobility.autoapi.value.measurement.Pressure> getBrakePressure()
      Returns:
      Brake pressure
    • getYawRate

      public Property<com.highmobility.autoapi.value.measurement.AngularVelocity> getYawRate()
      Returns:
      Yaw turning rate
    • getRearSuspensionSteering

      public Property<com.highmobility.autoapi.value.measurement.Angle> getRearSuspensionSteering()
      Returns:
      Rear suspension steering
    • getElectronicStabilityProgram

      public Property<ActiveState> getElectronicStabilityProgram()
      Returns:
      The electronic stability program
    • getBrakeTorqueVectorings

      public List<Property<BrakeTorqueVectoring>> getBrakeTorqueVectorings()
      Returns:
      The brake torque vectorings
    • getGearMode

      public Property<Race.GearMode> getGearMode()
      Returns:
      The gear mode
    • getSelectedGear

      public PropertyInteger getSelectedGear()
      Returns:
      The selected gear value, if any
    • getBrakePedalPosition

      public Property<Double> getBrakePedalPosition()
      Returns:
      The brake pedal position between 0.0-1.0, wheras 1.0 (100%) is full brakes
    • getBrakePedalSwitch

      public Property<ActiveState> getBrakePedalSwitch()
      Returns:
      The brake pedal switch
    • getClutchPedalSwitch

      public Property<ActiveState> getClutchPedalSwitch()
      Returns:
      The clutch pedal switch
    • getAcceleratorPedalIdleSwitch

      public Property<ActiveState> getAcceleratorPedalIdleSwitch()
      Returns:
      The accelerator pedal idle switch
    • getAcceleratorPedalKickdownSwitch

      public Property<ActiveState> getAcceleratorPedalKickdownSwitch()
      Returns:
      The accelerator pedal kickdown switch
    • getVehicleMoving

      public Property<Race.VehicleMoving> getVehicleMoving()
      Returns:
      The vehicle moving
    • getDrivetrainState

      public Property<Race.DrivetrainState> getDrivetrainState()
      Returns:
      State of the drivetrain for starts.
    • getAcceleratorDurations

      public List<Property<AcceleratorDuration>> getAcceleratorDurations()
      Returns:
      Duration during which the accelerator pedal has been pressed more than the given percentage.
    • getAcceleration

      @Nullable public Property<Acceleration> getAcceleration(Acceleration.Direction direction)
      Parameters:
      direction - The acceleration type.
      Returns:
      Acceleration for the given acceleration type. Null if doesnt exist.
    • getBrakeTorqueVectoring

      @Nullable public Property<BrakeTorqueVectoring> getBrakeTorqueVectoring(Axle axle)
      Parameters:
      axle - The axle.
      Returns:
      The Brake Torque Vectoring for the given axle. Null if doesn't exist.