1
0
Fork 0
Commit graph

264 commits

Author SHA1 Message Date
frohlich
0c3dc88652 Add some camera manipulators to the viewer.
Set up more of the flightgear internal environment.

Modified Files:
 	utils/fgviewer/fgviewer.cxx
2009-06-03 23:45:33 +02:00
ehofman
2df12dfcdc small fixes 2009-06-03 00:18:56 +02:00
frohlich
e6aa5b2320 Make it compile with gcc-4.4.0
Modified Files:
	utils/GPSsmooth/UGear_command.cxx
2009-06-03 00:18:55 +02:00
frohlich
0d0076d69c Better error message when materials cannot be loaded.
Modified Files:
	fgviewer.cxx
2009-06-03 00:18:55 +02:00
ehofman
a29bd715c1 Fix cacheFree 2009-06-03 00:18:55 +02:00
ehofman
fc0b771cdf * Implement a node cache that can be enabled at compile time.
the node cache prevents recursively walking the xml tree over and over
    again to find the specified nodes.
2009-06-03 00:18:55 +02:00
frohlich
b180ce7be5 Add osg stats and other usefull stuff.
Modified Files:
	utils/fgviewer/fgviewer.cxx
2009-06-03 00:18:55 +02:00
frohlich
0c0b38733e Add a new tool called fgviewer.
Modified Files:
	configure.ac utils/Makefile.am
Added Files:
 	utils/fgviewer/.cvsignore utils/fgviewer/Makefile.am
	utils/fgviewer/fgviewer.cxx
2009-06-03 00:18:54 +02:00
ehofman
20ad439f42 fixes for compiling without syntax validation. 2009-05-18 12:24:17 +02:00
ehofman
745277ec4a Skip one recursive function call for leaf nodes at the cost of a bit of code size. Fix comment support in some cases 2009-05-18 12:24:16 +02:00
fredb
4e7fde12b3 Compile xmlgrep with MSVC 7.1 2009-05-18 12:24:16 +02:00
ehofman
e47406b803 more small fixes 2009-05-18 12:24:16 +02:00
ehofman
7f16fbec70 * Various bugfixes, required to get fgrun working
* add testxml as sort of a stress test application
2009-05-18 12:24:16 +02:00
ehofman
7e4393bfab Various bugfixes. This allows me to run fgrun on all FlightGear aircraft in the base packageusing this xml code. 2009-05-18 12:24:16 +02:00
ehofman
fd2361ef55 allow C++ to include the header 2009-05-02 00:44:22 +02:00
ehofman
09adb5ee05 general cleanups. 2009-05-02 00:44:22 +02:00
ehofman
95bc1d587f Add support for CDATA 2009-05-02 00:44:22 +02:00
ehofman
bcf9687606 Fix an off by one problem. 2009-05-02 00:44:22 +02:00
ehofman
efc8d18d06 a small cleanup and make Windows simple_mmap function return the proper value if an error was detected. 2009-05-02 00:44:22 +02:00
ehofman
9122bfd1db * add printxml, an example utility that walks an xml-tree and prints it
contenst
2009-05-02 00:44:22 +02:00
ehofman
9e36b86756 * changes to the code to allow walking the xml-tree using "*" as a node name 2009-05-02 00:44:22 +02:00
ehofman
19c463f810 Ouch, forgot to allocate memory for the root node in xmlInitBuffer. Update xmlgrep to allow compiling it using xmlInitBuffer instead of xmlOpen 2009-05-02 00:44:21 +02:00
ehofman
ee34e97ada zero is a valid file descriptor, use -1 instead and better not use 'open' as a variable name. 2009-05-02 00:44:21 +02:00
ehofman
228c7aaaa0 * add xmlInitBuffer() for processing of a preallocated buffer
* add xmlErrorGetColumnNo to get the column number of the syntax error
  * pass an error at a higher level to lower levels
  * detect a number of extra syntax errors
