Saturday, August 29, 2009

Interger Blocks in NXT-G 2.0

Steve Hassenplug over at TeamHassenplug.org has found a solution to using Interger programming blocks from NXT-G 1.x software in the new NXT-G 2.0 software. NXT-G 2.0 uses Floating Point math blocks unlike previous versions of the software, however Interger blocks are also installed but not available in the programming palletes. First of all, Whats the difference?.. Read On:

Interger Calculations

- E.g. 5, 10, 100, 5567

- Round Number results

- No decimal points

- NXT-G 1.0/1.1


Floating Point Calculations

- E.g. 5.97667, 9547.9767,

- Decimal points

- Large numbers that cannot be represented as intergers

- NXT-G 2.0

Quoting TeamHassenplug:

To add them (Interger Maths Blocks) to a pallet, simply create an empty file in the BlockRegistry directory, in the pallet sub-directory, with the name of the block and a .txt extension.


Ex: [LEGO MINDSTORMS
directory]\engine\EditorVIs\BlockRegistry\Data\Numeric Operations.txt


The list of available blocks is located in: [LEGO MINDSTORMS
directory]\engine\vi.lib\LEGO\Blocks


--> Steve Hassenplug's Solution

No comments: