mirror of
https://github.com/MoreTore/openpilot.git
synced 2026-08-05 00:05:59 +08:00
@@ -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