2009-05-02 00:44:21 +02:00
ehofman
1f40ee2366 fix a buffer overflow 2009-05-02 00:44:21 +02:00
ehofman
e0528fc2d4 catch one more syntax error and remove a stale debug printf 2009-05-02 00:44:21 +02:00
ehofman
0654531fff * add support for comments inside xml-tags, e.g.: <test><!-- --></test> 2009-05-02 00:44:21 +02:00
ehofman
8862b3e2b3 * add support for self-contained tags like <test/>
* fix a problem if a file could not be mmaped
  * add a few comments which hopefully makes the code easier to understand
  * code cleanups
2009-05-02 00:44:21 +02:00
ehofman
8d85732a7d fix a case where a single-element root path (e.g. /printer) would not pass xmlNodeGetPath 2009-05-02 00:44:20 +02:00
ehofman
0561c0079a * Setting an error when a node isn't found isn't he best way,
need to find another way to report that.
  * Fix a bug where an error was incorrectly set in xmlNodeCopyName
2009-05-02 00:44:20 +02:00
ehofman
8dec4a987f * fix a problem where attributes or elements starting with the same letter
sequence could give a false negative result
  * Add a 'clear' attribute to the xmlErrorGet functions that indicates whether
    the error should be cleared or not
  * detect more xml syntax errors
2009-05-02 00:44:20 +02:00
fredb
3bb6d99542 errno is a reserved macro in some compilers 2009-05-02 00:44:20 +02:00
ehofman
54496730cd Fix a typo. 2009-05-02 00:44:20 +02:00
ehofman
a21dddeffc * Introduce a root-node that can hold extra information which is necessary
for thread safety under windows
  * Add xmlErrorGetString, xmlErrorGetLineNo for syntax error detetction
  * Add xmlErrGetNo for detection of, and clearing the last error
2009-05-02 00:44:20 +02:00
fredb
e00c4b98ce Compile xmlgrep with MSVC 7.1 2009-05-02 00:44:20 +02:00
ehofman
8943603ef1 * Rename xmlGetNode functions to xmlNodeGet for better consistancy
* likewise for xmlCopyNode en xmlCompareNode
  * add xmlAttributeGetDouble, xmlAttributeGetInt, xmlAttributeGetString
    xmlAttributeCopyString and xmlAttributeCompareString functions
  * fix some small bugs and problems along the way
  * add support for filtering on attribute value in xmlgrep
2009-05-02 00:44:20 +02:00
ehofman
aa30b94750 forgot one small fix 2009-04-15 23:19:29 +02:00
ehofman
306668887a better use of const and fix a bunch of warnings 2009-04-15 23:19:29 +02:00
frohlich
f9f9350b96 Adapt to SGTimeStamp changes.
Modified Files:
	configure.ac src/Cockpit/panel.cxx src/FDM/Makefile.am
	src/FDM/flight.hxx src/FDM/ExternalNet/ExternalNet.hxx
	src/Instrumentation/marker_beacon.cxx src/Main/Makefile.am
	src/Main/fg_init.cxx src/Main/main.cxx
	src/MultiPlayer/multiplaymgr.cxx src/Time/fg_timer.cxx
	utils/GPSsmooth/MIDG_main.cxx utils/GPSsmooth/UGear_main.cxx
	utils/GPSsmooth/gps_main.cxx
2009-03-18 08:00:08 +01:00
fredb
a9475796eb Improve TerraSync suggested by Alex Perry
Keep already scheduled tiles for later on relocation
2009-02-10 00:22:16 +01:00
fredb
83ece7efec Improve TerraSync
Really fetch tiles while there are no incoming messages.
Implement an aging mechanism to not try the same tile within a period of 10mn
2009-02-10 00:22:16 +01:00
Tim Moore
7259d36abf Change waitingTiles from std::queue to std::deque
std::queue can't be cleared portably.
2009-02-02 00:58:01 +01:00
fredb
155701aaeb Improve the terrasync strategy 2009-02-02 00:58:01 +01:00
fredb
cde8b0c54a Fix terrasync parsing of atlas messages 2009-02-02 00:58:01 +01:00
jmt
b2d4612beb Fix more test/util linkage for sgmath depending on sgstructure. 2008-12-26 12:38:32 +00:00
fredb
359ab0c207 Don't try to fetch tiles when lat or lon are invalid 2008-12-21 09:29:33 +00:00
durk
ad4bd6c2ce Some final adjustments:
- Remove Concorde, as announced
 - Add a missing directory to utils/Makefile.am, which caused an autoconf
   error.
