⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 readme

📁 A very small LISP implementation with several packages and demo programs.
💻
字号:
29sep07abu(c) Software Lab. Alexander Burger         RC Flight Simulator         ===================The Pico Lisp RC Flight Simulator is a very simple toy simulator, allowing youto fly an airplane in a way similar to a radio controlled model plane.It is all implemented within the Pico Lisp system, so that no additionallibraries like OpenGL or GL4Java are needed. It may be regarded as a proof ofconcept, because a flight simulator is one of the least typical things to do inLisp.The plane is similar to the German WW-I aircraft Fokker "D-VII" (and a bit tothe British Sopwith Camel ;-). Though the user's position is that of a modelplane's pilot (i.e. viewing the plane from a fixed position), all parameterslike dimensions, mass, engine power and flight data are intended to be as closeas possible to a "real" Fokker D-VII. Unfortunately, some of these parametersare not known exactly, but it is a fun project anyway, and I hope it comesclose.The simulator supports two different kinds of user interface. The version in thestandard release uses a plain Xlib frontend. To use it, you'll have to build itonce:   $ (cd src; make x11)Then start the Pico Lisp server with   $ ./p dbg.l rcsim/main.l -main -goand then the Z3d-Client from another X-terminal   $ bin/z3dClient localhost 8080Then make sure that your keyboard focus is on the first X-terminal (where youstarted the simulator from, _not_ the Z3d-Client window).Hitting ENTER at the Pico Lisp prompt (the colon ':') will terminate thesimulation process and close the Z3d-Client window. As always, you can stop thePico Lisp servers with 'killall picolisp'.   The second version runs in an Applet in any Java-enabled browser.To run it   locally, please download and unpack the "picoJavaGUI.tgz" tarball. It   contains the Java applet GUI which is no longer part of the standard PicoLisp   release.   You can start the Pico Lisp server with      $ ./p rcsim/applet.main.l -main -go -wait   or (to get an interactive Pico Lisp command line) with      $ ./p dbg.l rcsim/main.l -main -go   and then point your browser to "http://localhost:8080".   If you don't have Pico Lisp installed, you might want to try the online version   at:      http://rcsim.software-lab.biz   (please take care not to use a proxy for that address)   In both cases, click onto the image to set the keyboard focus.The simulator runs in the background, so if it is started interactively (seeabove), the Lisp interpreter is fully available and lets you inspect or modifythe environment. For example: (show *Model)shows the current state of the model.In the Z3d-Version, terminal output is interlaced with the simulator's output.If you see no ':' prompt, it is helpful to type a single dot '.' and ENTER, toavoid terminating the interpreter:...0 %  0 km/h  0 m/s  1 m.-> NIL:The simulator is controlled by the following 10 keys:- The cursor (arrow) keys UP and DOWN control the elevator- The LEFT and RIGHT cursor keys control the combined rudder/ailerons- The HOME key sets full throttle (F8)- PAGE UP/DOWN increase/decrease the throttle (F7/F6)- The END key turns the engine off (F5)- INS/DEL zoom in/out (or F4/F3)For a first flight, just hit the HOME key as the plane sits waiting on therunway, and watch it accelerate. After some time, when it starts to jump a bitnervously, give a little up-elevator (the DOWN arrow key) to gain height. Thenhit the PAGE DOWN key once or twice to decrease the throttle, and cautiouslyexperiment with with the arrow keys.There is some rudimentary sound implemented. It is not intended to be realistic(the graphic isn't either ;-) but to give some audible feedback to the user. Itproduces a simple square wave sound, depending on the engine's thrust, theairspeed, the distance, and the Doppler effect.If you are using the Java/Applet version, you might simply click on the "Sound"checkbox. Be warned, however, that this induces additional load on the clientside, and doesn't sound very smooth. BTW, does anybody know of a better way toproduce continuous sound with variable frequency in a Java applet?In the Z3d-Client version, a console speaker interface is used, which givesbetter results. As the speaker can be accessed in Linux only from a virtualconsole (not from an X-terminal), log into a virtual console (typically tty1 ..tty6) _before_ you start the simulator, change to the installation directory,and run the simple tone server:   $ rcsim/toneWhen done, you can stop it with 'killall tone'.

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -