mirror of
https://github.com/firestar5683/StarPilot.git
synced 2026-09-14 19:44:05 +08:00
Revert fullframe DM model (#24812)
* Revert "fullframe DM: flip RHD yaw to use matching thresholds" This reverts commit ce7daabc8847d18ba46e5d1879f5a6958d04ccc7. * Revert "fullframe DM model (#24762)" This reverts commit 817be81fb19004f4873881f6b29dcdfffbe7e3a8. * revert cereal old-commit-hash: c646eeee0ac54925db5afc51b95c5d869d6dba68
This commit is contained in:
@@ -12,7 +12,7 @@
|
||||
ExitHandler do_exit;
|
||||
|
||||
void run_model(DMonitoringModelState &model, VisionIpcClient &vipc_client) {
|
||||
PubMaster pm({"driverStateV2"});
|
||||
PubMaster pm({"driverState"});
|
||||
SubMaster sm({"liveCalibration"});
|
||||
float calib[CALIB_LEN] = {0};
|
||||
double last = 0;
|
||||
@@ -31,11 +31,11 @@ void run_model(DMonitoringModelState &model, VisionIpcClient &vipc_client) {
|
||||
}
|
||||
|
||||
double t1 = millis_since_boot();
|
||||
DMonitoringModelResult model_res = dmonitoring_eval_frame(&model, buf->addr, buf->width, buf->height, buf->stride, buf->uv_offset, calib);
|
||||
DMonitoringResult res = dmonitoring_eval_frame(&model, buf->addr, buf->width, buf->height, buf->stride, buf->uv_offset, calib);
|
||||
double t2 = millis_since_boot();
|
||||
|
||||
// send dm packet
|
||||
dmonitoring_publish(pm, extra.frame_id, model_res, (t2 - t1) / 1000.0, model.output);
|
||||
dmonitoring_publish(pm, extra.frame_id, res, (t2 - t1) / 1000.0, model.output);
|
||||
|
||||
//printf("dmonitoring process: %.2fms, from last %.2fms\n", t2 - t1, t1 - last);
|
||||
last = t1;
|
||||
|
||||
Reference in New Issue
Block a user