feat: warn at boot about tape keys ignored while the tape is off

This commit is contained in:
2026-10-30 14:21:38 +07:00
parent b00d320094
commit 775c16820b
5 changed files with 36 additions and 0 deletions

View File

@@ -508,6 +508,15 @@ TEST(TrolleyDetectionAction, RefusesAnUnknownProfile)
EXPECT_FALSE(h->start(makeAction("DetectTrolley", "khong_co_profile_nay"), robot::Time(10.0)));
}
TEST(TrolleyDetectionAction, LoadsYamlProfileWithTapeOffAndTunedKeys)
{
Rig rig;
ASSERT_TRUE(rig.loaded);
ActionHandler* handler = rig.registry.find("DetectTrolley");
ASSERT_NE(handler, nullptr);
EXPECT_TRUE(handler->start(makeAction("DetectTrolley", "tci_trolley_tape_off"), robot::Time(10.0)));
}
TEST(TrolleyDetectionAction, LoadsPlateauFromYamlAndRejectsInvalidValue)
{
Rig rig;