1.5 2026 vs 2027
Tempo’s API is the same on WPILib 2026 and 2027, with
exceptions on alpha-7 and beyond: TempoAutos.chooser() returns a
Selectable, and in Java command() is
generic. The WPILib
and RobotPy code around it changes between years in every language. Pages where something
differs will show a 2026 / 2027 tab.
2026 will not continue to get updates after the full release of the 2027 WPILib version.
Vendordep and artifacts
| 2026 | 2027 | |
|---|---|---|
| Controller | roboRIO | SystemCore |
| Vendordep file | Tempo.json | one per alpha |
| Java artifact | com.tempo:tempo-java:0.9.0 | com.tempo:tempo-java:0.9.0-wpilib2027-<alpha> |
| C++ artifacts | tempo-cpp, tempo-core at 0.9.0 | tempo-cpp, tempo-core at 0.9.0-wpilib2027-<alpha> |
| Vendordep year field | frcYear: 2026 | wpilibYear, matching the GradleRIO version |
| JDK | 17 | 25 or newer |
| Python package | robotpy-tempo | the same robotpy-tempo release |
| Commands | v2 | v2; Java on alpha-7 and alpha-8 also v3 |
Which 2027 vendordep
Each 2027 alpha has its own vendordep, because WPILib’s API changes between
alphas. Tempo has builds for alpha-6, alpha-7 and alpha-8. Install only the
one for the GradleRIO version in your build.gradle:
| WPILib version | Vendordep file | Artifact version | wpilibYear |
|---|---|---|---|
2027.0.0-alpha-6 | Tempo-wpilib2027-alpha6.json | 0.9.0-wpilib2027-alpha6 | 2027_alpha5 |
2027.0.0-alpha-7 | Tempo-wpilib2027-alpha7.json | 0.9.0-wpilib2027-alpha7 | 2027_alpha7 |
2027.0.0-alpha-8 | Tempo-wpilib2027-alpha8.json | 0.9.0-wpilib2027-alpha8 | 2027_alpha7 |
WPILib 2026 (2026.2.1 or later) uses Tempo.json. No other 2027 alpha
has a Tempo build. Each wpilibYear is the string that GradleRIO version
requires, and GradleRIO alpha-8 still expects 2027_alpha7. A vendordep with
a different year stops the build before any task runs:
Vendor Dependency Tempo (WPILib 2027.0.0-alpha-6) has invalid year 2027_alpha5. Expected to be 2027_alpha7.The WPILib version in the message is the one the installed vendordep was
built for. Editing the year in the file doesn’t fix it. To change alphas,
delete the old Tempo file from vendordeps/ and install the new one.
A 2027 project may still hold an older Tempo vendordep named Tempo.json
(version 1.0.0-rc.1-wpilib2027). Delete it first. Left beside the new file, it
fails the build with its own invalid year error, or loads a second JAR
and prints
[Tempo] 2 Tempo JARs are on the classpath, and only one of them runs.
Once the full 2027 WPILib version is out, the 2027 version of Tempo will use Tempo.json.
When the WPILib version does not match
If you are using the wrong vendordep, a version of these error messages will show up:
[Tempo] This Tempo build targets WPILib 2027.0.0-alpha-6; the robot runs WPILib 2027.0.0-alpha-5. No Tempo build supports WPILib 2027.0.0-alpha-5. Tempo has builds for WPILib 2026.2.1, 2027.0.0-alpha-6, 2027.0.0-alpha-7 and 2027.0.0-alpha-8; move the robot project to one of those and install its Tempo vendordep. Tempo does not run until the two match.[Tempo] This Tempo build targets WPILib 2027.0.0-alpha-7; the robot runs WPILib 2027.0.0-alpha-6. Install Tempo's vendordep for WPILib 2027.0.0-alpha-6 (Tempo-wpilib2027-alpha6.json) in place of this one, or install WPILib 2027.0.0-alpha-7. Tempo does not run until the two match.After that, these calls throw with the same text, and the first one made during robot startup stops the robot program:
| Language | Calls that refuse |
|---|---|
| Java | Tempo.configure, TempoAutos.chooser, the Pose factories and captures, and every call that reaches the planner, TempoConfig building included (TempoException) |
| C++ | tempo::wpi::configure, TempoAutos::chooser, Pose::Named and Pose::Capture (std::runtime_error) |
| Python | Tempo.configure, import tempo.wpi and every RobotPy lookup Tempo makes (TempoException); import tempo prints the message |
A version that isn’t the one the build targets is handled like this:
| Robot runs | Result |
|---|---|
| A later 2026 release than the build | Runs |
An earlier 2026 release, such as 2026.1.1 under a 2026.2.1 build | Refused |
A development build, such as 2027.0.0-alpha-7-120-g985dea119 | Checked as the alpha it follows; prints one line saying so |
A local build of the same year, such as 2027.424242.0.0 under a 2027 build | Runs unchecked; prints [Tempo] The robot runs WPILib 2027.424242.0.0, a local development build of WPILib 2027; ... |
| A version string Tempo cannot read | Runs unchecked; prints [Tempo] Cannot read the robot's WPILib version ... |
| The matching version | Runs; prints nothing |
Native targets
| 2026 | 2027 | |
|---|---|---|
| Robot | roboRIO | SystemCore |
| Java resource | linux-armel/libtempo_core.so | linux-aarch64/libtempo_core.so |
Java packages and types
Tempo’s packages (com.tempo, com.tempo.config, com.tempo.wpi) are the
same on both years. Tempo takes and returns the WPILib types of the year
it was built for:
| WPILib 2026 | WPILib 2027 |
|---|---|
edu.wpi.first.* | org.wpilib.* |
edu.wpi.first.wpilibj.Timer | org.wpilib.system.Timer |
edu.wpi.first.wpilibj.DriverStation | org.wpilib.driverstation.DriverStation |
edu.wpi.first.wpilibj2.command.Command | org.wpilib.command2.Command |
edu.wpi.first.math.system.plant.DCMotor | org.wpilib.math.system.DCMotor |
ChassisSpeeds | ChassisVelocities |
SwerveModuleState | SwerveModuleVelocity |
Timer.getFPGATimestamp() | Timer.getTimestamp() |
DriverStation.reportError | org.wpilib.driverstation.DriverStationErrors.reportError |
speeds.vxMetersPerSecond, .vyMetersPerSecond, .omegaRadiansPerSecond | speeds.vx, .vy, .omega |
state.speedMetersPerSecond | state.velocity |
position.distanceMeters | position.distance |
The last three rows are fields of the speeds, module state and module position types. A 2026 sample that reads them needs the 2027 names on 2027.
C++ headers and namespaces
Tempo’s types are under tempo:: on both years. tempo/wpi/WpiCompat.h
picks the year’s headers from the WPILib headers on the include path. If you
build Tempo’s C++ WPILib layer (the tempo/wpi code) from source,
-DTEMPO_WPILIB_YEAR=2027 sets the year explicitly. The 2027 build needs C++23.
| WPILib 2026 | WPILib 2027 |
|---|---|
frc::Pose2d | wpi::math::Pose2d |
frc::ChassisSpeeds | wpi::math::ChassisVelocities |
frc2::CommandPtr | wpi::cmd::CommandPtr |
frc2::Command* | wpi::cmd::Command* |
frc2::Requirements | wpi::cmd::Requirements |
tempo::wpilib::ChassisSpeeds names the velocity type of either year.
Python
One robotpy-tempo release works with RobotPy 2026 and 2027, and Tempo
reads the year from the RobotPy you have installed. It requires
robotpy>=2026,<2028, and that range includes the 2027 alphas.
Tempo’s Python API is the same on both years. The robot code around it changes because RobotPy 2027 renames WPILib’s Python API. Every 2027 alpha exports wpimath as one module. Alpha-7 and alpha-8 also move wpilib and commands2 to snake_case:
| RobotPy 2026 | RobotPy 2027 alpha-6 | RobotPy 2027 alpha-7 and alpha-8 |
|---|---|---|
from wpimath.geometry import Pose2d | from wpimath import Pose2d | from wpimath import Pose2d |
from wpimath.kinematics import ChassisSpeeds | from wpimath import ChassisVelocities | from wpimath import ChassisVelocities |
from wpimath.system.plant import DCMotor | from wpimath import DCMotor | from wpimath import DCMotor |
DCMotor.krakenX60FOC(1) | DCMotor.krakenX60FOC(1) | DCMotor.kraken_x60_foc(1) |
pose.X() | pose.X() | pose.x |
def robotInit(self) | def __init__(self), calling super().__init__() | def __init__(self), calling super().__init__() |
def autonomousInit(self) | def autonomousInit(self) | def autonomous_init(self) |
CommandScheduler.getInstance().run() | CommandScheduler.getInstance().run() | CommandScheduler.get_instance().run() |
drive.setDefaultCommand(...) | drive.setDefaultCommand(...) | drive.set_default_command(...) |
def isFinished(self) in a command | def isFinished(self) | def is_finished(self) |
autos.getSelected() | autos.getSelected() | autos.get_selected() |
SmartDashboard.putData("Auto", autos) | SmartDashboard.putData("Auto", autos) | tunables.publish("Auto", autos) |
On 2027 your velocity method receives a ChassisVelocities, and the poses
Tempo returns are wpimath.Pose2d. Tempo calls a command passed to a hook
or a Setlist step by the method names of the installed RobotPy. On alpha-7
and alpha-8 that means a command defines is_finished and doesn’t need
isFinished.
examples/python/2027/ in the Tempo repository holds the Python templates
written for each 2027 alpha.
Tempo looks up RobotPy’s names when it runs, and the same release is used on
every 2027 alpha. On an alpha other than alpha-6, alpha-7 or alpha-8,
import tempo prints one line saying Tempo wasn’t checked against it.
Tempo still runs. On a RobotPy from another year it prints
[Tempo] This robotpy-tempo runs on RobotPy 2026 and 2027; ... on import.
Tempo.configure and import tempo.wpi raise it as a
TempoException. Robot code in Python uses Commands v2 on both years.
Small behavior differences
- A route given an
Angles.turnFraction(...)heading faces the same way on both years. In Java only theRotation2dit returns differs:turnFraction(0.75).getRadians()is 4.71 on 2026 and -1.57 on 2027 (Rotation targeting). - AdvantageScope’s velocity struct is
ChassisVelocitieson 2027 (AdvantageScope). - WPILib 2027 alpha-8 changed the Kraken X60 and X60 FOC constants in
DCMotor. A drivetrain built from those motors gets slightly different limits on alpha-8 than on alpha-7, alpha-6 or 2026. C++‘stempo::DcMotorpresets read WPILib’sDCMotor, so they change the same way.
Field coordinates
For now, the field origin is always in the blue alliance corner, but is subject to change to the field center, once it does we will update the packs with the correct origin.
[field]
origin = "alwaysBlue" # (0, 0) at the blue alliance corner
# origin = "fieldCenter" # (0, 0) at the geometric field centerIf it fails…
The vendordep was built for a different alpha. Delete it from vendordeps/ and install the one for the GradleRIO version in build.gradle.
Install the vendordep the message names, or move the robot project to the WPILib version the build targets.
An older Tempo.json (version 1.0.0-rc.1-wpilib2027) is still in vendordeps/. Delete it.
The project’s RobotPy isn’t 2026 or 2027. Move the project to RobotPy 2026 or 2027.