Skip to content

Commit

Permalink
more CPP wip
Browse files Browse the repository at this point in the history
  • Loading branch information
gerth2 committed Dec 29, 2023
1 parent 82a0f3d commit e3836ed
Showing 1 changed file with 19 additions and 19 deletions.
38 changes: 19 additions & 19 deletions photon-lib/src/main/native/cpp/photon/PhotonCamera.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -200,27 +200,27 @@ void PhotonCamera::VerifyVersion() {
cameraNameOutString);
}
} else if (!VersionMatches(versionString)) {
std::string bfw = "";
bfw += ">>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>\n";
bfw += ">>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>\n";
bfw += ">>> ____ _________ ____ ________ ___________ __ \n";
bfw += ">>> / __ \\/ ____/ | / __ \\ /_ __/ / / / _/ ___/ / /\n";
bfw += ">>> / /_/ / __/ / /| | / / / / / / / /_/ // / \\__ \\ / / \n";
bfw += ">>> / _, _/ /___/ ___ |/ /_/ / / / / __ // / ___/ / /_/ \n";
bfw += ">>>/_/ |_/_____/_/ |_/_____/ /_/ /_/ /_/___//____/ (_) \n";
bfw += ">>> \n";
bfw += ">>> You are running an incompatible version \n";
bfw += ">>> of PhotonVision on your coprocessor! \n";
bfw += ">>> \n";
bfw += ">>> This is neither tested nor supported. \n";
bfw += ">>> You MUST update either PhotonVision, PhotonLib, or both. \n";
bfw += ">>> \n";
bfw += ">>> Your code will now crash. We hope your day gets better. \n";
bfw += ">>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>\n";
bfw += ">>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>\n";

FRC_ReportError(frc::warn::Warning, "\n\n\n\n");
FRC_ReportError(frc::warn::Warning, bfw);
FRC_ReportError(frc::warn::Warning,
">>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>\n" +
">>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>\n" +
">>> ____ _________ ____ ________ ___________ __ \n" +
">>> / __ \\/ ____/ | / __ \\ /_ __/ / / / _/ ___/ / / \n" +
">>> / /_/ / __/ / /| | / / / / / / / /_/ // / \\__ \\ / / \n" +
">>> / _, _/ /___/ ___ |/ /_/ / / / / __ // / ___/ / /_/ \n" +
">>>/_/ |_/_____/_/ |_/_____/ /_/ /_/ /_/___//____/ (_) \n" +
">>> \n" +
">>> You are running an incompatible version \n" +
">>> of PhotonVision on your coprocessor! \n" +
">>> \n" +
">>> This is neither tested nor supported. \n" +
">>> You MUST update either PhotonVision, PhotonLib, or both. \n" +
">>> \n" +
">>> Your code will now crash. We hope your day gets better. \n" +
">>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>\n" +
">>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>\n"
);
FRC_ReportError(frc::warn::Warning, "\n\n");
FRC_ReportError(frc::err::Error,
"Photon version {} does not match coprocessor version {}!",
Expand Down

0 comments on commit e3836ed

Please sign in to comment.