LoadComms(temp);
temp = path;
temp.append( "ATC/default.approach" );
- LoadComms(temp);
- return true;*/
+ LoadComms(temp);*/
+ return true;
}
fin >> skipcomment;
}
- fin.close();
+ fin.close();*/
return true;
-*/
}
return false;
}
*/
+ return false;
}
int FGCommList::FindByPos(const SGGeod& aPos, double range, comm_list_type* stations, atc_type tp)
{
-/*
// number of relevant stations found within range
int found = 0;
+/*
stations->erase(stations->begin(), stations->end());
// get bucket number for plane position
}
}
}
- return found;
*/
+ return found;
}
}
range *= 10;
}
- return(-9999.0);
*/
+ return(-9999.0);
}
}
}
}
- return false;
*/
+ return false;
}
// TODO - this function should move somewhere else eventually!
// << " Delta: " << delta << endl;
return(tran.sequence + (delta ? 0 : LTRS*1000));
*/
+ return 2600;
}
/*****************************************************************************
* FGKln89AlignedProjection
return SGGeod::fromRadM(_origin.getLongitudeRad()+delta_lon, _origin.getLatitudeRad()+delta_lat, pt.z());
}
-#endif // #ENABLE_ATCDCL
\ No newline at end of file
+#endif // #ENABLE_ATCDCL
id(0), waitsForId(0),
currentPos(0),
leg(0),
+ frequencyId(0),
state(0),
+ allowTransmission(true),
latitude(0),
longitude(0),
heading(0),
speed(0),
altitude(0),
- radius(0),
- frequencyId(0),
- allowTransmission(true) {
+ radius(0)
+{
}
void FGTrafficRecord::setPositionAndIntentions(int pos, FGAIFlightPlan *route)
cout << endl << "No. Device" << endl;
vector <const char*>devices = smgr.get_available_devices();
- for (int i=0; i<devices.size(); i++) {
+ for (vector <const char*>::size_type i=0; i<devices.size(); i++) {
cout << i << ". \"" << devices[i] << "\"" << endl;
}
devices.clear();
foundRoute = false;
totalDistance = 0;
FGNode *firstNode = findNode(start);
- FGNode *lastNode = findNode(end);
+ //FGNode *lastNode = findNode(end);
//prevNode = prevPrevNode = -1;
//prevNode = start;
routes.clear();
///////////////////////////////////////////////////////////////////////////////
FGPositioned::FGPositioned(Type ty, const std::string& aIdent, const SGGeod& aPos, bool aIndexed) :
- mType(ty),
mPosition(aPos),
+ mType(ty),
mIdent(aIdent)
{
SGReferenced::get(this); // hold an owning ref, for the moment
unsigned int result = serial->write_port( package.c_str(),
package.length() );
if ( result != package.length() ) {
- printf("ERROR: wrote %d of %d bytes to serial port!\n",
- result, package.length() );
+ printf("ERROR: wrote %u of %u bytes to serial port!\n",
+ result, (unsigned)package.length() );
return 0;
}
// send the command
string command = cmd_queue.front();
- int result = serial_send( serial, cmd_send_index, command );
+ /*int result =*/ serial_send( serial, cmd_send_index, command );
return cmd_send_index;
}
static void send_data( const GPSPoint p ) {
int len;
- int ctrlsize = sizeof( FGNetCtrls );
+// int ctrlsize = sizeof( FGNetCtrls );
int fdmsize = sizeof( FGNetFDM );
// cout << "Running main loop" << endl;