Skip to content
Tempo on GitHub (opens in a new tab)

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

20262027
ControllerroboRIOSystemCore
Vendordep fileTempo.jsonone per alpha
Java artifactcom.tempo:tempo-java:0.9.0com.tempo:tempo-java:0.9.0-wpilib2027-<alpha>
C++ artifactstempo-cpp, tempo-core at 0.9.0tempo-cpp, tempo-core at 0.9.0-wpilib2027-<alpha>
Vendordep year fieldfrcYear: 2026wpilibYear, matching the GradleRIO version
JDK1725 or newer
Python packagerobotpy-tempothe same robotpy-tempo release
Commandsv2v2; 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 versionVendordep fileArtifact versionwpilibYear
2027.0.0-alpha-6Tempo-wpilib2027-alpha6.json0.9.0-wpilib2027-alpha62027_alpha5
2027.0.0-alpha-7Tempo-wpilib2027-alpha7.json0.9.0-wpilib2027-alpha72027_alpha7
2027.0.0-alpha-8Tempo-wpilib2027-alpha8.json0.9.0-wpilib2027-alpha82027_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:

LanguageCalls that refuse
JavaTempo.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)
PythonTempo.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 runsResult
A later 2026 release than the buildRuns
An earlier 2026 release, such as 2026.1.1 under a 2026.2.1 buildRefused
A development build, such as 2027.0.0-alpha-7-120-g985dea119Checked 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 buildRuns unchecked; prints [Tempo] The robot runs WPILib 2027.424242.0.0, a local development build of WPILib 2027; ...
A version string Tempo cannot readRuns unchecked; prints [Tempo] Cannot read the robot's WPILib version ...
The matching versionRuns; prints nothing

Native targets

20262027
RobotroboRIOSystemCore
Java resourcelinux-armel/libtempo_core.solinux-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 2026WPILib 2027
edu.wpi.first.*org.wpilib.*
edu.wpi.first.wpilibj.Timerorg.wpilib.system.Timer
edu.wpi.first.wpilibj.DriverStationorg.wpilib.driverstation.DriverStation
edu.wpi.first.wpilibj2.command.Commandorg.wpilib.command2.Command
edu.wpi.first.math.system.plant.DCMotororg.wpilib.math.system.DCMotor
ChassisSpeedsChassisVelocities
SwerveModuleStateSwerveModuleVelocity
Timer.getFPGATimestamp()Timer.getTimestamp()
DriverStation.reportErrororg.wpilib.driverstation.DriverStationErrors.reportError
speeds.vxMetersPerSecond, .vyMetersPerSecond, .omegaRadiansPerSecondspeeds.vx, .vy, .omega
state.speedMetersPerSecondstate.velocity
position.distanceMetersposition.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 2026WPILib 2027
frc::Pose2dwpi::math::Pose2d
frc::ChassisSpeedswpi::math::ChassisVelocities
frc2::CommandPtrwpi::cmd::CommandPtr
frc2::Command*wpi::cmd::Command*
frc2::Requirementswpi::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 2026RobotPy 2027 alpha-6RobotPy 2027 alpha-7 and alpha-8
from wpimath.geometry import Pose2dfrom wpimath import Pose2dfrom wpimath import Pose2d
from wpimath.kinematics import ChassisSpeedsfrom wpimath import ChassisVelocitiesfrom wpimath import ChassisVelocities
from wpimath.system.plant import DCMotorfrom wpimath import DCMotorfrom 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 commanddef 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 the Rotation2d it returns differs: turnFraction(0.75).getRadians() is 4.71 on 2026 and -1.57 on 2027 (Rotation targeting).
  • AdvantageScope’s velocity struct is ChassisVelocities on 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++‘s tempo::DcMotor presets read WPILib’s DCMotor, 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.

TOML
[field]
origin = "alwaysBlue"      # (0, 0) at the blue alliance corner
# origin = "fieldCenter"   # (0, 0) at the geometric field center

If it fails…

The build stops on the vendordep's year Above → Vendor Dependency Tempo (WPILib 2027.0.0-alpha-6) has invalid year 2027_alpha5. Expected to be 2027_alpha7.

The vendordep was built for a different alpha. Delete it from vendordeps/ and install the one for the GradleRIO version in build.gradle.

Startup stops with a WPILib version message Above → [Tempo] This Tempo build targets WPILib 2027.0.0-alpha-7; the robot runs WPILib 2027.0.0-alpha-6. ...

Install the vendordep the message names, or move the robot project to the WPILib version the build targets.

Two Tempo JARs load Above → [Tempo] 2 Tempo JARs are on the classpath, and only one of them runs.

An older Tempo.json (version 1.0.0-rc.1-wpilib2027) is still in vendordeps/. Delete it.

import tempo prints a RobotPy version message Above → [Tempo] This robotpy-tempo runs on RobotPy 2026 and 2027; ...

The project’s RobotPy isn’t 2026 or 2027. Move the project to RobotPy 2026 or 2027.

esc

Loading search...