资源简介

基于Matlab软件的航天器控制工具箱Spacecraft Control Toolbox 是Princeton Satellite System公司(简称PSS)最早和应用最广的产品之一,有20多年的历史,被广泛用来设计控制系统、进行姿态估计、分析位置保持精度、制定燃料预算以及分析航天器动力学特性等工作。Spacecraft Control Toolbox工具箱经过多次飞行验证,证明是行之有效的。这个工具箱涵盖了航天器控制设计的各个方面。用户可以在很短的时间内完成各种类型航天器控制系统的设计和仿真试验。软件的模型和数据易于修改,具有良好的可视化功能。大部分算法都可以看到源代码。 附件中为源代码工具箱

资源截图

代码片段和文件信息

function [ rRT tToGoMem tToGo tDone ] = TimeGUI( totalSteps stepsDone tToGoMem rRT dT name )

%-------------------------------------------------------------------------------
%   Computes the time left to go in the simulation the predicted finish
%   time and the ratio of simulation time to real time. This routine
%   should be called at regular intervals.
%-------------------------------------------------------------------------------
%   Form:
%   [ rRT tToGoMem tToGo tDone ] = TimeGUI( totalSteps stepsDone tToGoMem rRT dT name )
%-------------------------------------------------------------------------------
%
%   ------
%   Inputs
%   ------
%   totalSteps             Total number of steps in the simulation
%   stepsDone              Number of steps completed
%   tToGoMem               Memory [lastJD lastStepsDone number of averages done]
%   rRT                    Ratio of simulation time to real time
%   dT                     Simulation time step (sec) 
%   name                   Name of simulation          
%
%   -------
%   Outputs
%   -------
%   rRT                    Ratio of simulation time to real time
%   tToGoMem               Memory [lastJD lastStepsDone number of averages done]
%   tToGo                  Time left in the simulation
%   tDone                  Predicted clock time of finish
%
%-------------------------------------------------------------------------------

%-------------------------------------------------------------------------------
%  Copyright 1995 Princeton Satellite Systems Inc. All rights reserved.
%-------------------------------------------------------------------------------

jD = Date2JD(clock);

if( nargin < 2 )
  stepsDone = 0;
end

if( nargin < 3 )
tToGoMem.lastJD        = 0; 
tToGoMem.lastStepsDone = 0; 
tToGoMem.kAve          = 0;
end

if( nargin < 4 )
  rRT = 0;
end

if( stepsDone == 0 )
  lastJD        = jD; 
  lastStepsDone = 0; 
  kAve          = 0;
  rRT           = 0;
  if( nargin < 5 )
name = ‘Time Statistics‘;
  end
  tToGoMem.hGUI = BuildGUI( name );
else
  lastJD        = tToGoMem.lastJD; 
  lastStepsDone = tToGoMem.lastStepsDone; 
  kAve          = tToGoMem.kAve;
end

if( stepsDone > 0 & lastJD > 0 )
  kAve        = kAve + 1;
  r           = (dT/86400)*(stepsDone-lastStepsDone)/(jD-lastJD);
  rRT         = ( (kAve-1)*rRT + r )/kAve;
  simTimeToGo = dT*(totalSteps - stepsDone);
  tToGo       = simTimeToGo/rRT;
  jDDone      = jD + tToGo/86400;
  tDone       = JD2Date( jDDone );
  if( nargout == 2 )
    t  = tToGo;
    hh = floor(t/3600);
    t  = t - 3600*hh;
    mm = floor(t/60);
    t  = t -   60*mm;
tDone(1) = tDone(1) - 100*floor(tDone(1)/100);
if( rRT > 1 )
      sRT = sprintf(‘Sim speed is %6.2f%% faster than real time‘100*(rRT-1));
else
      sRT = sprintf(‘Sim speed is %6.2f%% of real time‘100*rRT);
