diff --git a/TorqueControllerMux_8cpp_source.html b/TorqueControllerMux_8cpp_source.html index 562345f98..0c084c08f 100644 --- a/TorqueControllerMux_8cpp_source.html +++ b/TorqueControllerMux_8cpp_source.html @@ -149,11 +149,11 @@
71 // Check if targeted controller is ready to be selected
72 bool controllerNotReadyPreventsModeChange = (controllerOutputs_[static_cast<int>(dialModeMap_[dashboardDialMode])].ready == false);
73
-
74 // if (!(speedPreventsModeChange || torqueDeltaPreventsModeChange || controllerNotReadyPreventsModeChange))
-
75 // {
-
76 muxMode_ = dialModeMap_[dashboardDialMode];
-
77 cur_dial_mode_ = dashboardDialMode;
-
78 // }
+
74 if (!(speedPreventsModeChange || torqueDeltaPreventsModeChange || controllerNotReadyPreventsModeChange))
+
75 {
+
76 muxMode_ = dialModeMap_[dashboardDialMode];
+
77 cur_dial_mode_ = dashboardDialMode;
+
78 }
79 }
80
81 // Check if the current controller is ready. If it has faulted, revert to safe mode
diff --git a/classTorqueControllerMux.html b/classTorqueControllerMux.html index 5931c4b7f..01d67f282 100644 --- a/classTorqueControllerMux.html +++ b/classTorqueControllerMux.html @@ -781,11 +781,11 @@

71 // Check if targeted controller is ready to be selected
72 bool controllerNotReadyPreventsModeChange = (controllerOutputs_[static_cast<int>(dialModeMap_[dashboardDialMode])].ready == false);
73
-
74 // if (!(speedPreventsModeChange || torqueDeltaPreventsModeChange || controllerNotReadyPreventsModeChange))
-
75 // {
-
76 muxMode_ = dialModeMap_[dashboardDialMode];
-
77 cur_dial_mode_ = dashboardDialMode;
-
78 // }
+
74 if (!(speedPreventsModeChange || torqueDeltaPreventsModeChange || controllerNotReadyPreventsModeChange))
+
75 {
+
76 muxMode_ = dialModeMap_[dashboardDialMode];
+
77 cur_dial_mode_ = dashboardDialMode;
+
78 }
79 }
80
81 // Check if the current controller is ready. If it has faulted, revert to safe mode