Class VictorSPXSimProfile

java.lang.Object
swervelib.simulation.ctre.PhysicsSim.SimProfile
swervelib.simulation.ctre.VictorSPXSimProfile

class VictorSPXSimProfile extends PhysicsSim.SimProfile
Holds information about a simulated VictorSPX.
  • Field Details

    • _victor

      public final com.ctre.phoenix.motorcontrol.can.VictorSPX _victor
  • Constructor Details

    • VictorSPXSimProfile

      public VictorSPXSimProfile(com.ctre.phoenix.motorcontrol.can.VictorSPX victor)
      Creates a new simulation profile for a VictorSPX device.
      Parameters:
      victor - The VictorSPX device
  • Method Details

    • run

      public void run()
      Runs the simulation profile.

      This uses very rudimentary physics simulation and exists to allow users to test features of our products in simulation using our examples out of the box. Users may modify this to utilize more accurate physics simulation.

      Overrides:
      run in class PhysicsSim.SimProfile