MOOS 0.2375
|
00001 00002 // 00003 // MOOS - Mission Oriented Operating Suite 00004 // 00005 // A suit of Applications and Libraries for Mobile Robotics Research 00006 // Copyright (C) 2001-2005 Massachusetts Institute of Technology and 00007 // Oxford University. 00008 // 00009 // This software was written by Paul Newman at MIT 2001-2002 and Oxford 00010 // University 2003-2005. email: pnewman@robots.ox.ac.uk. 00011 // 00012 // This file is part of a MOOS Utility Component. 00013 // 00014 // This program is free software; you can redistribute it and/or 00015 // modify it under the terms of the GNU General Public License as 00016 // published by the Free Software Foundation; either version 2 of the 00017 // License, or (at your option) any later version. 00018 // 00019 // This program is distributed in the hope that it will be useful, 00020 // but WITHOUT ANY WARRANTY; without even the implied warranty of 00021 // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 00022 // General Public License for more details. 00023 // 00024 // You should have received a copy of the GNU General Public License 00025 // along with this program; if not, write to the Free Software 00026 // Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 00027 // 02111-1307, USA. 00028 // 00030 00031 // AcousticBeacon.cpp: implementation of the CAcousticBeacon class. 00032 // 00034 #ifdef _WIN32 00035 #pragma warning(disable : 4786) 00036 #endif 00037 00038 #include "AcousticBeacon.h" 00039 #include "AcousticResponder.h" 00041 // Construction/Destruction 00043 00044 CAcousticBeacon::CAcousticBeacon() 00045 { 00046 CAcousticNode* pTheAcousticsBit = new CAcousticResponder; 00047 00048 pTheAcousticsBit->SetRxChan(ACOUSTIC_CHAN_CIF); 00049 00050 pTheAcousticsBit->SetTxChan(ACOUSTIC_CHAN_1); 00051 00052 pTheAcousticsBit->SetParent(this); 00053 00054 pTheAcousticsBit->SetName("TDR1"); 00055 00056 m_AcousticNodes.push_back(pTheAcousticsBit); 00057 00058 00059 m_Vel_e = 0; 00060 m_Pos_e = 0; 00061 } 00062 00063 00064 bool CAcousticBeacon::LogState(double dfTimeNow) 00065 { 00066 //no need to log beacon positions! 00067 return true; 00068 } 00069 00070 CAcousticBeacon::~CAcousticBeacon() 00071 { 00072 00073 } 00074