|
| 1 | +# Small quadcopter configuration for validation testing |
| 2 | +# Lightweight, fast response characteristics |
| 3 | + |
| 4 | +!AircraftParams |
| 5 | +aero: !AeroParams |
| 6 | + cd: 0.5 # Drag coefficient |
| 7 | + |
| 8 | +mass: !MassParams |
| 9 | + mass_kg: 0.5 # 500g total mass (small racing quad) |
| 10 | + cg_m: [0.0, 0.0, 0.0] # Center of mass at origin |
| 11 | + inertia_kgm2: # Moment of inertia matrix (small quad, approximately spherical) |
| 12 | + - [0.002, 0.0, 0.0] # Ixx |
| 13 | + - [0.0, 0.002, 0.0] # Iyy |
| 14 | + - [0.0, 0.0, 0.003] # Izz |
| 15 | + |
| 16 | +geo: !GeoParams |
| 17 | + front_area_m2: [0.01, 0.01, 0.01, 0.01] # Small frontal area at different angles |
| 18 | + |
| 19 | +prop: !PropParams |
| 20 | + # Polynomial coefficients for thrust: T = c0*cmd^2 + c1*cmd + c2 |
| 21 | + # DESCENDING ORDER: [c2, c1, c0] where T = c2*x^2 + c1*x + c0 |
| 22 | + # Normalized motor command [0, 1] -> thrust in Newtons |
| 23 | + # For hover: 4 motors * thrust ≈ 0.5kg * 9.81 ≈ 4.9N total, ~1.23N per motor |
| 24 | + poly_thrust: [2.5, 0.0, 0.0] # Quadratic: T = 2.5*cmd^2, ~2.5N at cmd=1.0 per motor |
| 25 | + |
| 26 | + # Polynomial coefficients for torque: Q = c0*cmd^2 + c1*cmd + c2 |
| 27 | + # DESCENDING ORDER: [c2, c1, c0] |
| 28 | + # Reaction torque in N-m |
| 29 | + poly_torque: [0.05, 0.0, 0.0] # Quadratic: Q = 0.05*cmd^2, ~0.05 N-m at cmd=1.0 |
| 30 | + |
| 31 | +motor: !MotorParams |
| 32 | + # X configuration: motors at 45 degrees from body axes |
| 33 | + # Arm length: 0.1m (small 200mm frame) |
| 34 | + pos_m: |
| 35 | + - [0.0707, 0.0707, 0.0] # Front-right motor (45°) |
| 36 | + - [-0.0707, 0.0707, 0.0] # Front-left motor (135°) |
| 37 | + - [-0.0707, -0.0707, 0.0] # Rear-left motor (225°) |
| 38 | + - [0.0707, -0.0707, 0.0] # Rear-right motor (315°) |
| 39 | + |
| 40 | + # Direction: +1 = CCW, -1 = CW (viewed from above) |
| 41 | + # Standard X configuration: FR(CW), FL(CCW), RL(CW), RR(CCW) |
| 42 | + dir: [-1, 1, -1, 1] |
0 commit comments