- #ROBOTC TUTORIAL VEX HOW TO#
- #ROBOTC TUTORIAL VEX UPDATE#
- #ROBOTC TUTORIAL VEX DRIVER#
- #ROBOTC TUTORIAL VEX ARCHIVE#
Now that you’ve successfully got your robot up and running, customize the code to make the robot move around.
#ROBOTC TUTORIAL VEX HOW TO#
For more explanation on how to control your Segway, proceed to the next section.The main task in the most basic Segway program This basic set of lines will form the core structure of your future programs based on this code. When you’re done clapping your hands in excitement, have a look at the main task of your code.If you use the IMU from Dexter Industries or Mindsensors or the Microinfinity Cruizcore, just hold your Segway upright and start the program.If you configured the program to use the HiTechnic Gyro, follow the on-screen instructions.Start the program on the NXT brick (Make sure your batteries are charged!).When you’re done, press F5 (Compile and Download Program).The large RCX tyres are 84 mm in diameter. The default is 42 mm for standard NXT 2.0 tyres. Use your_wheel_diameter to let your code account for the robot’s wheel diameter.Plug your sensor cable into this port, or replace S2 by S1, S3 or S4. tSensors Gyro = S2 specifies which sensor port you connect your gyro sensor to.If you use the HiTechnic, Mindsensors or Microinifnity sensor, simply comment out the one from Dexter Industries and uncomment your sensor. 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:.
#ROBOTC TUTORIAL VEX ARCHIVE#
#ROBOTC TUTORIAL VEX DRIVER#
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!).