Skip to content

Commit

Permalink
Automated autoyapf fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
github-actions committed Oct 6, 2024
1 parent 92166a0 commit feb5390
Showing 1 changed file with 6 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -81,14 +81,14 @@ def __init__(self):
Y_I = 0.0 # Augmented state cost for yaw

self.Q_aug = np.block([[self.Q, np.zeros((2, 1))],
[np.zeros((1, 2)), P_I]]) # Augmented state cost matrix

[np.zeros((1, 2)),
P_I]]) # Augmented state cost matrix

self.z = 0.0

# State vector 1. pitch, 2. yaw
self.states = np.array([0, 0])


#---------------------------------------------------------------Callback Functions---------------------------------------------------------------

def nucleus_callback(self, msg: Odometry): # callback function
Expand All @@ -110,8 +110,9 @@ def LQR_controller(self): # The LQR controller function

# Coriolis matrix
#self.C = calculate_coriolis_matrix(self, msg.twist.twist.angular.x, msg.twist.twist.angular.z)

self.C = calculate_coriolis_matrix(self, 1.0, 1.0) # TEMPORARY linearization of the coriolis matrix

self.C = calculate_coriolis_matrix(
self, 1.0, 1.0) # TEMPORARY linearization of the coriolis matrix
self.A = -self.M_inv @ self.C
self.B = self.M_inv

Expand Down

0 comments on commit feb5390

Please sign in to comment.