mirror of
https://github.com/firestar5683/StarPilot.git
synced 2026-07-15 06:12:11 +08:00
only check frame age for posenet too
old-commit-hash: c8f3ff8913ce7e18d755ae8015a27af3365029e9
This commit is contained in:
@@ -332,7 +332,7 @@ void posenet_publish(PubMaster &pm, uint32_t vipc_frame_id, uint32_t frame_id,
|
||||
posenetd.setFrameId(vipc_frame_id);
|
||||
|
||||
uint32_t frame_age = (frame_id > vipc_frame_id) ? (frame_id - vipc_frame_id) : 0;
|
||||
event.setValid((frame_age < MAX_FRAME_AGE) && sm_alive_valid);
|
||||
event.setValid(frame_age < MAX_FRAME_AGE);
|
||||
|
||||
pm.send("cameraOdometry", msg);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user