From: Jon S. B. <jb...@us...> - 2007-02-28 04:48:49
|
Update of /cvsroot/jsbsimcommander/src/gui In directory sc8-pr-cvs6.sourceforge.net:/tmp/cvs-serv26457/src/gui Modified Files: sensor.cpp sensor_dlg.cpp Log Message: Small changes to sensor classes Index: sensor.cpp =================================================================== RCS file: /cvsroot/jsbsimcommander/src/gui/sensor.cpp,v retrieving revision 1.10 retrieving revision 1.11 diff -C2 -d -r1.10 -r1.11 *** sensor.cpp 25 Feb 2007 22:12:42 -0000 1.10 --- sensor.cpp 28 Feb 2007 04:48:44 -0000 1.11 *************** *** 183,193 **** if (noise_variance != 0.0) { if (NoiseType == 0) { ! stream << Pre << wxT("<noise variation=\"PERCENT\"> ") << noise_variance << wxT(" </noise>") << endl; } else { ! stream << Pre << wxT("<noise variation=\"ABSOLUTE\"> ") << noise_variance << wxT(" </noise>") << endl; } } ! if (!quant_property.empty() || bits != 0) { } --- 183,204 ---- if (noise_variance != 0.0) { if (NoiseType == 0) { ! stream << Pre << wxT(" <noise variation=\"PERCENT\"> ") << noise_variance << wxT(" </noise>") << endl; } else { ! stream << Pre << wxT(" <noise variation=\"ABSOLUTE\"> ") << noise_variance << wxT(" </noise>") << endl; } } ! if (bits != 0) { ! if (!quant_property.empty()) { ! stream << Pre << wxT("<quantization name=\"") << quant_property << wxT("\">") << endl; ! } else { ! stream << Pre << wxT("<quantization>") << endl; ! } ! stream << Pre << wxT(" <bits>") << bits << "</bits>" << endl; ! stream << Pre << wxT(" <min>") << min << "</min>" << endl; ! stream << Pre << wxT(" <max>") << min << "</max>" << endl; ! if (!quant_property.empty()) { ! stream << Pre << wxT("</quantization>") << endl; ! } } Index: sensor_dlg.cpp =================================================================== RCS file: /cvsroot/jsbsimcommander/src/gui/sensor_dlg.cpp,v retrieving revision 1.1 retrieving revision 1.2 diff -C2 -d -r1.1 -r1.2 *** sensor_dlg.cpp 18 Feb 2007 16:54:25 -0000 1.1 --- sensor_dlg.cpp 28 Feb 2007 04:48:44 -0000 1.2 *************** *** 375,378 **** --- 375,379 ---- *text_ctrl_output_prop << g->GetOutputName(); + if (inputs.GetCount() > 0) { if (inputs[0] != wxT("NULL")) |