Search found 10 matches
- Wed Jul 23, 2014 4:25 pm
- Forum: So, what can you actually DO with newLISP?
- Topic: newLISP and my AR.Drone 2.0
- Replies: 2
- Views: 5785
Re: newLISP and my AR.Drone 2.0
I actually bought a "used" AR.Drone. It was in a pretty good shape and I could test it before I bought it.
- Sat Jul 12, 2014 4:06 pm
- Forum: So, what can you actually DO with newLISP?
- Topic: newLISP and my AR.Drone 2.0
- Replies: 2
- Views: 5785
newLISP and my AR.Drone 2.0
I wrote a few functions that allow to control the Parrot AR.Drone 2.0 with newLisp.
You can find the code here: https://bitbucket.org/StefanLiebig/dragondrone
Any kind of feedback is welcome!
Tschüß,
Stefan
You can find the code here: https://bitbucket.org/StefanLiebig/dragondrone
Any kind of feedback is welcome!
Tschüß,
Stefan
- Mon Jun 23, 2014 7:40 pm
- Forum: newLISP in the real world
- Topic: Getting keyboard "key events"
- Replies: 2
- Views: 2690
Re: Getting keyboard "key events"
Thanks! It works with ncurses: ;;; ;;; simplified newlisp ncurses example to get key codes ;;; ;;; import functions from ncurses lib (set 'ncfuncs '( "initscr" "endwin" "getch" "cbreak" "keypad")) (define (import-ncurses) (dolist (x ncfuncs ) (import "/usr/lib/libncurses.dylib" x))) ;;; Newlisp-Ncur...
- Sun Jun 22, 2014 6:51 pm
- Forum: newLISP in the real world
- Topic: Getting keyboard "key events"
- Replies: 2
- Views: 2690
Getting keyboard "key events"
For a simple "game" (console based) I need to get the keyboard "key events" from my Mac. (read-key) seems to be a good choice, but unfortunately some keys (or modified keys: shift, ..) do require following (read-key)s. Worse on Mac is that "cursor up" results in three (read-key)s returning: 27 91 65...
- Sun May 25, 2014 4:46 pm
- Forum: newLISP and the O.S.
- Topic: UDP example client does not start
- Replies: 2
- Views: 4521
Re: UDP example client does not start
Yep, that's the reason.
Thanks,
Stefan
Thanks,
Stefan
- Fri May 23, 2014 6:03 pm
- Forum: newLISP and the O.S.
- Topic: UDP example client does not start
- Replies: 2
- Views: 4521
UDP example client does not start
I am currently playing with UDP (no experience with it yet). For getting things started I tried the example udp client and server from http://www.newlisp.org/CodePatterns.html#toc-13 . Server started, but the client reports an error: newLISP v.10.6.0 64-bit on OSX IPv4/6 UTF-8 libffi, options: newli...
- Wed May 21, 2014 9:02 pm
- Forum: newLISP and the O.S.
- Topic: (flt -0.8) on OS X and Win
- Replies: 5
- Views: 5768
Re: (flt -0.8) on OS X and Win
Right! The (add 256) in bit 9 will be set for 64-bit (changeable at runtime) versions (add 256) (http://www.newlisp.org/downloads/newlisp_manual.html#sys-info) could have told me this. I really did not know how to interpret it. ps: Currently I am glad that it is a signed integer. :-) Thanks, Stefan
- Wed May 21, 2014 6:11 pm
- Forum: newLISP and the O.S.
- Topic: (flt -0.8) on OS X and Win
- Replies: 5
- Views: 5768
Re: (flt -0.8) on OS X and Win
After browsing the good documentation I found ".init.lsp" for automating this: ;; set local to the "C" locale on UTF8 (if utf8 (set-locale "C")) ;; test for 32-bit-ness (define (bit32?) (= (& (sys-info -1) (<< 1 9)))) ;; define flt32 depending on the bit-ness (if (bit32?) (constant 'flt32 flt) (defi...
- Tue May 20, 2014 8:00 pm
- Forum: newLISP and the O.S.
- Topic: (flt -0.8) on OS X and Win
- Replies: 5
- Views: 5768
Re: (flt -0.8) on OS X and Win
Thanks for the explanation and the code snippet for the integer representation. Although, I am not really sure what is happening there. "first" of the result of "unpack" - what is unpack in this case returning? However, the locale dependency scares me a little bit. Should the parsing of literals not...
- Tue May 20, 2014 4:22 pm
- Forum: newLISP and the O.S.
- Topic: (flt -0.8) on OS X and Win
- Replies: 5
- Views: 5768
(flt -0.8) on OS X and Win
I need the integer representation of single-precision IEEE-754 floating-point value. My home machine is a Mac: newLISP v.10.6.0 64-bit on OSX IPv4/6 UTF-8 libffi, options: newlisp -h > (flt -0.8) 0 On my machine at work I get: newLISP v.10.6.0 32-bit on Win32 IPv4/6 libffi, options: newlisp -h > (fl...