Skip to content

Commit 6f40f0d

Browse files
sensord: move to system/ (#27531)
* sensord: move to system/ * add gitignore to releaes files
1 parent ce900f3 commit 6f40f0d

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

49 files changed

+47
-48
lines changed

.gitignore

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -46,9 +46,6 @@ selfdrive/mapd/default_speeds_by_region.json
4646
system/proclogd/proclogd
4747
selfdrive/ui/_ui
4848
selfdrive/test/longitudinal_maneuvers/out
49-
selfdrive/visiond/visiond
50-
selfdrive/sensord/_gpsd
51-
selfdrive/sensord/_sensord
5249
system/camerad/camerad
5350
system/camerad/test/ae_gray_test
5451
selfdrive/modeld/_modeld

Jenkinsfile

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -159,7 +159,7 @@ pipeline {
159159
["test power draw", "python system/hardware/tici/test_power_draw.py"],
160160
["test loggerd", "python selfdrive/loggerd/tests/test_loggerd.py"],
161161
["test encoder", "LD_LIBRARY_PATH=/usr/local/lib python selfdrive/loggerd/tests/test_encoder.py"],
162-
["test pigeond", "python selfdrive/sensord/tests/test_pigeond.py"],
162+
["test pigeond", "python system/sensord/tests/test_pigeond.py"],
163163
["test manager", "python selfdrive/manager/test/test_manager.py"],
164164
["test pandad", "python selfdrive/boardd/tests/test_pandad.py"],
165165
])
@@ -193,11 +193,11 @@ pipeline {
193193
steps {
194194
phone_steps("tici-lsmc", [
195195
["build", "cd selfdrive/manager && ./build.py"],
196-
["test sensord", "cd selfdrive/sensord/tests && python -m unittest test_sensord.py"],
196+
["test sensord", "cd system/sensord/tests && python -m unittest test_sensord.py"],
197197
])
198198
phone_steps("tici-bmx-lsm", [
199199
["build", "cd selfdrive/manager && ./build.py"],
200-
["test sensord", "cd selfdrive/sensord/tests && python -m unittest test_sensord.py"],
200+
["test sensord", "cd system/sensord/tests && python -m unittest test_sensord.py"],
201201
])
202202
}
203203
}

SConstruct

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -427,7 +427,7 @@ SConscript(['selfdrive/boardd/SConscript'])
427427
SConscript(['selfdrive/loggerd/SConscript'])
428428

429429
SConscript(['selfdrive/locationd/SConscript'])
430-
SConscript(['selfdrive/sensord/SConscript'])
430+
SConscript(['system/sensord/SConscript'])
431431
SConscript(['selfdrive/ui/SConscript'])
432432
SConscript(['selfdrive/navd/SConscript'])
433433

docs/c_docs.rst

Lines changed: 1 addition & 1 deletion

release/files_common

Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -276,12 +276,13 @@ selfdrive/loggerd/uploader.py
276276
selfdrive/loggerd/deleter.py
277277
selfdrive/loggerd/xattr_cache.py
278278

