Skip to content

Conversation

rtestardi
Copy link
Contributor

@rtestardi rtestardi commented Sep 24, 2025

I tested this maxswerve example by changing CAN IDs in constants.py and changing "fieldRelative" from False to True True to False in the robotcontainer.py drive() line -- I tested with a standard xbox controller.

@rtestardi
Copy link
Contributor Author

Very strange -- "ci / check" wanted some lines broken and others merged, so I did that, and now it seems to want a trailing comma in a parameter list?

--- /home/runner/work/robotpy-rev/robotpy-rev/examples/maxswerve/subsystems/maxswervemodule.py	2025-09-24 20:02:20.652075+00:00 +++ /home/runner/work/robotpy-rev/robotpy-rev/examples/maxswerve/subsystems/maxswervemodule.py	2025-09-24 20:02:26.349903+00:00 @@ -107,16 +107,16 @@ # Save the SPARK MAX configurations. If a SPARK MAX browns out during # operation, it will maintain the above configurations. self.drivingSparkMax.configure( self.drivingConfig, SparkBase.ResetMode.kResetSafeParameters, - SparkBase.PersistMode.kPersistParameters + SparkBase.PersistMode.kPersistParameters, ) self.turningSparkMax.configure( self.turningConfig, SparkBase.ResetMode.kResetSafeParameters, - SparkBase.PersistMode.kPersistParameters + SparkBase.PersistMode.kPersistParameters, ) 
@virtuald
Copy link
Member

Just run black to format it.

@virtuald virtuald merged commit 68a5d3e into robotpy:main Sep 26, 2025
33 checks passed
@virtuald
Copy link
Member

Thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
2 participants