forked from commaai/openpilot
-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Adjustable Follow Distance w/HUD (#12)
* TR * TR * TR * TR * TR * TR * TR * TR * remove readdistancelines - causes boot error * copying cereal * arne's cereal * HUD distance lines display * capnpp add * revert * revert * Set ACC HUD to KPH * Test - set HUD_ACC distance line to 2 * revert cruise_kph LKAS error * TR * TR * TR * TR * TR * TR * TR * TR * remove readdistancelines - causes boot error * copying cereal * HUD distance lines display * capnpp add * revert * revert * Set ACC HUD to KPH * Test - set HUD_ACC distance line to 2 * revert cruise_kph LKAS error * Remove custom btn var line could be crashing the code when button pressed * HUD distance lines * HUD distance lines * passing CS.CP.readdistancelines * Hardcode hud object dist_lines var * Initializes CS.readdistancelines before passing to hud obj * use integer read_distance_lines instead * Add HUD_DISTANCE_3 for horizontal HUD bars on dash * Default to 2 bars follow distance (1.8s)
- Loading branch information
kegman
committed
Dec 13, 2018
1 parent
936f765
commit b429656
Showing
18 changed files
with
184 additions
and
50 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
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 |
---|---|---|
@@ -0,0 +1,64 @@ | ||
using Cxx = import "./include/c++.capnp"; | ||
$Cxx.namespace("cereal"); | ||
|
||
using Java = import "./include/java.capnp"; | ||
$Java.package("ai.comma.openpilot.cereal"); | ||
$Java.outerClassname("Ui"); | ||
|
||
using Car = import "car.capnp"; | ||
|
||
@0xce6ca45dddcd5317; | ||
|
||
struct UIButtonInfo { | ||
# button ID 0..5 | ||
btnId @0 :Int8; | ||
# internal button name | ||
btnName @1 :Text; | ||
# display label for button (3 chars) | ||
btnLabel @2 :Text; | ||
# buttons status: 0 = DISABLED, 1 = AVAILABLE, 2 = ENABLED, 3 = WARNING, 9 = NOT AVAILABLE | ||
btnStatus @3 :Int16; | ||
# small font label shows below the main label, max 7 chars | ||
btnLabel2 @4 :Text; | ||
} | ||
|
||
struct UIButtonStatus { | ||
# button ID 0..5 | ||
btnId @0 :Int8; | ||
# buttons status: 0 = DISABLED, 1 = AVAILABLE, 2 = ENABLED, 3 = WARNING, 9 = NOT AVAILABLE | ||
btnStatus @1 :Int16; | ||
} | ||
|
||
struct UICustomAlert { | ||
caStatus @0 :Int8; | ||
caText @1 :Text; | ||
} | ||
|
||
struct UISetCar { | ||
icCarFolder @0 :Text; | ||
icCarName @1 :Text; | ||
} | ||
|
||
struct UIPlaySound { | ||
sndSound @0 :Int8; | ||
} | ||
|
||
struct UIUpdate { | ||
uiDoUpdate @0 :Int8; | ||
uiStatus @1 :Int8; | ||
uiCanDisplayMessage @2 :Int8; | ||
} | ||
|
||
#struct UIEvent { | ||
# # in nanoseconds? | ||
# logMonoTime @0 :UInt64; | ||
# | ||
# union { | ||
# uiButtonInfo @1 :UIButtonInfo; | ||
# uiCustomAlert @2 :UICustomAlert; | ||
# uiSetCar @3 :UISetCar; | ||
# uiButtonStatus @4 :UIButtonStatus; | ||
# uiUpdate @5 :UIUpdate; | ||
# uiPlaySound @6 :UIPlaySound; | ||
# } | ||
#} |
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
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
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 |
---|---|---|
@@ -0,0 +1,2 @@ | ||
#!/usr/bin/env bash | ||
sed -i -e 's/1\.2345678[^)]*)/TR)/g' -e 's/out)/out, double TR)/g' -e 's/Objective( )/Objective(double TR)/g' -e 's/ValueOut )/ValueOut, TR )/g' -e 's/ionStep( )/ionStep(double TR)/g' -e 's/Objective(double TR);/Objective(TR);/g' mpc_export/acado_solver.c |
Oops, something went wrong.