dyadica.net

Fun and Games in the Dyadic Sea

Posts Tagged ‘Dampened COG’

permalink image comments image
Wednesday, 15 July '09: Dampened and Standard COG

A bit of history: Inspired by endquotes WPF implementation of COG I developed an equivalent system for WiimoteLib that provides  facility for Dampened COG output. As stated, I find the two systems can be used to compliment each other greatly depending upon the desired application requirement. To me the next obvious step was to group both of the outputs together as two available types under the single banner CenterOfGravity.

Using the format of the Wiimote Test application, once complete this instruction will enable access to each COG output as follows:

// Standard COG
lblCOG.Text = ws.BalanceBoardState.CenterOfGravity.Standard.ToString();
// Dampened COG
lblDampenedCOG.Text = ws.BalanceBoardState.CenterOfGravity.Dampened.ToString();

Before you start this instruction assumes use of a raw copy of WiimoteLib 1.7 and have looked at the Adding Dampened COG to WiimoteLib instruction.

Here is how its done: Read..

Tags: , , , , , , ,
permalink image comments image
Tuesday, 14 July '09: Adding Dampened COG to WiimoteLib

Inspired by endquotes WPF implementation of COG I have developed an equivalent system for WiimoteLib that provides the library with facility for Dampened COG output. I find the two systems can be used to compliment each other greatly depending upon the desired application requirement. Before you start this instruction assumes use of a raw copy of WiimoteLib 1.7

Here is how its done:

Open up Data Types.cs and within the public struct BalanceBoardState add the following blocks of code: Read..

Tags: , , , , , , ,

poll tags

css | xhtml | dyadica.net © admin 2010 | powered: wordpress | fuel: ps-wii-elite | top | sign-up