* Franck M -- Saturday 24 June 2006 10:09:
> I have mix FlightGear with Matlab through the aerosim toolbox in order to
> put my own joystick and test my dynamic model. I am trying to deal with
> "zoom" mode into matlab (Nasal request into "my_aircraft-set.xml"). I manage
> to call a Nasal request "printf" [...]
There is no "printf" in Nasal. :-P
Of course, you can always make one:
printf = func(_...) { print(call(sprintf, _)) }
> and "view.decrease()". However it only
> works when I put the request into the keyboard.xml. I try to put the ligne
> code into "my_aircraft-set.xml" and launch a UDP socket with the right
> order, but it's not working...
Then you've put the wrong code there. It's quite common to forget th
<input> or <keyboard> group:
<PropertyList>
...
<input>
<keyboard>
<key n="4">
<name>Ctrl-D</name>
<desc>Boom.</desc>
<binding>
<command>nasal</command>
<script>controls.trigger(1)</script>
</binding>
</key>
<keyboard>
<input>
<PropertyList>
> By comparison I would like to do a request like when you load the c172 into
> flightgear, which print on DOS-screen "Here we are in C172" continuesly (I
> didn't manage to find this sentence in the code source of flightgear
And you won't. There's no such code in FlightGear AFAIK, or I would long
have ripped that out. Probably an aerosim feature.
m.
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
_______________________________________________
Flightgear-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/flightgear-users