where is rockhopper
This commit is contained in:
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
@@ -1,2 +1,2 @@
|
||||
extern const uint8_t gitversion[19];
|
||||
const uint8_t gitversion[19] = "DEV-277b2255-DEBUG";
|
||||
const uint8_t gitversion[19] = "DEV-58504c5a-DEBUG";
|
||||
|
||||
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
@@ -1 +1 @@
|
||||
DEV-277b2255-DEBUG
|
||||
DEV-58504c5a-DEBUG
|
||||
@@ -72,7 +72,7 @@ class StarPilotSoundsLayout(StarPilotPanel):
|
||||
panel.refresh_visibility()
|
||||
|
||||
class StarPilotVolumeControlLayout(StarPilotPanel):
|
||||
COOLDOWN_INFO = {"title": tr_noop("Switchback Mode Cooldown"), "icon": "toggle_icons/icon_mute.png", "min": 0, "max": 60}
|
||||
COOLDOWN_INFO = {"title": tr_noop("Switchback Mode Cooldown"), "icon": "toggle_icons/icon_mute.png", "min": 0, "max": 30}
|
||||
VOLUME_INFO = {
|
||||
"BelowSteerSpeedVolume": {"title": tr_noop("Min Steer Speed Alert"), "icon": "toggle_icons/icon_mute.png", "min": 0},
|
||||
"DisengageVolume": {"title": tr_noop("Disengage Volume"), "icon": "toggle_icons/icon_mute.png", "min": 0},
|
||||
@@ -117,8 +117,8 @@ class StarPilotVolumeControlLayout(StarPilotPanel):
|
||||
if v == 0:
|
||||
return tr("Off")
|
||||
if v == 1:
|
||||
return tr("1 second")
|
||||
return f"{v} {tr('seconds')}"
|
||||
return tr("1 minute")
|
||||
return f"{v} {tr('minutes')}"
|
||||
|
||||
self.CATEGORIES.append({
|
||||
"title": self.COOLDOWN_INFO["title"],
|
||||
@@ -158,7 +158,7 @@ class StarPilotVolumeControlLayout(StarPilotPanel):
|
||||
|
||||
gui_app.set_modal_overlay(SliderDialog(
|
||||
tr(self.COOLDOWN_INFO["title"]), 0, self.COOLDOWN_INFO["max"], 1, current_v, on_close,
|
||||
unit=" s", labels={0: tr("Off")}, color="#FF0097"
|
||||
unit=" min", labels={0: tr("Off")}, color="#FF0097"
|
||||
))
|
||||
|
||||
@classmethod
|
||||
|
||||
@@ -17,9 +17,10 @@ TRAFFIC_COLOR = rl.Color(201, 34, 49, 255)
|
||||
|
||||
def get_border_color(state: UIState):
|
||||
enabled = state.sm["selfdriveState"].enabled
|
||||
lateral_active = enabled or state.always_on_lateral_active
|
||||
if state.status == UIStatus.OVERRIDE:
|
||||
return OVERRIDE_COLOR
|
||||
if state.switchback_mode_enabled and enabled:
|
||||
if state.switchback_mode_enabled and lateral_active:
|
||||
return SWITCHBACK_COLOR
|
||||
if state.traffic_mode_enabled and enabled:
|
||||
return TRAFFIC_COLOR
|
||||
|
||||
@@ -92,14 +92,14 @@ void ExperimentalButton::showEvent(QShowEvent *event) {
|
||||
void ExperimentalButton::updateBackgroundColor() {
|
||||
if (isDown() || !engageable) {
|
||||
background_color = QColor(0, 0, 0, 166);
|
||||
} else if (starpilot_scene.switchback_mode_enabled) {
|
||||
background_color = bg_colors[STATUS_SWITCHBACK_MODE_ENABLED];
|
||||
} else if (starpilot_scene.always_on_lateral_active) {
|
||||
background_color = bg_colors[STATUS_ALWAYS_ON_LATERAL_ACTIVE];
|
||||
} else if (starpilot_scene.conditional_status == 1) {
|
||||
background_color = bg_colors[STATUS_CEM_DISABLED];
|
||||
} else if (experimental_mode) {
|
||||
background_color = bg_colors[STATUS_EXPERIMENTAL_MODE_ENABLED];
|
||||
} else if (starpilot_scene.switchback_mode_enabled) {
|
||||
background_color = bg_colors[STATUS_SWITCHBACK_MODE_ENABLED];
|
||||
} else if (starpilot_scene.traffic_mode_enabled) {
|
||||
background_color = bg_colors[STATUS_TRAFFIC_MODE_ENABLED];
|
||||
} else {
|
||||
|
||||
Binary file not shown.
+2
-2
@@ -97,10 +97,10 @@ void UIState::updateStatus(StarPilotUIState *fs) {
|
||||
|
||||
if (state == cereal::SelfdriveState::OpenpilotState::PRE_ENABLED || state == cereal::SelfdriveState::OpenpilotState::OVERRIDING) {
|
||||
status = STATUS_OVERRIDE;
|
||||
} else if (starpilot_scene.switchback_mode_enabled && (ss.getEnabled() || starpilot_scene.always_on_lateral_active)) {
|
||||
status = STATUS_SWITCHBACK_MODE_ENABLED;
|
||||
} else if (starpilot_scene.always_on_lateral_active) {
|
||||
status = STATUS_ALWAYS_ON_LATERAL_ACTIVE;
|
||||
} else if (starpilot_scene.switchback_mode_enabled && ss.getEnabled()) {
|
||||
status = STATUS_SWITCHBACK_MODE_ENABLED;
|
||||
} else if (starpilot_scene.traffic_mode_enabled && ss.getEnabled()) {
|
||||
status = STATUS_TRAFFIC_MODE_ENABLED;
|
||||
} else {
|
||||
|
||||
@@ -548,7 +548,7 @@ class StarPilotVariables:
|
||||
|
||||
toggle.alert_volume_controller = self.get_value("AlertVolumeControl")
|
||||
toggle.below_steer_speed_volume = self.get_value("BelowSteerSpeedVolume", cast=float, condition=toggle.alert_volume_controller)
|
||||
toggle.switchback_mode_cooldown = self.get_value("SwitchbackModeCooldown", cast=float, min=0, max=60)
|
||||
toggle.switchback_mode_cooldown = self.get_value("SwitchbackModeCooldown", cast=float, conversion=60, min=0, max=1800)
|
||||
toggle.disengage_volume = self.get_value("DisengageVolume", cast=float, condition=toggle.alert_volume_controller)
|
||||
toggle.engage_volume = self.get_value("EngageVolume", cast=float, condition=toggle.alert_volume_controller)
|
||||
toggle.prompt_volume = self.get_value("PromptVolume", cast=float, condition=toggle.alert_volume_controller)
|
||||
|
||||
@@ -202,7 +202,7 @@ function formatSliderValue(val, stepStr, precisionInt, key) {
|
||||
|
||||
if (key === "SwitchbackModeCooldown") {
|
||||
if (v === 0) return "Off"
|
||||
return v === 1 ? "1 sec" : `${v} sec`
|
||||
return v === 1 ? "1 min" : `${v} min`
|
||||
}
|
||||
|
||||
const volumeKeys = [
|
||||
|
||||
@@ -1534,7 +1534,7 @@
|
||||
"data_type": "int",
|
||||
"ui_type": "numeric",
|
||||
"min": 0.0,
|
||||
"max": 60.0,
|
||||
"max": 30.0,
|
||||
"step": 1.0,
|
||||
"parent_key": "AlertVolumeControl"
|
||||
},
|
||||
|
||||
@@ -52,10 +52,10 @@ StarPilotSoundsPanel::StarPilotSoundsPanel(StarPilotSettingsWindow *parent, bool
|
||||
soundsToggle = alertVolumeControlToggle;
|
||||
} else if (alertCooldownKeys.contains(param)) {
|
||||
std::map<float, QString> cooldownLabels;
|
||||
for (int i = 0; i <= 60; ++i) {
|
||||
cooldownLabels[i] = i == 0 ? tr("Off") : i == 1 ? tr("1 second") : QString::number(i) + tr(" seconds");
|
||||
for (int i = 0; i <= 30; ++i) {
|
||||
cooldownLabels[i] = i == 0 ? tr("Off") : i == 1 ? tr("1 minute") : QString::number(i) + tr(" minutes");
|
||||
}
|
||||
soundsToggle = new StarPilotParamValueControl(param, title, desc, icon, 0, 60, QString(), cooldownLabels, 1);
|
||||
soundsToggle = new StarPilotParamValueControl(param, title, desc, icon, 0, 30, QString(), cooldownLabels, 1);
|
||||
} else if (alertVolumeControlKeys.contains(param)) {
|
||||
std::map<float, QString> volumeLabels;
|
||||
for (int i = 0; i <= 101; ++i) {
|
||||
|
||||
@@ -738,14 +738,14 @@ void StarPilotAnnotatedCameraWidget::paintPathEdges(QPainter &p, int height) {
|
||||
gradient.setColorAt(1.0f, QColor(baseColor.red(), baseColor.green(), baseColor.blue(), 255.0f * 0.0f));
|
||||
};
|
||||
|
||||
if (starpilot_scene.always_on_lateral_active) {
|
||||
if (starpilot_scene.switchback_mode_enabled) {
|
||||
setPathEdgeColors(bg_colors[STATUS_SWITCHBACK_MODE_ENABLED]);
|
||||
} else if (starpilot_scene.always_on_lateral_active) {
|
||||
setPathEdgeColors(bg_colors[STATUS_ALWAYS_ON_LATERAL_ACTIVE]);
|
||||
} else if (starpilot_scene.conditional_status == 1) {
|
||||
setPathEdgeColors(bg_colors[STATUS_CEM_DISABLED]);
|
||||
} else if (experimentalMode) {
|
||||
setPathEdgeColors(bg_colors[STATUS_EXPERIMENTAL_MODE_ENABLED]);
|
||||
} else if (starpilot_scene.switchback_mode_enabled) {
|
||||
setPathEdgeColors(bg_colors[STATUS_SWITCHBACK_MODE_ENABLED]);
|
||||
} else if (starpilot_scene.traffic_mode_enabled) {
|
||||
setPathEdgeColors(bg_colors[STATUS_TRAFFIC_MODE_ENABLED]);
|
||||
} else if (starpilot_toggles.value("color_scheme").toString() != "stock") {
|
||||
|
||||
Reference in New Issue
Block a user