IDL Trinkets
The Powerbook accelerometer package shows a neat way to get information from your Powerbook via IDL (check the links below for
MacBook code).
Instructions:
- Download the tarball and double-click on it to extract the motion folder.
- Start IDL in the motion folder.
- Read in the image (or use your own) and run the procedure:
IDL> im = readfits('im.fits')
IDL> motion, im
- Wiggle it (your Powerbook), just a little bit.
I deserve no credit at all for the C-code that queries the hardwear.
My contribution is a spawn command in a while loop. The source and executable came from the
level widget, and these guys
deserve credit for that.
|