2008-12-10 18:41:34 +00:00
curt
7ad55be8f6 Add propmerge to the subdirs list so it can get included with make dist (it
is referenced from the configure.ac file.)
2008-12-03 14:54:17 +00:00
mfranz
7fb8c28ac6 positive error return values, variable name change 2008-11-12 14:41:01 +00:00
mfranz
4b9ed2ae07 enable SG_LOG output 2008-11-11 22:09:56 +00:00
mfranz
d46f0a42ec add propmerge utility, which merges <PropertyList> XML files. Writes
result to the given output file if specified, or prints it to stdout
otherwise. Usage:

  $ propmerge [-o <outfile>] <list-of-infiles>
2008-11-11 18:51:01 +00:00
fredb
6f021e2bcc Provide an explanation to why a special case is needed 2008-10-19 16:26:52 +00:00
fredb
12009ea688 Alex Perry :
This patch changes terrasync so it links against the subversion
library if you have it installed.  It supports people who build binary
releases for use by non-developers by removing the runtime external
dependency on having command line svn or rsync available.  Since the
patch changes autoconf to detect libsvn,  I'd appreciate it if people
who release binaries could verify that the detection scripting works
for their platform.

Developer warning:  If you do have libsvn developer libraries
installed, terrasync changes its default option from "-R" to "-S" to
remove the command line dependency.  However, Martin has not yet
uploaded world scenery into the subversion repository so it won't be
useful to fly against and you may want to specify "-R" on the command
line in the short term.  Or run both.


Me: Update MSVC 7.1 project file. Need svn-win32-1.x.y_dev.zip and svn-win32-1.x.y.zip
located at http://subversion.tigris.org/servlets/ProjectDocumentList?folderID=8100
2008-10-19 16:08:30 +00:00
fredb
2710564c7d Alex Perry :
This patch changes terrasync so it links against the subversion
library if you have it installed.  It supports people who build binary
releases for use by non-developers by removing the runtime external
dependency on having command line svn or rsync available.  Since the
patch changes autoconf to detect libsvn,  I'd appreciate it if people
who release binaries could verify that the detection scripting works
for their platform.

Developer warning:  If you do have libsvn developer libraries
installed, terrasync changes its default option from "-R" to "-S" to
remove the command line dependency.  However, Martin has not yet
uploaded world scenery into the subversion repository so it won't be
useful to fly against and you may want to specify "-R" on the command
line in the short term.  Or run both.


Me: Update MSVC 7.1 project file. Need svn-win32-1.x.y_dev.zip and svn-win32-1.x.y.zip
located at http://subversion.tigris.org/servlets/ProjectDocumentList?folderID=8100
2008-10-19 16:08:29 +00:00
mfranz
d612706304 Move vim syntax files from utils/syntax/ to scripts/syntax/. They aren't
exactly scripts, but neither are they utilities by themselves. And the
neighbourship to the completion scripts makes sense (IMHO).
2008-10-13 21:22:10 +00:00
durk
30cf69fe6d Added two missing libraries needed by the new terrasync code. 2008-10-12 09:56:18 +00:00
fredb
5c05891521 Update Terrasync README file 2008-10-12 08:03:51 +00:00
fredb
c6e4bb0669 Alex Perry :
* Doesn't download the area at lot,lon of 0,0 if terrasync starts before FlightGear is ready
* Attempt to download the Airports directory when no scenery needs to be fetched
* Add svn over http support for flag "-S", in addition to the existing default of rsync
* Add the command line flag "-T" to just refresh the KSFO surrounding area and exit

