1
0
Fork 0
This commit is contained in:
adrian 2011-11-24 10:19:07 +02:00
parent e17852f679
commit 0dd93d56d6
2 changed files with 4 additions and 4 deletions

View file

@ -1,4 +1,4 @@
// commradio.cxx -- implementation of FGCommRadio // radio.cxx -- implementation of FGRadio
// Class to manage radio propagation using the ITM model // Class to manage radio propagation using the ITM model
// Written by Adrian Musceac, started August 2011. // Written by Adrian Musceac, started August 2011.
// //
@ -101,11 +101,11 @@ void FGRadio::receiveText(SGGeod tx_pos, double freq, string text,
/* /*
string hash_noise = " "; string hash_noise = " ";
int reps = (int) (fabs(floor(signal - 11.0)) * 2); int reps = (int) (fabs(floor(signal - 11.0)) * 2);
cerr << "Reps: " << reps << endl; //cerr << "Reps: " << reps << endl;
int t_size = text.size(); int t_size = text.size();
for (int n = 1; n <= reps; ++n) { for (int n = 1; n <= reps; ++n) {
int pos = rand() % (t_size -1); int pos = rand() % (t_size -1);
cerr << "Pos: " << pos << endl; //cerr << "Pos: " << pos << endl;
text.replace(pos,1, hash_noise); text.replace(pos,1, hash_noise);
} }
*/ */

View file

@ -1,4 +1,4 @@
// commradio.hxx -- class to manage a comm radio instance // radio.hxx -- FGRadio: class to manage radio propagation
// //
// Written by Adrian Musceac, started August 2011. // Written by Adrian Musceac, started August 2011.
// //