Puck

App Image

 Download Latest Version 

This application uses:
Bugview Bugmotion 
   June 25th, 2008   ·   3240 views  /  2758 downloads

Admin Administrators: Bug Labs teamfinsprings
Collaborator Collaborators: Bug Labs teambcruskie, Bug Labs teamkgilmer

Category: Games/Fun    Maturity: Stable    API version: 1.4.3
Tags: BUGMotion  bugview  accelerometer 

Notes:


  1. You must be using the latest rootfs and the integration build of Dragonfly (>= 1.0.0.1621) for this application to work.

  2. The application is configured for the BUGview module in slot 0 (top left-hand side slot) and BUGmotion in slot 1 (top-right).




v1.0.6 01/27/2010

Fixed an orientation issue with pucks movement due to switching java apps back to slot 0/2. Also make puck move a bit faster. Please note LCD should be in slot 0 and Motion in slot 1


v1.0.1 06/27/2008

Made it scroll a bit more smoothly. AFAIK, we don’t have access to double buffering, like you do in Swing, so if anyone has any suggestions on how to make the ball scroll more smoothly, please share.


v1.0.0 06/26/2008:

First pass at using the accelerometer to move something around the screen when you tilt the bug. It’s a bit jerky right now, as I wasn’t sure how best to implement smooth scrolling. Once I’ve gotten that figured out I’d like to make it into a game, perhaps drawing inspiration from the balance games on the Wii Fit that you have to do during a fitness test (not the fancy ones you do in training).


Thanks to Angel for BUGLevel, an excelllent source of accelerometer insight, and Brian for his screen test app.


Download Download Latest Version

Version Date Uploaded by Notes  
Version 6 January 27th, 2010 bcruskie  Puck was a casualty of moving java apps back to... (more) Puck was a casualty of moving java apps back to Slot 0/2 in R1.4.0. I fudged some of the x y axis values to get it working correctly when the LCD is in slot 0 and motion is slot 1. Puck will move in the direction the BUG is tilted if you are holding according to the LCD desktop orientation. (collapse) download
Version 5 June 10th, 2009 bcruskie  Updated comments to link to the latest API doc on... (more) Updated comments to link to the latest API doc on the wiki and a link to the defect open for the setDelayMode = 0 issue (collapse) download
Version 4 October 20th, 2008 bcruskie  Puck now moves faster! The program now sets a custom... (more) Puck now moves faster! The program now sets a custom configuration through the Accelerometer API to speed things up. The config dumps to the concierge.log before and after the set. Left cfg.setDelayMode((byte) 0); commented out as it causes App to crash. (collapse) download
Version 3 October 16th, 2008 bcruskie  Cleaned up the UI when the App is stopped. Also... (more) Cleaned up the UI when the App is stopped. Also made some minor edits to the logging. (collapse) download
Version 2 June 27th, 2008 finsprings  (more) (collapse) download
Version 1 June 25th, 2008 finsprings  (more) (collapse) download

This application is licensed under the MIT license agreements.

Viewing Puck   Link

5 Comments

Comment_icon Login to add comment

jconnolly

Bug Labs teamjconnolly said on June 27th, 2008 07:21:46 AM

100% sweet

bcruskie

Bug Labs teambcruskie said on October 10th, 2008 03:18:58 PM

Hey finsprings, I've noticed that the PuckServiceTracker isn't stopping the app properly. So it leaves a dead app in the UI when it starts again (RC1.3) -Brian

bcruskie

Bug Labs teambcruskie said on October 16th, 2008 12:26:04 PM

Thanks for adding me as a collaborator! I fixed the issue.

aroman

Bug Labs teamaroman said on November 4th, 2008 09:38:00 AM

Please see bug 288. Also, in the puck application, you can set the service filter in the Activator to: String filter = "(|(objectClass=com.buglabs.bug.module.lcd.pub.IModuleDisplay)(|(objectClass=com.buglabs.bug.accelerometer.pub.IAccelerometerControl)(&(objectClass=com.buglabs.bug.accelerometer.pub.IAccelerometerSampleFeed)(Provider=com.buglabs.bug.module.motion.MotionModlet))))"; This will select the motion module's accelerometer instead of the LCD.

bcruskie

Bug Labs teambcruskie said on November 4th, 2008 10:43:17 AM

This explains why I would randomly see the app grab the lcd accelerometer. Thanks!