Skip to content

Commit bfd251e

Browse files
[pre-commit.ci] auto fixes from pre-commit.com hooks
for more information, see https://pre-commit.ci
1 parent 3f54490 commit bfd251e

File tree

2 files changed

+2
-5
lines changed

2 files changed

+2
-5
lines changed

control/velocity_controller_lqr/scripts/velocity_controller_lqr_node.py

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -284,10 +284,7 @@ def killswitch_callback(self, msg: Bool) -> None:
284284

285285
def control_loop(self) -> None:
286286
"""The control loop that calculates the input for the LQR controller."""
287-
if (
288-
self.killswitch == True
289-
or self.operation_mode != "autonomous mode"
290-
):
287+
if self.killswitch == True or self.operation_mode != "autonomous mode":
291288
self.controller.reset_controller()
292289
return
293290

control/velocity_controller_lqr/velocity_controller_lqr/velocity_controller_lqr_lib.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -221,7 +221,7 @@ def set_params(self, parameters: LQRParameters) -> None:
221221
self.i_pitch = parameters.i_pitch
222222
self.i_yaw = parameters.i_yaw
223223
self.i_weight = parameters.i_weight
224-
224+
225225
self.max_force = parameters.max_force
226226
self.operation_mode = parameters.operation_mode
227227
self.killswitch = parameters.killswitch

0 commit comments

Comments
 (0)