Frederic Bouvier:
Add a MSVC71 project file
2008-10-12 07:55:09 +00:00
mfranz
1e27e3d4c3 detect parenthesis nesting errors, not only spurious closing parens 2008-09-30 15:37:01 +00:00
mfranz
5cff2b31b6 - improve number detection
- use nasal syntax for <script>..</script> in xml mode
- new nasal built-in function id()
2008-09-29 17:02:37 +00:00
fredb
9ebb9128c8 MINGW patch by Csaba Halasz, reworked by me to avoid breaking MSVC or Cygwin build 2008-09-28 08:27:32 +00:00
mfranz
226231434e nasal.vim: add <?...?> and <!--...--> to XML embedded mode
and only enable that if the file extension is xml
2008-08-13 10:21:42 +00:00
mfranz
403eaeb25e <foo/> are also comments in XML embedded Nasal mode 2008-08-05 05:23:16 +00:00
mfranz
15bc6dbe21 mark obvious XML tags as comments 2008-08-03 13:52:29 +00:00
mfranz
d1dc9c85d0 simplification 2008-08-02 10:00:06 +00:00
ehofman
429f2530de James Turner:
* experimental clean-up / reduction on two of the FG headers:
   (I'm going to await feedback on the developers list before doing more of
    these, to avoiding going over files multiple times, but in principle it
    seems pretty straightforward.)

 * final fixes for SG_USING_STD removal
2008-07-29 08:27:48 +00:00
fredb
fa147e620b SG_GLUT_H removed 2008-07-27 17:58:33 +00:00
ehofman
667e64e1eb - remove the SG_GLxxxx_H #defines, since OSG provides its own versions
- this exposed a bizarre issue on Mac where dragging in <AGL/agl.h> in
   extensions.hxx was pulling in all of Carbon to the global namespace
   - very scary. As a result, I now need to explicitly include CoreFoundation
   in fg_init.cxx.
 - change SG_USING_STD(x) to using std::x
2008-07-27 16:25:13 +00:00
mfranz
c8d0874422 switch back to "<key> in <hash>" notation (this had failed in one test,
but the reason must have been unrelated)
2008-07-27 10:53:57 +00:00
mfranz
5960442cc3 add cvs source urls 2008-07-26 10:42:13 +00:00
mfranz
e2899588c7 drop dependence on PyXML and use standard lib methods 2008-07-25 20:22:36 +00:00
ehofman
d9bfd5a425 This should apply, and everything should build cleanly, in isolation from the
SimGear change. It changes all the SG_xxxx to be the 'real' includes, and gets
rid of many #ifdef SG_HAVE_STD_INCLUDES. As an added bonus, rather than
replacing 'SG_USING_NAMESPACE(std)' with 'using namespace std', I just fixed
the small number of places to use std:: explicitly. So we're no longer polluting
the global namespace with the entire contents of std, in many cases.

There is one more 'mechanical' change to come - getting rid of SG_USING_STD(X),
but I want to keep that separate from everything else. (There's another
mechnical change, replacing <math.h> with <cmath> and so on *everywhere*, but
one step at a time)
2008-07-25 18:38:29 +00:00
mfranz
ff5743d3e7 add printf 2008-07-23 15:45:30 +00:00
mfranz
205718dcf3 add thisfunc() and props.condition() 2008-07-22 23:33:30 +00:00
curt
b19a270d54 Clean up a couple warnings. 2008-07-21 19:57:56 +00:00
ehofman
d015bfe72f * change a number of function parameters to const where appropriate
* fix a problem where the wrong node-name length was returned
  * xmlgrep now also works when only the -e options is specified
  * fix xmlgrep to show the correct node-name (it reported the parent
    node-name in the previous version)
2008-07-21 12:32:22 +00:00
ehofman
83c2f96153 * fix __xmlSkipComment to properly find the end of comment tag.
* add the xmlGetNodeName and xmlCopyNodeName functions
* add the xmlCopyString function
* clean up some code

'xmlgrep -v' now returns the proper node name
2008-07-20 09:38:53 +00:00
ehofman
b4ab5242ec Change the low level internals of the xml library to reflect the following;
* rewrite the code to always recursively walk the node tree when searching
    for a particular node. this is required for cases where a node with a
    particular name is located deeper in a node with the same name;
    for example -r /configuration/device/reference/device would fail in the
    previous verion
  * rename xmlGetElement to xmlGetNodeNum and add the possibility to request
    the nth node with this name
  * rename xmlGetNumElements to xmlGetNumNodes

