A few more updates to handle pi/orin naming
Change-Id: I82006584955fe291e8fea43c19b1b39997cec1f2
Signed-off-by: Jim Ostrowski <yimmy13@gmail.com>
diff --git a/frc971/vision/calibration_accumulator.cc b/frc971/vision/calibration_accumulator.cc
index 2c0e603..9c6222b 100644
--- a/frc971/vision/calibration_accumulator.cc
+++ b/frc971/vision/calibration_accumulator.cc
@@ -143,7 +143,7 @@
Calibration::Calibration(
aos::SimulatedEventLoopFactory *event_loop_factory,
aos::EventLoop *image_event_loop, aos::EventLoop *imu_event_loop,
- std::string_view pi,
+ std::string_view hostname,
const calibration::CameraCalibration *intrinsics_calibration,
TargetType target_type, std::string_view image_channel,
CalibrationData *data)
@@ -166,10 +166,10 @@
// TODO: Need to make this work for pi or orin
image_callback_(
image_event_loop_,
- absl::StrCat(
- "/pi",
- std::to_string(aos::network::ParsePiOrOrinNumber(pi).value()),
- image_channel),
+ absl::StrCat("/", aos::network::ParsePiOrOrin(hostname).value(),
+ std::to_string(
+ aos::network::ParsePiOrOrinNumber(hostname).value()),
+ image_channel),
[this](cv::Mat rgb_image, const monotonic_clock::time_point eof) {
charuco_extractor_.HandleImage(rgb_image, eof);
}),