Repository navigation
Ciprix 2026.3.0
The final Ciprix release for the 2026 season. Setup is now simpler: one vendordep and one base class. This release also adds more than 40 test classes, fixes the bugs those tests found, and ships runnable examples and a documentation site.
Developed by Daniel Cipriani.
Highlights
-
CiprixRobot.Robotnow extendsCiprixRobotinstead ofLoggedRobot. It sets up:- AdvantageKit logging: USB + NetworkTables on the robot, NetworkTables in sim, and log replay.
- The runtime mode and tuning mode.
AutoLogOutputManager, the default pre-match checklist and the command scheduler.
The lifecycle methods are
final, so the scheduler can't be switched off by accident. Use theperiodic(),autonomousStart(),teleopStart()andtestStart()hooks, and adjustCiprixSettingsinconfigure(). -
One vendordep.
Ciprix.jsonnow bundles every module (core, CTRE Phoenix 6, Phoenix 5, REV, PathPlanner) andcommons-math3. You only install the vendor libraries you actually use: Phoenix 6, Phoenix 5, REVLib, PathPlannerLib. VS Code still offers AdvantageKit and WPILibNewCommands automatically. -
Documentation site: https://23daniel3.github.io/Ciprix/docs/ (in English), with new guides: Controllers, Zones, Driving helpers, Safety and Tunables and dashboard.
-
Runnable examples, each a complete robot project built in CI against the library:
arm-elevator: position control, Motion Magic, gravity feedforward and the 3D robot.rev-and-phoenix5: the same pattern with SPARK and Talon SRX.swerve-vision: driving helpers and AprilTag vision.power-and-pit: power priorities, alerts and the pre-match checklist.
-
License. Ciprix is now licensed under the GNU GPL v3 (see
LICENSE). Code that came from FRC 6328 (Mechanical Advantage), AdvantageKit and PathPlanner keeps its original copyright and is credited inNOTICE.md. Teams can use Ciprix freely in their robot code. If you distribute a modified Ciprix, you must also distribute it under the GPLv3.
Migrating from 2026.2.x
-
Vendordeps. Update
Ciprix.json(WPILib: Manage Vendor Libraries → Check for updates). Then deletevendordeps/Ciprix-CTRE.json,Ciprix-REV.json,Ciprix-Phoenix5.jsonandCiprix-PathPlanner.json. You can also remove thecommons-math3line frombuild.gradle. -
Robot.java. Extend
CiprixRobot:- Call
super(Constants.simMode, Constants.tuningMode). - Move the
CiprixSettings.set...calls intoconfigure(). - Return your auto from
getAutonomousCommand(). - Remove your own Logger setup and scheduler calls.
- Remove the
Modeenum fromConstants. UseCiprixSettings.ModeandCiprixSettings.getMode()instead.
See
templates/skeletonfor a full example.LoggedRobotstill works if you are not ready to switch. - Call
-
Behavior changes. Retest these on the robot:
ShotOnTheMoveCalculator: the sign of the lateral compensation angle was wrong and is now fixed. If you flipped the sign on your side as a workaround, remove that change.AntiTipping/AntiTippingAccel: the correction pushed in the wrong direction. It is now robot-relative: +pitch drives +X, +roll drives −Y.TargetAssistModifier,ZoneRepulsionModifier,DualZoneSuctionBumpModifier: they now convert field directions to the driver frame. Before, they pushed the wrong way on the Red alliance.AllianceSelector.isRed()/isBlue()now use the resolved alliance, so they agree withAllianceFlipUtil.PIDRotation: the output is now limited to the drivetrain's max angular speed.EncoderIOCANcoder.setPositionnow takes the software offset and the position conversion factor into account, so the encoder reports exactly the value you pass.
Fixes
TunableControls:- The copy constructor now keeps the profiled flag.
- Plain controllers now apply the period, velocity tolerance and continuous input.
- Tunable controllers read their gains as soon as they are created.
AntiTippingAccelreads the nominal acceleration limits once and restores them correctly.reset()now clears all of its state. NewgetLastState()for logging.SuperStructureBaserejects a null initial request before the subsystem is registered.- CTRE:
EncoderIOCANcoderretries its boot configuration (up to 5 attempts) and reports an error if the device never answers.setPositionaccounts for the software offset and conversion factor, and retries too. - REV: SPARKs no longer print the REVLib "kG is overriden by kCos" warning (with a stack trace) on every boot.
Additions
CiprixRobot.PreMatchChecklist.addDefaults()can now be called more than once safely.TranslationModifier.fieldToDriver(...)for custom modifiers.EncoderIOCANcoder(name, id, CANBus, config)andgetCANcoder().MotorIOTalonSRX.getTalon()andMotorIOVictorSPX.getVictor().- A warning when an
EncoderIOCANcoderwith a software offset is used as a Talon's hardware feedback.
Known limitation
When a CANcoder is used as the hardware feedback of a Talon (withExternalEncoder / withRemoteCANcoder), the Talon reads the raw CANcoder over CAN and does not see the software offset of EncoderConfig. Keep the offset at 0 in that case and zero the encoder with setPosition instead. Ciprix warns at startup if it finds a non-zero offset.
Tests
- Pure-logic tests: filters, zones, slew limiters, detectors, alliance flip, drivetrain assists, anti-tipping, encoders, SuperStructure, motors, tunable maps and controls, the shot calculator and controllers.
- Hardware tests on the vendor simulators:
- Phoenix 6: TalonFX, TalonFXS and CANcoder.
- REVLib: SPARK MAX and SPARK Flex.
- Phoenix 5: Talon SRX and Victor SPX.
- Every PWM motor type.
Install
Add https://23daniel3.github.io/Ciprix/Ciprix.json. To pin this version, use https://23daniel3.github.io/Ciprix/vendordeps/2026.3.0/Ciprix.json instead.
Pull requests: #2, #3, #4, #5, #6, #7, #8, #9, #10, #11, #12, #13, #14, #15, #16
Full Changelog: v2026.2.0...v2026.3.0