8
CSCI 394 © 2007 JW Ryder 1 NXC Information Not eXactly C very similar to NQC Currently has more NXT API supported than LeJOS NXJ 02-05-07 Uses NBC for compiles and download Uses underlying Mindstorms firmware version 1.02 or newer - Ours is 1.03

CSCI 394© 2007 JW Ryder1 NXC Information Not eXactly C very similar to NQC Currently has more NXT API supported than LeJOS NXJ 02-05-07 Uses

Embed Size (px)

Citation preview

Page 1: CSCI 394© 2007 JW Ryder1 NXC Information  Not eXactly C  very similar to NQC  Currently has more NXT API supported than LeJOS NXJ  02-05-07  Uses

CSCI 394 © 2007 JW Ryder 1

NXC Information Not eXactly C

very similar to NQC Currently has more NXT API supported than

LeJOS NXJ02-05-07

Uses NBC for compiles and download Uses underlying Mindstorms firmware version

1.02 or newer - Ours is 1.03

Page 2: CSCI 394© 2007 JW Ryder1 NXC Information  Not eXactly C  very similar to NQC  Currently has more NXT API supported than LeJOS NXJ  02-05-07  Uses

CSCI 394 © 2007 JW Ryder 2

NXC Setup and Install Copy NXC folder to c:\

On a DVD handed out in class Add folder containing NBC.exe to PATH

c:\NXC\NBC Create a nxcprojects folder as a sibling to

your javaprojects folder

Page 3: CSCI 394© 2007 JW Ryder1 NXC Information  Not eXactly C  very similar to NQC  Currently has more NXT API supported than LeJOS NXJ  02-05-07  Uses

CSCI 394 © 2007 JW Ryder 3

NXC/NBC Documentation Not eXactly C (NXC) Programmer's Guide

c:\NXC\NXCDocs\NXC_Guide.pdf Programming Lego Robots using NQC

c:\NXC\NXCDocs\NQC_Tutorial.pdf NBC Manual

c:\NXC\NBC\NBCDocs\NBCManual\NBC Manual.htm

Page 4: CSCI 394© 2007 JW Ryder1 NXC Information  Not eXactly C  very similar to NQC  Currently has more NXT API supported than LeJOS NXJ  02-05-07  Uses

CSCI 394 © 2007 JW Ryder 4

BricxCC for NXT Information Early release v3.3, 01-29-2007 Copy BricxCC folder to c:\

original *.zip file in here Create shortcut on desktop Read the ReadMe file

Page 5: CSCI 394© 2007 JW Ryder1 NXC Information  Not eXactly C  very similar to NQC  Currently has more NXT API supported than LeJOS NXJ  02-05-07  Uses

CSCI 394 © 2007 JW Ryder 5

BricxCC Setup Edit, Preferences

Compiler Common: preferred language NXC NBC/NXC

Include: .;c:\NXC\NXB EXE: .;c:\NXC\NXB

Page 6: CSCI 394© 2007 JW Ryder1 NXC Information  Not eXactly C  very similar to NQC  Currently has more NXT API supported than LeJOS NXJ  02-05-07  Uses

CSCI 394 © 2007 JW Ryder 6

Compile and Download F5 is compile F6 is download Notice program number next to F5 and F6

commands Program location to load on NXT brick

Page 7: CSCI 394© 2007 JW Ryder1 NXC Information  Not eXactly C  very similar to NQC  Currently has more NXT API supported than LeJOS NXJ  02-05-07  Uses

CSCI 394 © 2007 JW Ryder 7

Explore the NXT NeXTExplorer (GUI) Find it in the c:\BricxCC folder Use to download sound files and other things

Page 8: CSCI 394© 2007 JW Ryder1 NXC Information  Not eXactly C  very similar to NQC  Currently has more NXT API supported than LeJOS NXJ  02-05-07  Uses

CSCI 394 © 2007 JW Ryder 8

Samples Good ones in the NXCSamples folder Print and study “Alpha Rex” code