00001 /************************************************************************************************/ 00002 /*! \file PhysicalThruster.cpp 00003 * \brief The Thruster class provides the interface for h/w thrusters. 00004 * \author $Author: jayhawk_hokie $ 00005 * \version $Revision: 1.3 $ 00006 * \date $Date: 2005/09/18 16:12:54 $ 00007 ************************************************************************************************/ 00008 /*! 00009 * 00010 ************************************************************************************************/ 00011 #include "PhysicalThruster.h" 00012 00013 PhysicalThruster::PhysicalThruster() 00014 { 00015 Initialize(); 00016 } 00017 00018 PhysicalThruster::~PhysicalThruster() 00019 { 00020 } 00021 00022 void PhysicalThruster::StartFire(BYTE signal) 00023 { 00024 00025 DIOOutputByte(m_DAQCard->m_cardData,1,signal) ; 00026 } 00027 00028 void PhysicalThruster::StopFire() 00029 { 00030 00031 DIOOutputByte(m_DAQCard->m_cardData,1,0); 00032 } 00033 00034 void PhysicalThruster::Initialize() 00035 { 00036 m_DAQCard = DAQCard::Instance(); 00037 } 00038 00039 double PhysicalThruster::CalcThrustLevel( double pressureSetting ) 00040 { 00041 double thrust; // N 00042 00043 // this functon determined from experimental data (see documentation) 00044 thrust = 0.0154*pressureSetting + 0.0282; 00045 00046 return thrust; 00047 } 00048 00049 // Do not change the comments below - they will be added automatically by CVS 00050 /***************************************************************************** 00051 * $Log: PhysicalThruster.cpp,v $ 00052 * Revision 1.3 2005/09/18 16:12:54 jayhawk_hokie 00053 * Remove Jamfiles and unnecessary programs 00054 * 00055 * Revision 1.2 2004/06/15 14:58:45 shaigunjoe 00056 * Added changes for digital signal 00057 * 00058 * Revision 1.1 2004/05/27 19:59:06 shoemaker 00059 * Made changes for analog output thruster control 00060 * 00061 * Revision 1.2 2003/07/04 14:06:43 simpliciter 00062 * Added newline at end of file. 00063 * 00064 * Revision 1.1.1.1 2003/06/06 18:44:15 simpliciter 00065 * Initial submission. 00066 * 00067 * 00068 ******************************************************************************/