@@ -482,8 +482,9 @@ QVBoxLayout * AutowareStatePanel::makeVelocityLimitGroup()
482
482
483
483
void AutowareStatePanel::onOperationMode (const OperationModeState::ConstSharedPtr msg)
484
484
{
485
- auto updateButtonState = [](CustomSegmentedButtonItem* button, bool is_available,
486
- uint8_t current_mode, uint8_t desired_mode, bool disable) {
485
+ auto updateButtonState = [](
486
+ CustomSegmentedButtonItem * button, bool is_available,
487
+ uint8_t current_mode, uint8_t desired_mode, bool disable) {
487
488
bool is_checked = (current_mode == desired_mode);
488
489
button->setHovered (false );
489
490
@@ -495,10 +496,18 @@ void AutowareStatePanel::onOperationMode(const OperationModeState::ConstSharedPt
495
496
496
497
bool disable_buttons = msg->is_in_transition ;
497
498
498
- updateButtonState (auto_button_ptr_, msg->is_autonomous_mode_available , msg->mode , OperationModeState::AUTONOMOUS, disable_buttons);
499
- updateButtonState (stop_button_ptr_, msg->is_stop_mode_available , msg->mode , OperationModeState::STOP, disable_buttons);
500
- updateButtonState (local_button_ptr_, msg->is_local_mode_available , msg->mode , OperationModeState::LOCAL, disable_buttons);
501
- updateButtonState (remote_button_ptr_, msg->is_remote_mode_available , msg->mode , OperationModeState::REMOTE, disable_buttons);
499
+ updateButtonState (
500
+ auto_button_ptr_, msg->is_autonomous_mode_available , msg->mode , OperationModeState::AUTONOMOUS,
501
+ disable_buttons);
502
+ updateButtonState (
503
+ stop_button_ptr_, msg->is_stop_mode_available , msg->mode , OperationModeState::STOP,
504
+ disable_buttons);
505
+ updateButtonState (
506
+ local_button_ptr_, msg->is_local_mode_available , msg->mode , OperationModeState::LOCAL,
507
+ disable_buttons);
508
+ updateButtonState (
509
+ remote_button_ptr_, msg->is_remote_mode_available , msg->mode , OperationModeState::REMOTE,
510
+ disable_buttons);
502
511
503
512
// toggle switch for control mode
504
513
auto changeToggleSwitchState = [](CustomToggleSwitch * toggle_switch, const bool is_enabled) {
0 commit comments