ROBOTC.net Blog  

ROBOTC News

Archive for October, 2010

BEST Competition Programming Templates

without comments

Hey all BEST Teams!

We’ve made a new library and sample program to help BEST teams up and running with using ROBOTC with their Cortex systems. This new template makes it really easy to customize your program for your robot without having to worry about loops, conditionals and variables too much. Here’s an example of some of the new functions.

  • ArcadeTwoWheelDrive(vexJSLeftV, vexJSLeftH, left, right);
    • Use this function to create a “arcade” (1 joystick) drive program. Pass 4 pieces of data to have the function do all the work for driving your robot.
      • 1st: MoveChannel – The joystick channel for forward and reverse.
      • 2nd: RotateChannel – The channel on the rotate port that controls left and right rotation. This value is mixed with the move channel.
      • 3rd:  leftMotor – The motor on the left side of the robot.
      • 4th:  rightMotor – The motor on the right side of the robot.
  • TankTwoWheelDrive(vexJSLeftV, vexJSRightV, left, right);
    • Use this function to create a “tank” (2 joystick) drive program. Pass 4 pieces of data to have the function do all the work for driving your robot.
      • 1st: MoveChannel – The joystick channel for “left” motor.
      • 2nd: RotateChannel – The joystick channel for “right” motor.
      • 3rd:  leftMotor – The motor on the left side of the robot.
      • 4th:  rightMotor – The motor on the right side of the robot.
  • MotorControlViaDigitalButtons(Btn7D, Btn7U, leftArm, -127,  +127,  0);
    • Use this function to control a motor via two digital buttons – Very customizable!
      • 1st:  Btn7D – The joystick button that controls speed decrease
      • 2nd: Btn7U – The joystick button that controls speed increase
      • 3rd: leftArm – The motor that is being controlled
      • 4th: -127 – The lowest value for the motor speed
      • 5th: +127 – The highest value for the motor speed
      • 6th: 0 – How fast to adjust the speed. 0 — fastest. 50 — 1.25 seconds to cover the compete range.

Download this new library and sample program today. To help you get started, we’ve written a “getting started” PDF that will help you get started with this library.

BEST Code Library V1
BEST Code Library “Getting Started

Written by Tim Friez

October 20th, 2010 at 2:37 pm

Posted in Cortex,PIC,VEX

Tagged with , , ,

ROBOTC for CORTEX & PIC 2.30 Available

without comments

The Robotics Academy is happy to announce the release of ROBOTC for Cortex and PIC 2.30. The Robotics Academy has done incredible amounts of testing and modifying to make the user’s experience with Cortex as seamless as possible. Numerous improvements have been made to the communication system from your computer to the Cortex over the direct USB link – Downloads are faster and more reliable. Upgrade your version of ROBOTC today!

ROBOTC for CORTEX & PIC Download Area

For the really curious, here’s the changelog:

Major Fixes:

  1. Now uses Master Firmware 2.6 and lots of improvements to significantly improve communication when downloading Firmware/User Programs. Users will have to upgrade Master Firmware and ROBOTC firmware before using Version 2.30.
  2. New ROBOTC Live Start Page – Based off of the ROBOTC.net Blog Feed.
  3. VEX Cortex firmware now includes “Cortex Default Code” behavior when initially downloaded. Sending a new program to the Cortex will erase this default code. Users can restore default code by reinstalling ROBOTC firmware or loading the program from the “Default Code” sample program folder.

Minor Fixes:

  1. No more silent failure when trying to download via serial cable and no response. Also enabled the new “Query1″ command that works with Game Controller and prints useful diagnostic information — it’s where the “silent” failure is caught.
  2. When “USB Wired Cable #1″ is selected in “Preferences -> Platform” blanks were being displayed. This has been corrected.
  3. Fix VEX PIC “autonomous” variable so that it reports the correct value. This fixes the PIC competition template.
  4. Legacy 75 MHz transmitters on VEX Cortex values for Ch 5 and 6 were reversed. This has been fixed.
  5. Fix some broken direct references to values rather than use of function call to calculate flash file system size and max number of files in flash.
  6. Correct definition of VEX firmware files — they were missing trailing “.BIN”. “Download last firmware file” menu command enhanced to show “NONE” if no firmware file has been previously downloaded and command is disabled. Improve error message when failed to load from disk a firmware file — message is now more explicit.

Written by Vu Nguyen

October 15th, 2010 at 10:17 am

Posted in Cortex,VEX

ROBOTC for Mindstorms 2.26 BETA Available

with 3 comments

We’ve just released ROBOTC for Mindstorms 2.26 BETA. Download it now!

This version fixes a few issues we’ve found and applies to both the NXT and TETRIX/FTC platforms. If you are using this version for FTC, please install this version.

Changelog:

  1. Added Xander’s driver library (version 1.6)
  2. Fixed ROBOTC behavior not to automatically disabled TETRIX motors in a low-voltage situation.
  3. Fixed incorrect “SizeOf” function.
  4. Disabled Bluetooth Debugging information in the “Debug Stream” Window.
  5. Fixed issue with “Registering” when doing a manual activation with ROBOTC.

Written by Vu Nguyen

October 4th, 2010 at 5:24 pm

Posted in NXT,Releases