The drawback is that this is approach slows down processing the files a bit,
but at least it can now find any xml node in any xml file.
Also, no more function changes are planned from now on.
2008-07-19 12:18:05 +00:00
ehofman
6e6e8bbefc * reorganize the code to be able to skip comment sections
* depreciate __xmlFindNextElement and use __xmlGetNode instead
* xmlGetNextElement now returns char* instead of void* for furute use
* add preliminary support for wildcards in the search path ('*' and '?')
2008-07-06 11:34:50 +00:00
ehofman
67ca3c0307 * fix a problem caused by removing the last unnecessary alloc
* strip leading-, and trailing spaces from the string before comparing
 * fix a problem where trailing spaces weren't removed
2008-07-01 12:15:46 +00:00
ehofman
d9b79d6e3e whoops, my bad 2008-06-30 12:05:26 +00:00
ehofman
f35ab314bf Remove the last unnecessary alloc from the library 2008-06-30 12:00:40 +00:00
ehofman
dd77cd25f6 Some small updates; fix typo's and fix a small memory leak
Improve the documentation in README
2008-06-30 07:30:02 +00:00
mfranz
64a07de080 Erik HOFMAN: add documentation/changelog 2008-06-29 13:33:26 +00:00
mfranz
24071a3133 Erik HOFMAN: faster and better xmlgrep implementation 2008-06-29 13:08:24 +00:00
mfranz
b21cf2a22d add abort() 2008-06-19 17:25:14 +00:00
mfranz
f35ba3510f vim syntax files for *.ac and *.nas files. See nasal.vim for how to use them.
Note that for XML embedded Nasal you can type  :set ft=nasal  and back to
XML with  :set ft=xml   (ft ... filetype)
2008-06-07 17:21:47 +00:00
timoore
ebf2e996e9 Fixes for compiling with gcc 4.3
Include standard header files and qualify with std:: where needed.

Qualify various char parameters and variables with const.
2008-04-13 21:12:36 +00:00
curt
8b4f1f2d5e Add a telnet command parser to UGear so we can feed commands remotely to
be passed up to the UAS.
2008-04-04 22:34:19 +00:00
curt
fe41d33b4c Added autopilot target values to communications link.
Pass autopilot target values to LFSGlass display so they can be properly
displayed.
Fix a gps status display bug.
2008-04-04 06:15:05 +00:00
curt
78e6655002 Several updates to implement a sequenced/verified/check summed serial
command uplink on the same port we are receiving the telemetry data.
2008-03-30 05:34:40 +00:00
curt
817ba71a2e - UGsmooth now can send opengc packets directly rather than piping through
a running copy of FlightGear (no need to have FlightGear running on weaker
  powered groundstations.)

- Add a test for "valid" gps data.

- Pretty print gps coordinates in debug output.
2008-03-28 22:55:42 +00:00
mfranz
205da67313 final cosmetics (because I had posted the web-cvs link to the blender list/forum :-) 2008-03-10 16:31:02 +00:00
mfranz
435cd3ca8f - GPL license block
- new id separator
- drop debug message
- simplification & cleanup
2008-03-08 19:02:08 +00:00
mfranz
7ccdc1081a - improve Blender registry handling
- save each mesh in a different color
2008-03-07 17:09:11 +00:00
mfranz
40261787c2 minor progress bar fix 2008-03-06 10:53:05 +00:00
mfranz
580f65fcb2 uv_export_svg.py: don't group single-chunk objects; move id in front
uv_import_svg.py: reverse matrix multiplication; cosmetics
2008-03-06 10:48:28 +00:00
mfranz
615d5ef4d8 ... and do no longer assume that the separator is only one character ;-) 2008-03-05 18:21:45 +00:00
mfranz
898584e906 use SVG compliant id separator: _____ instead of # 2008-03-05 18:16:09 +00:00
mfranz
2fcae160a1 UV<->SVG exporter and importer: The importer loads an SVG file that was
saved before by the exporter. SVG editors like Inkscape can be used to
move the UV outlines around, to rotate and scale them.
2008-03-05 12:30:01 +00:00