diff --git a/networktables.json b/networktables.json new file mode 100644 index 0000000000..fe51488c70 --- /dev/null +++ b/networktables.json @@ -0,0 +1 @@ +[] diff --git a/photon-lib/src/main/native/cpp/photon/PhotonCamera.cpp b/photon-lib/src/main/native/cpp/photon/PhotonCamera.cpp index 5402f40460..8b5148cf21 100644 --- a/photon-lib/src/main/native/cpp/photon/PhotonCamera.cpp +++ b/photon-lib/src/main/native/cpp/photon/PhotonCamera.cpp @@ -116,17 +116,13 @@ PhotonPipelineResult PhotonCamera::GetLatestResult() { // Create the new result; PhotonPipelineResult result; - fmt::println("Getting queue for cam {}", rawBytesEntry.GetTopic().GetName()); - // Fill the packet with latest data and populate result. const auto changes = rawBytesEntry.ReadQueue(); if (!changes.size()) { - fmt::println("No new changes"); return result; } const nt::Timestamped> value = changes[0]; if (!value.value.size() || value.time == 0) { - fmt::println("empty or time is 0"); return result; } diff --git a/photon-lib/src/main/native/include/photon/simulation/PhotonCameraSim.h b/photon-lib/src/main/native/include/photon/simulation/PhotonCameraSim.h index 02f462420f..845b7362b2 100644 --- a/photon-lib/src/main/native/include/photon/simulation/PhotonCameraSim.h +++ b/photon-lib/src/main/native/include/photon/simulation/PhotonCameraSim.h @@ -382,9 +382,6 @@ class PhotonCameraSim { Packet newPacket{}; newPacket << result; - fmt::println("setting raw bytes for cam {} with {} targets @ {}", - ts.rawBytesEntry.GetTopic().GetName(), - result.GetTargets().size(), result.GetTargets()[0].GetPitch()); ts.rawBytesEntry.Set(newPacket.GetData(), recieveTimestamp); diff --git a/photon-lib/src/test/native/cpp/VisionSystemSimTest.cpp b/photon-lib/src/test/native/cpp/VisionSystemSimTest.cpp index 11dff5079a..615ccba93e 100644 --- a/photon-lib/src/test/native/cpp/VisionSystemSimTest.cpp +++ b/photon-lib/src/test/native/cpp/VisionSystemSimTest.cpp @@ -226,11 +226,8 @@ TEST_P(VisionSystemSimTestWithParamsTest, YawAngles) { visionSysSim.Update(robotPose); const auto result = camera.GetLatestResult(); - fmt::println("Got result at time {} with {} targets", result.GetTimestamp(), - result.GetTargets().size()); - fmt::println("pitch {}", result.GetTargets()[0].GetPitch()); ASSERT_TRUE(result.HasTargets()); - ASSERT_NEAR(GetParam().to(), result.GetBestTarget().GetPitch(), 0.25); + ASSERT_NEAR(GetParam().to(), result.GetBestTarget().GetYaw(), 0.25); } TEST_P(VisionSystemSimTestWithParamsTest, PitchAngles) {