

Presently, this example is configured to work with the dIMU sensor from Dexter Industries. You use one of the first four lines to tell the program which gyro sensor you have.Now consider the following code fragment that you see in your example program:.If you see (among other errors): **Severe*:Couldn’t open ‘#include’ file ‘segway-driver-lv.h, then the files in the zipped archive were not successfully unzipped to a single folder.If you see (among other errors): **Severe*:Couldn’t open ‘#include’ file ‘drivers/DIMU-driver.h or MICC-driver.h, or similar, this means that the driver suite is not correctly installed.If this gives errors, this may indicate that you did not correctly follow the preparation steps. Proceed to the next step if there are no errors. (This is in the folder you unzipped the downloaded archive to). Getting started: Balancing for the first time:īefore moving on to more advanced programs, we’ll first configure and run a simple program that will make the Segway balance and just stay in the same place. Segway Driver and Example code (Unzip all files in there to one folder on your computer)Ģ.

RobotC third party driver suite, version 3.1.1 or higher (Install as per instructions on that site!).
#Robotc nxt update#
#Robotc nxt how to#
This tutorial will show you how to use and modify RobotC program code to create a working LEGO NXT Segway that you can customize as you like.
