@ -139,7 +139,6 @@ void TogglesPanel::updateToggles() {
. arg ( tr ( " New Driving Visualization " ) )
. arg ( tr ( " New Driving Visualization " ) )
. arg ( tr ( " The driving visualization will transition to the road-facing wide-angle camera at low speeds to better show some turns. The Experimental mode logo will also be shown in the top right corner. " ) ) ;
. arg ( tr ( " The driving visualization will transition to the road-facing wide-angle camera at low speeds to better show some turns. The Experimental mode logo will also be shown in the top right corner. " ) ) ;
long_personality_setting - > setEnabled ( false ) ;
const bool is_release = params . getBool ( " IsReleaseBranch " ) ;
const bool is_release = params . getBool ( " IsReleaseBranch " ) ;
auto cp_bytes = params . get ( " CarParamsPersistent " ) ;
auto cp_bytes = params . get ( " CarParamsPersistent " ) ;
if ( ! cp_bytes . empty ( ) ) {
if ( ! cp_bytes . empty ( ) ) {
@ -151,10 +150,7 @@ void TogglesPanel::updateToggles() {
params . remove ( " ExperimentalLongitudinalEnabled " ) ;
params . remove ( " ExperimentalLongitudinalEnabled " ) ;
}
}
op_long_toggle - > setVisible ( CP . getExperimentalLongitudinalAvailable ( ) & & ! is_release ) ;
op_long_toggle - > setVisible ( CP . getExperimentalLongitudinalAvailable ( ) & & ! is_release ) ;
if ( hasLongitudinalControl ( CP ) ) {
const bool op_long = CP . getOpenpilotLongitudinalControl ( ) & & ! CP . getExperimentalLongitudinalAvailable ( ) ;
const bool exp_long_enabled = CP . getExperimentalLongitudinalAvailable ( ) & & params . getBool ( " ExperimentalLongitudinalEnabled " ) ;
if ( op_long | | exp_long_enabled ) {
// normal description and toggle
// normal description and toggle
e2e_toggle - > setEnabled ( true ) ;
e2e_toggle - > setEnabled ( true ) ;
e2e_toggle - > setDescription ( e2e_description ) ;
e2e_toggle - > setDescription ( e2e_description ) ;
@ -162,6 +158,7 @@ void TogglesPanel::updateToggles() {
} else {
} else {
// no long for now
// no long for now
e2e_toggle - > setEnabled ( false ) ;
e2e_toggle - > setEnabled ( false ) ;
long_personality_setting - > setEnabled ( false ) ;
params . remove ( " ExperimentalMode " ) ;
params . remove ( " ExperimentalMode " ) ;
const QString unavailable = tr ( " Experimental mode is currently unavailable on this car since the car's stock ACC is used for longitudinal control. " ) ;
const QString unavailable = tr ( " Experimental mode is currently unavailable on this car since the car's stock ACC is used for longitudinal control. " ) ;