Puck

App Image

 Download Latest Version 

This application uses:
Bugview Bugmotion 
   June 25th, 2008   ·   3839 views  /  3494 downloads

Admin Administrators: finsprings
Collaborator Collaborators: bcruskie, 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

7 Comments

Comment_icon Login to add comment

jconnolly

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

100% sweet

bcruskie

bcruskie 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

bcruskie said on October 16th, 2008 12:26:04 PM

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

aroman

aroman 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

bcruskie said on November 4th, 2008 10:43:17 AM

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

UGG01

UGG01 said on January 6th, 2012 02:28:07 AM

Coach Outlet Zhang original washed his hands, to help Chen Zhen bags son, while saying: But Zaikuzailei, can not no wolf. Coach Outlet Store Batu said, if there is no wolves, horses, quality will drop. There is no wolf, horse will get fat and lazy, could run. Coach Outlet Online In the world, Mongolian horse already short, if no greater speed and endurance, Mongolian horse to sell at good prices, the army can not be used as cavalry horses had. Coach Factory Outlet Also, if there is no wolf, the development of the fast horses. Coach Factory Online Think about it, a group of horse horse horse a hundred a year increase, if the foal can survive most, a group of horses twenty or thirty per cent a year, plus the annual increase in reach reproductive age little mare, foal higher proportion of the increase. Coach Factory This three or four years down the group will double the number of horses. Under normal circumstances, to grow to four or five horses to sell, then a large number of the following four or five horses can only be reared. Coach Factory Outlet Online The horses are the most damaged pasture animals, Wuliji that in addition to ground squirrel rabbits, horses are the largest grassland saboteurs. Coach Outlet Store Online Mongolian big appetite, a horse chomps dozens of hundreds of sheep grass. Now grab the horses and sheep herders have too pasture, the horses if the audience uncontrolled open development, so does not take many years, cattle and sheep on the grass did not eat, the amount will gradually desertified grassland Lun ... ... Coach Poppy Zhen Chen interrupted: the history books say, the ancient Mongolian grasslands, few people more than horses, set off when a cavalry with forty-five five or six horses, switching the ride can be on the line thousands of miles. Cheap Coach Purses Therefore, the Mongolian cavalry is the original motorized force for playing blitz. Mongolian and more, you can also use the injury Madang rations, hungry to eat horse meat, horse blood thirsty to drink, have no need of even the back. Coach Purses Outlet Coach Purses