|
|
|
@ -158,7 +158,7 @@ void ModelRenderer::updatePathGradient(QLinearGradient &bg) { |
|
|
|
|
constexpr float transition_speed = 0.1f; |
|
|
|
|
|
|
|
|
|
// Start transition if throttle state changes
|
|
|
|
|
bool allow_throttle = (*uiState()->sm)["longitudinalPlan"].getLongitudinalPlan().getAllowThrottle(); |
|
|
|
|
bool allow_throttle = (*uiState()->sm)["longitudinalPlan"].getLongitudinalPlan().getAllowThrottle() || !longitudinal_control; |
|
|
|
|
if (allow_throttle != prev_allow_throttle) { |
|
|
|
|
prev_allow_throttle = allow_throttle; |
|
|
|
|
// Invert blend factor for a smooth transition when the state changes mid-animation
|
|
|
|
|