feat(calibration,contract,tracker): T-pose calibration + seqlock fix + articulated-depth wiring (wave 8a; todos 11,20,21 done)
This commit is contained in:
1 parent
b1638944cb
commit
0af22f1783
16 files changed
+733
-49
No files matched your search
@@ -74,6 +74,23 @@ TEST(Contract, PublishCyclesThroughAllSlotsNewestWins) {
|
||||
}
|
||||
}
|
||||
|
||||
TEST(Contract, RelativeSlotGenerationsReadLikePythonProducer) {
|
||||
FrameContract contract{};
|
||||
for (uint32_t i = 1; i <= kFrameSlotCount * 3; ++i) {
|
||||
const uint64_t published = contract.published_sequence + 1;
|
||||
FrameSlot& slot = contract.slots[published % kFrameSlotCount];
|
||||
++slot.sequence;
|
||||
slot.data.frame_number = i;
|
||||
++slot.sequence;
|
||||
contract.published_sequence = published;
|
||||
|
||||
FrameData out{};
|
||||
read_latest_frame(contract, out);
|
||||
EXPECT_EQ(out.frame_number, i);
|
||||
EXPECT_EQ(slot.sequence % 2, 0u);
|
||||
}
|
||||
}
|
||||
|
||||
TEST(Contract, ControlMessageHeaderCarriesContractVersion) {
|
||||
HeartbeatMessage hb{};
|
||||
hb.header.message_type = ControlMessageType::HEARTBEAT;
|
||||
|
||||
Reference in new issue
Block a user