279-
selfdrive/sensord/SConscript
280-
selfdrive/sensord/sensors_qcom2.cc
281-
selfdrive/sensord/sensors/*.cc
282-
selfdrive/sensord/sensors/*.h
283-
selfdrive/sensord/sensord
284-
selfdrive/sensord/pigeond.py
279+
system/sensord/.gitignore
280+
system/sensord/SConscript
281+
system/sensord/sensors_qcom2.cc
282+
system/sensord/sensors/*.cc
283+
system/sensord/sensors/*.h
284+
system/sensord/sensord
285+
system/sensord/pigeond.py
285286

286287
selfdrive/thermald/thermald.py
287288
selfdrive/thermald/power_monitoring.py

release/files_tici

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ system/camerad/cameras/camera_util.cc
1313
system/camerad/cameras/camera_util.h
1414
system/camerad/cameras/real_debayer.cl
1515

16-
selfdrive/sensord/rawgps/*
16+
system/sensord/rawgps/*
1717

1818
selfdrive/ui/qt/spinner_larch64
1919
selfdrive/ui/qt/text_larch64

selfdrive/locationd/locationd.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414
#include "common/timing.h"
1515
#include "common/util.h"
1616

17-
#include "selfdrive/sensord/sensors/constants.h"
17+
#include "system/sensord/sensors/constants.h"
1818
#define VISION_DECIMATION 2
1919
#define SENSOR_DECIMATION 10
2020
#include "selfdrive/locationd/models/live_kf.h"

selfdrive/manager/process_config.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ def ublox(started, params, CP: car.CarParams) -> bool:
3939
NativeProcess("modeld", "selfdrive/modeld", ["./modeld"]),
4040
NativeProcess("mapsd", "selfdrive/navd", ["./map_renderer"], enabled=False),
4141
NativeProcess("navmodeld", "selfdrive/modeld", ["./navmodeld"], enabled=False),
42-
NativeProcess("sensord", "selfdrive/sensord", ["./sensord"], enabled=not PC),
42+
NativeProcess("sensord", "system/sensord", ["./sensord"], enabled=not PC),
4343
NativeProcess("ui", "selfdrive/ui", ["./ui"], offroad=True, watchdog_max_dt=(5 if not PC else None)),
4444
NativeProcess("soundd", "selfdrive/ui/soundd", ["./soundd"], offroad=True),
4545
NativeProcess("locationd", "selfdrive/locationd", ["./locationd"]),
@@ -50,12 +50,12 @@ def ublox(started, params, CP: car.CarParams) -> bool:
5050
PythonProcess("deleter", "selfdrive.loggerd.deleter", offroad=True),
5151
PythonProcess("dmonitoringd", "selfdrive.monitoring.dmonitoringd", enabled=(not PC or WEBCAM), callback=driverview),
5252
PythonProcess("laikad", "selfdrive.locationd.laikad"),
53-
PythonProcess("rawgpsd", "selfdrive.sensord.rawgps.rawgpsd", enabled=TICI),
53+
PythonProcess("rawgpsd", "system.sensord.rawgps.rawgpsd", enabled=TICI),
5454
PythonProcess("navd", "selfdrive.navd.navd"),
5555
PythonProcess("pandad", "selfdrive.boardd.pandad", offroad=True),
5656
PythonProcess("paramsd", "selfdrive.locationd.paramsd"),
5757
NativeProcess("ubloxd", "selfdrive/locationd", ["./ubloxd"], enabled=TICI, onroad=False, callback=ublox),
58-
PythonProcess("pigeond", "selfdrive.sensord.pigeond", enabled=TICI, onroad=False, callback=ublox),
58+
PythonProcess("pigeond", "system.sensord.pigeond", enabled=TICI, onroad=False, callback=ublox),
5959
PythonProcess("plannerd", "selfdrive.controls.plannerd"),
6060
PythonProcess("radard", "selfdrive.controls.radard"),
6161
PythonProcess("thermald", "selfdrive.thermald.thermald", offroad=True),

system/sensord/.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
_sensord
File renamed without changes.
File renamed without changes.
File renamed without changes.

selfdrive/sensord/rawgps/rawgpsd.py renamed to system/sensord/rawgps/rawgpsd.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,8 +15,8 @@
1515
from laika.gps_time import GPSTime
1616
from system.hardware.tici.pins import GPIO
1717
from system.swaglog import cloudlog
18-
from selfdrive.sensord.rawgps.modemdiag import ModemDiag, DIAG_LOG_F, setup_logs, send_recv
19-
from selfdrive.sensord.rawgps.structs import (dict_unpacker, position_report, relist,
18+
from system.sensord.rawgps.modemdiag import ModemDiag, DIAG_LOG_F, setup_logs, send_recv
19+
from system.sensord.rawgps.structs import (dict_unpacker, position_report, relist,
2020
gps_measurement_report, gps_measurement_report_sv,
2121
glonass_measurement_report, glonass_measurement_report_sv,
2222
oemdre_measurement_report, oemdre_measurement_report_sv, oemdre_svpoly_report,
File renamed without changes.

selfdrive/sensord/sensors/bmx055_accel.h renamed to system/sensord/sensors/bmx055_accel.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
#pragma once
22

3-
#include "selfdrive/sensord/sensors/i2c_sensor.h"
3+
#include "system/sensord/sensors/i2c_sensor.h"
44

55
// Address of the chip on the bus
66
#define BMX055_ACCEL_I2C_ADDR 0x18

selfdrive/sensord/sensors/bmx055_gyro.h renamed to system/sensord/sensors/bmx055_gyro.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
#pragma once
22

3-
#include "selfdrive/sensord/sensors/i2c_sensor.h"
3+
#include "system/sensord/sensors/i2c_sensor.h"
44

55
// Address of the chip on the bus
66
#define BMX055_GYRO_I2C_ADDR 0x68

selfdrive/sensord/sensors/bmx055_magn.h renamed to system/sensord/sensors/bmx055_magn.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
#pragma once
22
#include <tuple>
33

4-
#include "selfdrive/sensord/sensors/i2c_sensor.h"
4+
#include "system/sensord/sensors/i2c_sensor.h"
55

66
// Address of the chip on the bus
77
#define BMX055_MAGN_I2C_ADDR 0x10

selfdrive/sensord/sensors/bmx055_temp.cc renamed to system/sensord/sensors/bmx055_temp.cc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
#include <cassert>
44

5-
#include "selfdrive/sensord/sensors/bmx055_accel.h"
5+
#include "system/sensord/sensors/bmx055_accel.h"
66
#include "common/swaglog.h"
77
#include "common/timing.h"
88

selfdrive/sensord/sensors/bmx055_temp.h renamed to system/sensord/sensors/bmx055_temp.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
#pragma once
22

3-
#include "selfdrive/sensord/sensors/bmx055_accel.h"
4-
#include "selfdrive/sensord/sensors/i2c_sensor.h"
3+
#include "system/sensord/sensors/bmx055_accel.h"
4+
#include "system/sensord/sensors/i2c_sensor.h"
55

66
class BMX055_Temp : public I2CSensor {
77
uint8_t get_device_address() {return BMX055_ACCEL_I2C_ADDR;}

selfdrive/sensord/sensors/file_sensor.h renamed to system/sensord/sensors/file_sensor.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
#include <string>
55

66
#include "cereal/gen/cpp/log.capnp.h"
7-
#include "selfdrive/sensord/sensors/sensor.h"
7+
#include "system/sensord/sensors/sensor.h"
88

99
class FileSensor : public Sensor {
1010
protected:

selfdrive/sensord/sensors/i2c_sensor.h renamed to system/sensord/sensors/i2c_sensor.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,8 +8,8 @@
88
#include "common/gpio.h"
99

1010
#include "common/swaglog.h"
11-
#include "selfdrive/sensord/sensors/constants.h"
12-
#include "selfdrive/sensord/sensors/sensor.h"
11+
#include "system/sensord/sensors/constants.h"
12+
#include "system/sensord/sensors/sensor.h"
1313

1414
int16_t read_12_bit(uint8_t lsb, uint8_t msb);
1515
int16_t read_16_bit(uint8_t lsb, uint8_t msb);

selfdrive/sensord/sensors/light_sensor.cc renamed to system/sensord/sensors/light_sensor.cc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
#include <string>
44

55
#include "common/timing.h"
6-
#include "selfdrive/sensord/sensors/constants.h"
6+
#include "system/sensord/sensors/constants.h"
77

88
LightSensor::LightSensor(std::string filename) : FileSensor(filename) {}
99

selfdrive/sensord/sensors/lsm6ds3_accel.h renamed to system/sensord/sensors/lsm6ds3_accel.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
#pragma once
22

3-
#include "selfdrive/sensord/sensors/i2c_sensor.h"
3+
#include "system/sensord/sensors/i2c_sensor.h"
44

55
// Address of the chip on the bus
66
#define LSM6DS3_ACCEL_I2C_ADDR 0x6A

selfdrive/sensord/sensors/lsm6ds3_gyro.h renamed to system/sensord/sensors/lsm6ds3_gyro.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
#pragma once
22

3-
#include "selfdrive/sensord/sensors/i2c_sensor.h"
3+
#include "system/sensord/sensors/i2c_sensor.h"
44

55
// Address of the chip on the bus
66
#define LSM6DS3_GYRO_I2C_ADDR 0x6A

selfdrive/sensord/sensors/lsm6ds3_temp.h renamed to system/sensord/sensors/lsm6ds3_temp.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
#pragma once
22

3-
#include "selfdrive/sensord/sensors/i2c_sensor.h"
3+
#include "system/sensord/sensors/i2c_sensor.h"
44

55
// Address of the chip on the bus
66
#define LSM6DS3_TEMP_I2C_ADDR 0x6A

selfdrive/sensord/sensors/mmc5603nj_magn.h renamed to system/sensord/sensors/mmc5603nj_magn.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
#pragma once
22

3-
#include "selfdrive/sensord/sensors/i2c_sensor.h"
3+
#include "system/sensord/sensors/i2c_sensor.h"
44

55
// Address of the chip on the bus
66
#define MMC5603NJ_I2C_ADDR 0x30
File renamed without changes.

selfdrive/sensord/sensors_qcom2.cc renamed to system/sensord/sensors_qcom2.cc

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -12,17 +12,17 @@
1212
#include "common/swaglog.h"
1313
#include "common/timing.h"
1414
#include "common/util.h"
15-
#include "selfdrive/sensord/sensors/bmx055_accel.h"
16-
#include "selfdrive/sensord/sensors/bmx055_gyro.h"
17-
#include "selfdrive/sensord/sensors/bmx055_magn.h"
18-
#include "selfdrive/sensord/sensors/bmx055_temp.h"
19-
#include "selfdrive/sensord/sensors/constants.h"
20-
#include "selfdrive/sensord/sensors/light_sensor.h"
21-
#include "selfdrive/sensord/sensors/lsm6ds3_accel.h"
22-
#include "selfdrive/sensord/sensors/lsm6ds3_gyro.h"
23-
#include "selfdrive/sensord/sensors/lsm6ds3_temp.h"
24-
#include "selfdrive/sensord/sensors/mmc5603nj_magn.h"
25-
#include "selfdrive/sensord/sensors/sensor.h"
15+
#include "system/sensord/sensors/bmx055_accel.h"
16+
#include "system/sensord/sensors/bmx055_gyro.h"
17+
#include "system/sensord/sensors/bmx055_magn.h"
18+
#include "system/sensord/sensors/bmx055_temp.h"
19+
#include "system/sensord/sensors/constants.h"
20+
#include "system/sensord/sensors/light_sensor.h"
21+
#include "system/sensord/sensors/lsm6ds3_accel.h"
22+
#include "system/sensord/sensors/lsm6ds3_gyro.h"
23+
#include "system/sensord/sensors/lsm6ds3_temp.h"
24+
#include "system/sensord/sensors/mmc5603nj_magn.h"
25+
#include "system/sensord/sensors/sensor.h"
2626

2727
#define I2C_BUS_IMU 1
2828

tools/gpstest/test_gps.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55

66
from common.params import Params
77
import cereal.messaging as messaging
8-
import selfdrive.sensord.pigeond as pd
8+
import system.sensord.pigeond as pd
99
from system.hardware import TICI
1010
from selfdrive.test.helpers import with_processes
1111

tools/gpstest/test_laikad.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
import unittest
55

66
import cereal.messaging as messaging
7-
import selfdrive.sensord.pigeond as pd
7+
import system.sensord.pigeond as pd
88

99
from common.params import Params
1010
from system.hardware import TICI

0 commit comments

Comments
 (0)