mirror of
https://github.com/MoreTore/openpilot.git
synced 2026-08-05 16:26:14 +08:00
@@ -22,6 +22,10 @@
|
||||
#include "selfdrive/common/swaglog.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 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();
|
||||
|
||||
// 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");
|
||||
return;
|
||||
}
|
||||
|
||||
@@ -1,5 +1,3 @@
|
||||
#include "selfdrive/modeld/models/dmonitoring.h"
|
||||
|
||||
#include <cstring>
|
||||
|
||||
#include "libyuv.h"
|
||||
@@ -9,6 +7,8 @@
|
||||
#include "selfdrive/common/timing.h"
|
||||
#include "selfdrive/hardware/hw.h"
|
||||
|
||||
#include "selfdrive/modeld/models/dmonitoring.h"
|
||||
|
||||
#define MODEL_WIDTH 320
|
||||
#define MODEL_HEIGHT 640
|
||||
#define FULL_W 852 // should get these numbers from camerad
|
||||
|
||||
Reference in New Issue
Block a user