/** @file Add83kmLatLon.cpp @author Brian Magill @date 6/04/2007 $Date:$ $Revision:$ @copyright (©) Copyright 2006 by GATS Inc. 11864 Canon Blvd., Suite 101, Newport News, VA 23606 All Rights Reserved. No part of this software or publication may be reproduced, stored in a retrieval system, or transmitted, in any form or by any means, electronic, mechanical, photocopying, recording, or otherwise without the prior written permission of GATS Inc. @brief Adds 83 km Lat & Lon to Event object header */ #include "Add83kmLatLon.h" #include "FindRefAltLatLon.h" using namespace std; void Add83kmLatLon(Event& L1) { string strErr; unsigned long i; EventVar tanAlt; EventVar tanLan; EventVar tanLon; pair coord; const double altRef = 83.0; FindRefAltLatLon findLatLon(altRef); L1.getEventVar("L1_TPAlt", tanAlt); L1.getEventVar("L1_TPLat", tanLan); L1.getEventVar("L1_TPLon", tanLon); coord = findLatLon(tanAlt, tanLan, tanLon); L1.setLatitude83km(coord.first); L1.setLongitude83km(coord.second); }