Linear Drag
Classes:
Class that implements linear drag computations afftecting a rigid body. |
- class pegasus.simulator.logic.dynamics.linear_drag.LinearDrag
Bases:
Drag
Class that implements linear drag computations afftecting a rigid body. It inherits the Drag base class.
Methods:
__init__
([drag_coefficients])Receives as input the drag coefficients of the vehicle as a 3x1 vector of constants
update
(state, dt)Method that updates the drag force to be applied on the body frame of the vehicle.
Attributes:
The drag force to be applied on the body frame of the vehicle
- __init__(drag_coefficients=[0.0, 0.0, 0.0])
Receives as input the drag coefficients of the vehicle as a 3x1 vector of constants
- update(state, dt)
Method that updates the drag force to be applied on the body frame of the vehicle. The total drag force applied on the body reference frame (FLU convention) is given by diag(dx,dy,dz) * R’ * v where v is the velocity of the vehicle expressed in the inertial frame and R’ * v = velocity_body_frame