Skip to content

Releases

Ciprix 2026.3.0

Choose a tag to compare

@23Daniel3 23Daniel3 released this 21 Nov 01:16

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. Robot now extends CiprixRobot instead of LoggedRobot. 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 the periodic(), autonomousStart(), teleopStart() and testStart() hooks, and adjust CiprixSettings in configure().

  • One vendordep. Ciprix.json now bundles every module (core, CTRE Phoenix 6, Phoenix 5, REV, PathPlanner) and commons-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:

  • 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 in NOTICE.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

  1. Vendordeps. Update Ciprix.json (WPILib: Manage Vendor Libraries → Check for updates). Then delete vendordeps/Ciprix-CTRE.json, Ciprix-REV.json, Ciprix-Phoenix5.json and Ciprix-PathPlanner.json. You can also remove the commons-math3 line from build.gradle.

  2. Robot.java. Extend CiprixRobot:

    • Call super(Constants.simMode, Constants.tuningMode).
    • Move the CiprixSettings.set... calls into configure().
    • Return your auto from getAutonomousCommand().
    • Remove your own Logger setup and scheduler calls.
    • Remove the Mode enum from Constants. Use CiprixSettings.Mode and CiprixSettings.getMode() instead.

    See templates/skeleton for a full example. LoggedRobot still works if you are not ready to switch.

  3. 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 with AllianceFlipUtil.
    • PIDRotation: the output is now limited to the drivetrain's max angular speed.
    • EncoderIOCANcoder.setPosition now 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.
  • AntiTippingAccel reads the nominal acceleration limits once and restores them correctly. reset() now clears all of its state. New getLastState() for logging.
  • SuperStructureBase rejects a null initial request before the subsystem is registered.
  • CTRE: EncoderIOCANcoder retries its boot configuration (up to 5 attempts) and reports an error if the device never answers. setPosition accounts 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) and getCANcoder().
  • MotorIOTalonSRX.getTalon() and MotorIOVictorSPX.getVictor().
  • A warning when an EncoderIOCANcoder with 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

Ciprix 2026.2.0

Choose a tag to compare

@23Daniel3 23Daniel3 released this 20 Nov 20:05

What's Changed

  • Transforma a Ciprix na biblioteca do framework, publicada como vendordep by @23Daniel3 in #1

Full Changelog: https://github.com/23Daniel3/Ciprix/commits/v2026.2.0