fix qcom and qcom2 builds

old-commit-hash: 9e94fb17cf
commatwo_master
Adeeb Shihadeh 4 years ago
parent e81079461f
commit edd2f1c1a6
  1. 4
      selfdrive/camerad/cameras/camera_qcom2.cc
  2. 2
      selfdrive/locationd/locationd.cc
  3. 4
      selfdrive/modeld/models/dmonitoring.cc

@ -22,6 +22,10 @@
#include "selfdrive/common/swaglog.h" #include "selfdrive/common/swaglog.h"
#include "selfdrive/camerad/cameras/sensor2_i2c.h" #include "selfdrive/camerad/cameras/sensor2_i2c.h"
#define FRAME_WIDTH 1928
#define FRAME_HEIGHT 1208
//#define FRAME_STRIDE 1936 // for 8 bit output
#define FRAME_STRIDE 2416 // for 10 bit output
//#define FRAME_STRIDE 1936 // for 8 bit output //#define FRAME_STRIDE 1936 // for 8 bit output
#define MIPI_SETTLE_CNT 33 // Calculated by camera_freqs.py #define MIPI_SETTLE_CNT 33 // Calculated by camera_freqs.py

@ -197,7 +197,7 @@ void Localizer::handle_sensors(double current_time, const capnp::List<cereal::Se
double sensor_time = 1e-9 * sensor_reading.getTimestamp(); double sensor_time = 1e-9 * sensor_reading.getTimestamp();
// sensor time and log time should be close // sensor time and log time should be close
if (abs(current_time - sensor_time) > 0.1) { if (std::abs(current_time - sensor_time) > 0.1) {
LOGE("Sensor reading ignored, sensor timestamp more than 100ms off from log time"); LOGE("Sensor reading ignored, sensor timestamp more than 100ms off from log time");
return; return;
} }

@ -1,5 +1,3 @@
#include "selfdrive/modeld/models/dmonitoring.h"
#include <cstring> #include <cstring>
#include "libyuv.h" #include "libyuv.h"
@ -9,6 +7,8 @@
#include "selfdrive/common/timing.h" #include "selfdrive/common/timing.h"
#include "selfdrive/hardware/hw.h" #include "selfdrive/hardware/hw.h"
#include "selfdrive/modeld/models/dmonitoring.h"
#define MODEL_WIDTH 320 #define MODEL_WIDTH 320
#define MODEL_HEIGHT 640 #define MODEL_HEIGHT 640
#define FULL_W 852 // should get these numbers from camerad #define FULL_W 852 // should get these numbers from camerad

Loading…
Cancel
Save