end
   sTToGo = sprintf(‘%4.2f%% complete with %2.2i:%2.2i:%5.2f to go‘100*(stepsDone/totalSteps)hhmmt);
   sComp  = sprintf(‘Should be comple

 属性            大小     日期    时间   名称
----------- ---------  ---------- -----  ----

     文件    1864555  2000-12-15 18:40  Spacecraft Control Toolbox\ACSTheory.pdf

     文件       8634  2000-01-03 21:04  Spacecraft Control Toolbox\License.pdf

     文件    1725172  2000-12-19 05:15  Spacecraft Control Toolbox\SCUsersGuide.pdf

     文件       2131  2001-02-13 17:58  Spacecraft Control Toolbox\Spacecraft Control Toolbox\Attitude\AddMass.m

     文件       2566  2001-02-13 17:58  Spacecraft Control Toolbox\Spacecraft Control Toolbox\Attitude\AddSurf.m

     文件       1826  2001-02-13 17:58  Spacecraft Control Toolbox\Spacecraft Control Toolbox\Attitude\AngRate.m

     文件       1041  2001-02-13 17:58  Spacecraft Control Toolbox\Spacecraft Control Toolbox\Attitude\ArcEff.m

     文件       1096  2001-02-13 17:58  Spacecraft Control Toolbox\Spacecraft Control Toolbox\Attitude\AttProp.m

     文件       1826  2001-02-13 17:58  Spacecraft Control Toolbox\Spacecraft Control Toolbox\Attitude\CMGAMatrix.m

     文件       4509  2001-02-13 17:58  Spacecraft Control Toolbox\Spacecraft Control Toolbox\Attitude\Contents.m

     文件       1292  2001-02-13 17:58  Spacecraft Control Toolbox\Spacecraft Control Toolbox\Attitude\DblPivot.m

     文件       2014  2001-02-13 17:58  Spacecraft Control Toolbox\Spacecraft Control Toolbox\Attitude\DSpnStab.m

     文件       1672  2001-02-13 17:58  Spacecraft Control Toolbox\Spacecraft Control Toolbox\Attitude\DSTCrit.m

     文件       1271  2001-02-13 17:58  Spacecraft Control Toolbox\Spacecraft Control Toolbox\Attitude\DSTM.m

     文件       3086  2001-02-13 17:58  Spacecraft Control Toolbox\Spacecraft Control Toolbox\Attitude\DWheel.m

     文件       1821  2001-02-13 17:58  Spacecraft Control Toolbox\Spacecraft Control Toolbox\Attitude\EKFSSG.m

     文件       1449  2001-02-13 17:58  Spacecraft Control Toolbox\Spacecraft Control Toolbox\Attitude\FGravityGradientStiffness.m

     文件       3303  2001-02-13 17:58  Spacecraft Control Toolbox\Spacecraft Control Toolbox\Attitude\FRSCGen.m

     文件       2099  2001-02-13 17:58  Spacecraft Control Toolbox\Spacecraft Control Toolbox\Attitude\FRSMPlan.m

     文件       2417  2001-02-13 17:58  Spacecraft Control Toolbox\Spacecraft Control Toolbox\Attitude\FRSProp.m

     文件       1443  2001-02-13 17:58  Spacecraft Control Toolbox\Spacecraft Control Toolbox\Attitude\FRSTarg.m

     文件       2132  2001-02-13 17:58  Spacecraft Control Toolbox\Spacecraft Control Toolbox\Attitude\FRSTorque.m

     文件       1459  2001-02-13 17:58  Spacecraft Control Toolbox\Spacecraft Control Toolbox\Attitude\GetModes.m

     文件       1618  2001-02-13 17:58  Spacecraft Control Toolbox\Spacecraft Control Toolbox\Attitude\GimbalC.m

     文件       1334  2001-02-13 17:58  Spacecraft Control Toolbox\Spacecraft Control Toolbox\Attitude\GravityGradientStiffness.m

     文件        893  2001-02-13 17:58  Spacecraft Control Toolbox\Spacecraft Control Toolbox\Attitude\IC3X326.m

     文件        904  2001-02-13 17:58  Spacecraft Control Toolbox\Spacecraft Control Toolbox\Attitude\IC623X3.m

     文件       3628  2001-02-13 17:58  Spacecraft Control Toolbox\Spacecraft Control Toolbox\Attitude\Inertias.m

     文件       3261  2001-02-13 17:58  Spacecraft Control Toolbox\Spacecraft Control Toolbox\Attitude\LoadFlex.m

     文件       3498  2001-02-13 17:58  Spacecraft Control Toolbox\Spacecraft Control Toolbox\Attitude\MagAirC.m

............此处省略1309个文件信息

评论

共有 条评论