mirror of
https://github.com/dragonpilot/dragonpilot.git
synced 2026-03-03 16:33:53 +08:00
* tici sensord: WIP * add sensor constants * rename files * base class * init sensors * publish something * dont leak memory * try reading from accel * Accel works * add time and sensor source * Update release files * If we want low BW we want 125hz * this should run gyro as well * add filter on gyro * also filter accel data * Add i2c files * cast makes macos unhappy * Same outputs as android sensord Co-authored-by: Tici <robbe@comma.ai> Co-authored-by: Willem Melching <willem.melching@gmail.com>
15 lines
643 B
Python
15 lines
643 B
Python
Import('env', 'arch', 'common', 'cereal', 'messaging')
|
|
if arch == "aarch64":
|
|
env.Program('_sensord', 'sensors_qcom.cc', LIBS=['hardware', common, cereal, messaging, 'capnp', 'zmq', 'kj'])
|
|
lenv = env.Clone()
|
|
lenv['LIBPATH'] += ['/system/vendor/lib64']
|
|
lenv.Program('_gpsd', ['gpsd.cc'], LIBS=['hardware', common, 'diag', 'time_genoff', cereal, messaging, 'capnp', 'zmq', 'kj'])
|
|
else:
|
|
sensors = [
|
|
'sensors/i2c_sensor.cc',
|
|
'sensors/bmx055_accel.cc',
|
|
'sensors/bmx055_gyro.cc',
|
|
'sensors/bmx055_magn.cc',
|
|
]
|
|
env.Program('_sensord', ['sensors_qcom2.cc'] + sensors, LIBS=[common, cereal, messaging, 'capnp', 'zmq', 'kj'])
|