forked from commaai/openpilot
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
convert locationd to c++ (commaai#20622)
* live_kf to c++ * first locationd code * Running in process_replay * locationd handle cam_odo and live_calib * log event handlers * working message receiving * compiling message sending * correctly sending some messages * correct receiving and sending * update ref_commit with some all_alive_and_valid being false, minor fixes * fix std abs * linking on device fix * fix cpu usage test * generate kf constants and defines * fix replay test * replay without acks, cleanup * operate on bytearray messages * cleanup * send msg fix * small sleep, less flaky test * remove python locationd * review feedback * bump rednose
- Loading branch information
Showing
17 changed files
with
735 additions
and
478 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Submodule rednose_repo
updated
7 files
+1 −1 | README.md | |
+6 −6 | SConstruct | |
+8 −5 | rednose/SConscript | |
+3 −0 | rednose/helpers/common_ekf.h | |
+5 −0 | rednose/helpers/ekf_sym.cc | |
+3 −1 | rednose/helpers/ekf_sym.h | |
+9 −1 | rednose/helpers/ekf_sym.py |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,5 @@ | ||
ubloxd | ||
ubloxd_test | ||
params_learner | ||
paramsd | ||
paramsd | ||
locationd |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,12 +1,18 @@ | ||
Import('env', 'common', 'cereal', 'messaging') | ||
Import('env', 'common', 'cereal', 'messaging', 'libkf', 'transformations') | ||
|
||
loc_libs = [cereal, messaging, 'zmq', common, 'capnp', 'kj', 'kaitai', 'pthread'] | ||
|
||
|
||
if GetOption('kaitai'): | ||
generated = Dir('generated').srcnode().abspath | ||
cmd = f"kaitai-struct-compiler --target cpp_stl --outdir {generated} $SOURCES" | ||
env.Command(['generated/ubx.cpp', 'generated/ubx.h'], 'ubx.ksy', cmd) | ||
env.Command(['generated/gps.cpp', 'generated/gps.h'], 'gps.ksy', cmd) | ||
|
||
env.Program("ubloxd", ["ubloxd.cc", "ublox_msg.cc", "generated/ubx.cpp", "generated/gps.cpp"], LIBS=loc_libs) | ||
|
||
ekf_sym_cc = env.Object("#rednose/helpers/ekf_sym.cc") | ||
lenv = env.Clone() | ||
lenv["_LIBFLAGS"] += f' {libkf[0].get_labspath()}' | ||
locationd = lenv.Program("locationd", ["locationd.cc", "models/live_kf.cc", ekf_sym_cc], | ||
LIBS=loc_libs + transformations) | ||
lenv.Depends(locationd, libkf) |
Oops, something went wrong.