Path: Missions/Comsat
% Computes the thrust level of a set of thrusters. -------------------------------------------------------------------------- Form: [thrustLevel, turnedOff] = ThrustLevel( time, pulsewidth, fallConst,... thrustLevelOld, aFall, aRise, bRise ) -------------------------------------------------------------------------- ------ Inputs ------ time (1,1) Time since pulse started pulsewidth (n) Pulsewidth fallConst (n) Thruster fall time constant thrustLevelOld (n) Previous thrust level aFall (n) exp(-timeStep/fallConst) aRise (n) exp(-timeStep/riseConst) bRise (n) 1 - aRise ------- Outputs ------- thrustLevel (n) Thrust level, between 0 and 1 turnedOff (x) Indices of any thrusters which were turned off during this call. 0 <= x <=n --------------------------------------------------------------------------
Back to the Missions Module page