Visuals - Custom Onroad UI - Paths - Acceleration
Show your projected acceleration on the driving path.
This commit is contained in:
parent
cb75a5a8ad
commit
29d392e028
|
@ -282,7 +282,7 @@ void AnnotatedCameraWidget::drawLaneLines(QPainter &painter, const UIState *s) {
|
|||
|
||||
// paint path
|
||||
QLinearGradient bg(0, height(), 0, 0);
|
||||
if (experimentalMode) {
|
||||
if (experimentalMode || scene.acceleration_path) {
|
||||
// The first half of track_vertices are the points for the right side of the path
|
||||
// and the indices match the positions of accel from uiPlan
|
||||
const auto &acceleration = sm["uiPlan"].getUiPlan().getAccel();
|
||||
|
|
|
@ -289,6 +289,8 @@ void ui_update_frogpilot_params(UIState *s) {
|
|||
scene.show_cem_status_bar = scene.conditional_experimental && !params.getBool("HideCEMStatusBar");
|
||||
|
||||
bool custom_onroad_ui = params.getBool("CustomUI");
|
||||
bool custom_paths = custom_onroad_ui && params.getBool("CustomPaths");
|
||||
scene.acceleration_path = custom_paths && params.getBool("AccelerationPath");
|
||||
scene.compass = custom_onroad_ui && params.getBool("Compass");
|
||||
|
||||
scene.disable_smoothing_mtsc = params.getBool("MTSCEnabled") && params.getBool("DisableMTSCSmoothing");
|
||||
|
|
|
@ -121,6 +121,7 @@ typedef struct UIScene {
|
|||
uint64_t started_frame;
|
||||
|
||||
// FrogPilot variables
|
||||
bool acceleration_path;
|
||||
bool always_on_lateral_active;
|
||||
bool compass;
|
||||
bool conditional_experimental;
|
||||
|
|
Loading…
Reference in New Issue