Updated documentation on vehicle param file

This commit is contained in:
spencerfolk
2023-12-12 14:04:59 -05:00
parent 29ff3b9ddf
commit ce0fac1072
2 changed files with 5 additions and 12 deletions

View File

@@ -11,7 +11,7 @@ Notes:
""" """
import numpy as np import numpy as np
d = 0.043 d = 0.043 # Arm length
quad_params = { quad_params = {
@@ -26,12 +26,6 @@ quad_params = {
# Geometric properties, all vectors are relative to the center of mass. # Geometric properties, all vectors are relative to the center of mass.
'num_rotors': 4, # for looping over each actuator 'num_rotors': 4, # for looping over each actuator
# 'rotor_pos': {
# 'r1': np.array([0.046, 0, 0]), # Location of Rotor 1, meters
# 'r2': np.array([0, 0.046, 0]), # Location of Rotor 2, meters
# 'r3': np.array([-0.046, 0, 0]), # Location of Rotor 3, meters
# 'r4': np.array([0, -0.046, 0]), # Location of Rotor 4, meters
# },
'rotor_pos': { 'rotor_pos': {
'r1': d*np.array([ 0.70710678118, 0.70710678118, 0]), # Location of Rotor 1, meters 'r1': d*np.array([ 0.70710678118, 0.70710678118, 0]), # Location of Rotor 1, meters
'r2': d*np.array([ 0.70710678118,-0.70710678118, 0]), # Location of Rotor 2, meters 'r2': d*np.array([ 0.70710678118,-0.70710678118, 0]), # Location of Rotor 2, meters

View File

@@ -9,7 +9,7 @@ Notes:
""" """
import numpy as np import numpy as np
d = 0.17 d = 0.17 # Arm length
quad_params = { quad_params = {
@@ -42,7 +42,6 @@ quad_params = {
'c_Dz': 1e-2, # parasitic drag in body z axis, N/(m/s)**2 'c_Dz': 1e-2, # parasitic drag in body z axis, N/(m/s)**2
# Rotor properties # Rotor properties
# See "System Identification of the Crazyflie 2.0 Nano Quadrocopter", Forster 2015.
'k_eta': 5.57e-06, # thrust coefficient N/(rad/s)**2 'k_eta': 5.57e-06, # thrust coefficient N/(rad/s)**2
'k_m': 1.36e-07, # yaw moment coefficient Nm/(rad/s)**2 'k_m': 1.36e-07, # yaw moment coefficient Nm/(rad/s)**2
'k_d': 1.19e-04, # rotor drag coefficient N/(rad*m/s**2) = kg/rad 'k_d': 1.19e-04, # rotor drag coefficient N/(rad*m/s**2) = kg/rad