Path: SCPro/ProControl
% Altitude hold for a lander -------------------------------------------------------------------------- [u,thrust,angle] = AltitudeHold(x,kH,tauH,g,mass,xSet) -------------------------------------------------------------------------- ------ Inputs ------ x (:,1) State vector [r;v] d (.) Data structure .tauH (1,1) Damping time constant (s) .kH (1,1) Forward gain (N/km^3) .g (1,1) Acceleration of gravity (N/km^2) .mass (1,1) Mass (kg) .xSet (6,1) State vector set point [r;v] ------- Outputs ------- u (3,1) Thrust unit vector thrust (1,1) Thrust (N) angle (1,1) Thrust angle (rad) -------------------------------------------------------------------------- Copyright (c) 2022 Princeton Satellite Systems, Inc. All rights reserved. -------------------------------------------------------------------------- Since version 2022.1 --------------------------------------------------------------------------
Common: Quaternion/QTForm Common: Quaternion/U2Q Math: Linear/Mag
Back to the SCPro Module page