mirror of
https://github.com/firestar5683/StarPilot.git
synced 2026-07-12 21:02:13 +08:00
camerad: SubMaster never updated (#20651)
* fix sm has not been updated * update submaster in processing driver cam thread * move Subbmaster to driver camera thread * cleanup Co-authored-by: Comma Device <device@comma.ai> old-commit-hash: f0a1a6e4d6256d7ec2319288695c5fece51c8f66
This commit is contained in:
@@ -385,6 +385,7 @@ static void driver_cam_auto_exposure(CameraState *c, SubMaster &sm) {
|
||||
|
||||
void common_process_driver_camera(SubMaster *sm, PubMaster *pm, CameraState *c, int cnt) {
|
||||
if (cnt % 3 == 0) {
|
||||
sm->update(0);
|
||||
driver_cam_auto_exposure(c, *sm);
|
||||
}
|
||||
MessageBuilder msg;
|
||||
|
||||
Reference in New Issue
Block a user