Skip to content

Commit 933e2a0

Browse files
style(pre-commit): autofix
1 parent b934f08 commit 933e2a0

File tree

1 file changed

+15
-6
lines changed

1 file changed

+15
-6
lines changed

common/tier4_state_rviz_plugin/src/autoware_state_panel.cpp

+15-6
Original file line numberDiff line numberDiff line change
@@ -482,8 +482,9 @@ QVBoxLayout * AutowareStatePanel::makeVelocityLimitGroup()
482482

483483
void AutowareStatePanel::onOperationMode(const OperationModeState::ConstSharedPtr msg)
484484
{
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) {
487488
bool is_checked = (current_mode == desired_mode);
488489
button->setHovered(false);
489490

@@ -495,10 +496,18 @@ void AutowareStatePanel::onOperationMode(const OperationModeState::ConstSharedPt
495496

496497
bool disable_buttons = msg->is_in_transition;
497498

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);
502511

503512
// toggle switch for control mode
504513
auto changeToggleSwitchState = [](CustomToggleSwitch * toggle_switch, const bool is_enabled) {

0 commit comments

Comments
 (0)