00001 ////////////////////////////////////////////////////////////////////////////////////////////////// 00002 /*! \file OpenLoopMWController.cpp 00003 * \brief Implementation of the OpenLoopMWController class. 00004 * \author $Author: cakinli $ 00005 * \version $Revision: 1.4 $ 00006 * \date $Date: 2005/02/25 18:40:53 $ 00007 *////////////////////////////////////////////////////////////////////////////////////////////////// 00008 /*! 00009 */ 00010 ////////////////////////////////////////////////////////////////////////////////////////////////// 00011 00012 // This file implements open loop control for the three MW for use in parameter estimation 00013 00014 #include "OpenLoopMWController.h" 00015 00016 int OpenLoopMWController::Initialize() { 00017 00018 /** Open the data file */ 00019 m_fileID.open("OpenLoopInputs.txt"); 00020 Vector temp(3); 00021 m_controlTorque = temp; 00022 return 0; 00023 } 00024 00025 int OpenLoopMWController::Run() 00026 { 00027 /** Read the next torque out of the datafile */ 00028 m_fileID >> m_controlTorque(1) >> m_controlTorque(2) >> m_controlTorque(3); 00029 00030 00031 /** Set the desird contorl torque in the whorl object */ 00032 m_whorl->SetControl(m_controlTorque); 00033 00034 /** Set the torque for the momentum wheels to produce */ 00035 SetWheelTorque(m_controlTorque); 00036 00037 return 0; 00038 } 00039 00040 // Do not change the comments below - they will be added automatically by CVS 00041 /***************************************************************************** 00042 * $Log: OpenLoopMWController.cpp,v $ 00043 * Revision 1.4 2005/02/25 18:40:53 cakinli 00044 * Created Makefiles and organized include directives to reduce the number of 00045 * include paths. Reorganized libraries so that there is now one per source 00046 * directory. Each directory is self-contained in terms of its Makefile. 00047 * The local Makefile in each directory includes src/config.mk, which has all 00048 * the definitions and general and pattern rules. So at most, to see what 00049 * goes into building a target, a person needs to examine the Makefile in 00050 * that directory, and ../config.mk. 00051 * 00052 * Revision 1.3 2003/12/12 21:23:27 simpliciter 00053 * Working version update before modifications! 00054 * 00055 * Revision 1.2 2003/11/04 23:42:22 simpliciter 00056 * Changed for wheel speed commands instead of wheel torques. 00057 * 00058 * Revision 1.1 2003/10/31 21:24:58 simpliciter 00059 * Initial submission. 00060 * 00061 * 00062 * 00063 * 00064 ******************************************************************************/