From adab2f680967fb9e85e399b159ffe180356e7ca1 Mon Sep 17 00:00:00 2001 From: 702roboticsmember <123431864+702roboticsmember@users.noreply.github.com> Date: Wed, 2 Sep 2026 16:32:28 -0700 Subject: [PATCH] getAlliance() moved to DriverStationBackend This was changed in the alpha version. updated to use DriverStationBackend and proper alliance constants --- source/docs/software/basic-programming/alliancecolor.rst | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/source/docs/software/basic-programming/alliancecolor.rst b/source/docs/software/basic-programming/alliancecolor.rst index a5fed5ac77..050986cebd 100644 --- a/source/docs/software/basic-programming/alliancecolor.rst +++ b/source/docs/software/basic-programming/alliancecolor.rst @@ -9,12 +9,12 @@ Note that there are three cases: red, blue, and no color yet. It is important t .. tab-set-code:: ```java - Optional ally = DriverStation.getAlliance(); + Optional ally = DriverStationBackend.getAlliance(); if (ally.isPresent()) { - if (ally.get() == Alliance.Red) { + if (ally.get() == Alliance.RED) { } - if (ally.get() == Alliance.Blue) { + if (ally.get() == Alliance.BLUE) { } }