File tree Expand file tree Collapse file tree 1 file changed +5
-1
lines changed
wpical/src/main/native/cpp Expand file tree Collapse file tree 1 file changed +5
-1
lines changed Original file line number Diff line number Diff line change @@ -395,7 +395,8 @@ void CombineCalibrations() {
395
395
auto text = fmt::format (" Tag ID {}: {}" , tagId, filePath);
396
396
ImGui::TextUnformatted (text.c_str ());
397
397
} else {
398
- ImGui::Text (" Tag ID %i: <none (DROP HERE)>" , tagId);
398
+ ImGui::Text (" Tag ID %i: <none, using ideal field layout (DROP HERE)>" ,
399
+ tagId);
399
400
}
400
401
if (ImGui::BeginDragDropTarget ()) {
401
402
if (const ImGuiPayload* payload =
@@ -444,6 +445,9 @@ void CombineCalibrations() {
444
445
frc::AprilTag tag{tagId, tagPose.value ()};
445
446
tags.emplace_back (tag);
446
447
}
448
+ } else {
449
+ frc::AprilTag tag{tagId, gIdealFieldLayout .GetTagPose (tagId).value ()};
450
+ tags.emplace_back (tag);
447
451
}
448
452
}
449
453
saveDirSelector =
You can’t perform that action at this time.
0 commit comments