ROBOTC.net Blog  

ROBOTC News

Archive for the ‘Coding’ tag

Qualify to compete at VEX Worlds with our Virtual Programming Skills Challenge!

without comments

Robomatter and the REC Foundation are proud to announce the VEX and VEX IQ Programming Skills Challenge for Robot Virtual Worlds! Test your skills and qualify to compete at the 2019 VEX Worlds!

The two winners of the Robomatter sponsored VEX Turning Point – Programming Skills and VEX IQ Next Level – Programming Skills Robot Virtual World competition will receive an invitation to compete at the VEX World Championship April 24-27, 2019 (VEX Robotics Competition and VEX U) and April 28-30 (VEX IQ Challenge) at the Kentucky Expo Center in Louisville Kentucky.

Contest Rules:

  • Must be a registered RECF VEX team in the correct division (ie: high school students)
  • Must compete through CS2N.org and the latest version of ROBOTC + the RVW
  • Must include code as part of their submissions
  • Winning teams will be asked to verify their details with Robomatter and the RECF
  • Click here for the complete challenge rules and terms and conditions

 


 

VEX Robotics Competition Turning Point

VEX Robotics Competition Turning Point is played on a 12’x12’ square field. This simulation allows you to program in Robot Skills, Programming Skills, and VEX Competition mode as a single player. The object of the game is to attain a higher score than the opposing Alliance by Scoring Caps, Scoring Flags, and by Alliance Parking or Center Parking Robots on the Platforms.

Prize: The winner of this competition will receive an invitation to compete at the VEX Robotics Competition World Championship — April 24-27, 2019 at the Kentucky Expo Center in Louisville, Kentucky.

Click here to register (Must have, or create, a free CS2N account) »

Submission dates: September 18, 2018 — December 31, 2018

Winner announced: May 1, 2019

 


 

VEX IQ Challenge Next Level

VEX IQ Challenge Next Level is played on a 4’x8’ rectangular field. This simulation allows you to program for the Robot Skills Challenge, where one robot takes the field to score as many points as possible under driver control; and the Programming Skills Challenge, where one robot scores as many points as possible autonomously, without any driver inputs. The object of the game is to attain the highest score by Scoring Hubs in Building Zones, by Removing Hubs from the Hanging Structure, and by Hanging Robots at the end of the Match.

Prize: The winner of this competition will receive an invitation to compete at the VEX World Championship — April 28-30, 2019 at the Kentucky Expo Center in Louisville, Kentucky.

Click here to register (Must have, or create, a free CS2N account) »

Submission dates: September 18, 2018 — December 31, 2018

Winner announced: May 1, 2019

 

For more details and resources, visit http://robotc.net/recf/

Happy programming!

 

Written by Cara Friez-LeWinter

September 18th, 2018 at 4:18 pm

New Versions of Robot Virtual Worlds!

without comments

Blog - Update to RVW

The Robot Virtual Worlds team is very excited to announce the latest updates of several of our worlds. This release changes the process for logging in and tracking progress in Robot Virtual Worlds. Read below to find out more.

Updated worlds

Launching these worlds will now automatically log you in as a guest. If you want to log in with a local or CS2N account, click the “Log In” button in the upper left of the main window.

Launching these worlds will now automatically log you in as a guest. If you want to log in with a local or CS2N account, click the “Log Out” button in the main menu.

The log in window for Resolvers has been changed – the “Guest” tab is now the default tab that is opened when you launch the game.

Other worlds

  • Expedition Atlantis
  • Atlantis Prime
  • Curriculum Companion
  • All robotics competition worlds, such as Virtual VRC Starstruck

No changes have been made to the log in steps or screens for these worlds.

Let us know what you think of the new updates!

Written by Cara Friez-LeWinter

September 11th, 2018 at 12:11 pm

Congrats to our Robot Virtual Worlds Online Challenge Winners!

without comments

We are very excited to announce the winners of our Robot Virtual Worlds Online Challenge for both VEX EDR and VEX IQ! Winners of each competition received an invitation for their team to compete at VEX World Championship 2018 in Louisville, Kentucky.

VEX EDR In The Zone Virtual World Winner: Team 7110Z from Southlake, TX (pictured above receiving their award at VEX Worlds!)

VEX IQ Ringmaster Virtual World Winner: Team 31009A from Xi’an, China!

Congrats to both teams!! And look for the 2018-2019 challenge here soon!

Written by Cara Friez-LeWinter

May 11th, 2018 at 2:50 pm

ROBOTC for VEX Robotics 4.56 Available for Download!

without comments

ROBOTC 4-56 VEX
 

The ROBOTC Development Team is excited to make our latest update available to you, ROBOTC for VEX Robotics 4.56. This is primarily a maintenance release which contains many stability fixes. Keep reading for a full list of changes and improvements below.

Updates for all robot platforms:

  • When saving a C source file, you can now opt to keep a backup of the previous version of the file. This behavior can be enabled through the preferences.Sourcefile Backup
  • Under certain conditions, semaphores could be given to a task that had not unlocked it. This has been corrected.
  • Previously, the compiler would count both prototypes and actual function implementations separately, reducing the number of functions available to you. This has been corrected.

Updates specific to VEX IQ:

  • The display would incorrectly show that it the debugger was being used, when disconnected from the PC.
  • There was a mismatch between the amount of available variable memory. This could lead to unpredictable results due to stack corruption with very large programs. The amount has been corrected. Most users will be unaffected by this change. Users with programs that use a large amount of variables, should verify their programs still compile.
  • Support for future VEX IQ firmware changes.

Download ROBOTC for VEX Robotics 4.56 today and let us know what you think of the improvements!

Written by Jesse Flot

August 16th, 2017 at 3:17 pm

Download ROBOTC for LEGO MINDSTORMS 4.56!

without comments

ROBOTC 456
 

The ROBOTC Development Team is excited to make our latest update available to you, ROBOTC for LEGO MINDSTORMS 4.56. This is primarily a maintenance release which contains many stability fixes. Keep reading for a full list of changes and improvements below.

Updates for all robot platforms:

  • When saving a C source file, you can now opt to keep a backup of the previous version of the file. This behavior can be enabled through the preferences.
    Sourcefile Backup
  • Under certain conditions, semaphores could be given to a task that had not unlocked it. This has been corrected.
  • Previously, the compiler would count both prototypes and actual function implementations separately, reducing the number of functions available to you. This has been corrected.

Updates specific to the LEGO MINDSTORMS EV3:

  • The way text files are saved has been changed to prevent the “65000 temp files” issue that some users were seeing.
  • WiFi has been removed from the communications pane. This is unsupported and was left visible as an oversight.
  • Joystick control for the EV3 has been fixed.
  • The EV3 sound code was partially rewritten for stability reasons.

Updates specific to the LEGO MINDSTORMS NXT:

  • Operation Reset samples were not working correctly, this has been fixed.

Download ROBOTC for LEGO MINDSTORMS 4.56 today and let us know what you think of the improvements!

Written by Jesse Flot

August 16th, 2017 at 3:16 pm

Student POV: How ROBOTC Changed the Way we do Robotics

without comments

HOW ROBOTC

We, as a team from the Federal Institute of Sergipe (Aracaju, SE, Brazil), have started to meddle with robotics about half a year ago. After some hard work with the hardware and mechanical aspects of the build, we headed to the most crucial thing: the algorithm, intelligence itself. There, we’ve hit an obstacle. A considerable one.

“Talos”, the Robot

“Talos”, the Robot

First, we’ve tried to use the LEGO Mindstorms EV3 software, the one where you use blocks to build programs directly to the brick. That, proved very unsustainable as we move along. The code kept getting bigger, and more unclear to work by as it grew. As we’ve kept getting the needs for a clear code interpretation and source sharing, it was no longer an option.

We’ve then tried a couple other options, as the LeJOS and EV3DEV, but as we we’re implementing an Arduino Pro Mini and an Arduino UNO, we needed a better grasp on the protocols that runs between them. We’ve decided to use I2C and found out that both of the options didn’t have the tools needed to debug and test with. That along with the inconsistency (the robot just didn’t work for no reason 1 out of 20 times), have presented us with a challenge.

There were times when we just didn’t know if a software/framework with the tools we needed existed. We still had an option, we had to try ROBOTC.

We haven’t done it before on one fact: It was paid. But it had a 10-day trial, and we still had to try. And it was fantastic.

We could instantly try it out, it had a firmware of it’s own (with a 1-click install, which makes thing extra-practical) and a really smooth learning curve. An extensive documentation, a really broad community and many many tools to debug from. But does it have an I2C test utility? Yes. It has. The code became clearer, the problems we’re gone, we could share the code on Github, it was magical. It even has a couple plans of payment for teams and or students.

I’d suggest ROBOTC to every EV3/NXT user, it is simply the best all-together tool out there.

Arduino UNO on the bottom of the Robot

Arduino UNO on the bottom of the Robot

- Henrique Cunha

Written by Cara Friez-LeWinter

June 1st, 2017 at 8:07 am

The VEX and VEX IQ Programming Skills Challenge for Robot Virtual Worlds 2017

without comments

Robomatter, VEX Robotics, and the REC Foundation are excited to present low cost, high quality virtual competitions that enable students to test their problem solving and programming skills in the VEX Starstruck and VEX IQ Crossover Robot Virtual World Competitions. And, not only do these virtual competitions provide a great learning experience, you could also qualify for the 2017 VEX Worlds Championship!!
 

This Year’s Games

Both games simulate the single-player Robot Skills and Programming Skills modes of the physical Starstruck and Crossover competitions. However, only the Programming Skills modes of the Virtual simulations are awarded prizes. To participate in the competition, you must update your Robot Virtual World software.

 

starstruckflair

In the Starstruck Robot Virtual Worlds Competition, your goal is to score as many stars and cubes in your zones. You then must hang your robot on your hanging bar.

 

 

crossoverflair

For the Crossover Robot Virtual Worlds Competition, you must pick up the hexballs, score them in their colored scoring area, and then balance on the bridge.

 

Winners Qualify for VEX Worlds!

virtual-challenge-2017

The winners of the Robomatter sponsored VEX Starstruck and VEX IQ Crossover Virtual World competition will receive an invitation to the VEX World Championship April 19-25, 2017 at the Kentucky Expo Center in Louisville Kentucky!

Important Deadlines:

  • Submissions for both contests are due by January 11, 2017.
  • Winners will be announced by February 1, 2017

To learn more about the VEX and VEX IQ Programming Skills Challenge for Robot Virtual Worlds, visit www.robotc.net/recf and visit www.cs2n.org/competitions to sign up!

Cool Project: VEX IQ Smart Radio and iOS

without comments

Cool Project - Smart Radio Blog
Our friend, Simon Burfield, put together a fantastic tutorial on how to get the your VEX IQ brain transferring data with your bluetooth enabled smartphone using the VEX Smart Radio and ROBOTC. Who doesn’t want to control their VEX IQ with a smartphone?!?!

And if you were at VEX Worlds 2016, you might have seen the VEX IQ Smart Radio in action with Simon’s robots. Check out a preview below:

 

To get started, you will need the following:

  • An iOS device with xcode installed
  • A way to run ROBOTC 4.5 +
  • The VEX firmware update program

The following video tutorial and steps below will guide you through the process:

Steps

1) Install the VEX Smart Radio firmware on to the brain
2) Enable Smart Radio in ROBOTC
3) Install the RobotC Smart Radio firmware on to the brain
4) Download the code https://github.com/burf2000/VEXIQ_iOS_ROBOTC
5) Plug a motor in to port 8, a Touch LED in to port 2
6) Install the ROBOTC (BT Demo) program on to the brick
7) Disconnect the brain from the PC
8) Find your Smart Radio ID and remember it (mine was 7436)
9) Run the ROBOTC program on the brain (remember not to be connected via USB)
10) Load code project up and deploy to a iOS device that supports Bluetooth LE
11) Enter your Smart Radio ID in to the App and hit connect

Once connected you should be able to control the motor and the LED!

You can find the original code by James Pearman here. And this is Simon’s code shown in the video tutorial.

Have questions? Head over to our ROBOTC VEX IQ Forum and we can help you out.

Happy Programming!

Do you have a cool ROBOTC project you want to share with the world? If so, send us an email at socialmedia@robomatter.com and we’ll post it on our blog and social media pages!

Written by Cara Friez-LeWinter

May 18th, 2016 at 6:00 am

ROBOTC for VEX Robotics 4.53 Preview Available Today!

without comments

ROBOTC 4-53 VEX

ROBOTC for VEX Robotics 4.53 preview is out and it sports a myriad of awesome new features that we’re very excited about! A full list of changes and improvements appear below, but here are the highlights:

Create Graphs from your Datalogs

Datalog Graph

Want to know what running your robot into a wall looks like to your accelerometer? Curious about how ambient light intensity varies throughout the day? Datalogging now supports (live) plotting of incoming data gathered on the robot brain. Science experiments involving sensor and motor data can be displayed. You can easily find out by gathering the data and having ROBOTC plot the data for you, as it comes in.

Datalog Graphical

Datalogging is no longer restricted to just Full ROBOTC, we’ve added easy to use blocks that allow you to access the same functionality in a simple manner.

Additionally, logged data can even be exported for further analysis in a spreadsheet application of your choice.

 

ROBOTC Graphical Variable Support

Variable Support

You can now use variables in ROBOTC Graphical, as well as perform various operations on them. You can add, subtract, divide, multiple, whatever your program requires. You can use variables in loops, motor blocks, you name it!

 

ROBOTC Graphical Break and Continue

Continue Break

We’ve added two new program flow blocks, break and continue. This was a much requested feature from our more advanced users of ROBOTC Graphical. You can now create more complex programs without creating work-arounds or having to switch to ROBOTC Full.

 

Beta Channel Access

Use Beta Builds

Want to have a front row seat when it comes to upcoming features in ROBOTC? Subscribe to the beta channel through ROBOTC’s preference menu and you will be notified when a preview build (such as this one), is released. Try out new and exciting features before we release them to the general public and provide us with feedback. Help make ROBOTC better!

 

Other changes and bug fixes

New features – VEX

  • You can control an LED on the VEX EDR from Graphical and Natural Language using the new setLED block or command.

Changes and Improvements – General

  • The default colors in the Assembly window (F9) have new defaults for increased readability.
  • Function tooltips have been revised and corrected where applicable.
  • License error messages have been improved. A short explanation of the error codes is now provided.
  • #info has been added to the list of support #pragma statements, such as #error and #warn
  • The start and stop buttons on the datalogging control have been merged into a single button.
  • Deleting a file from the File Utility was not possible, this has been fixed.
  • We’ve made some visual changes to ROBOTC Graphical including new colours for enhanced readability.
  • Internal improvements to the datalogging system have been made that resolve possible data corruption and inability to disable polling for a specific data series.
  • Saving a New User Model in the Motors and Sensor Setup has been fixed.
  • Various float conversion related issues have been fixed.
  • NaN (Not a Number) detection has been fixed.
  • Sscanf with more than 7 arguments could crash the VM, this has been fixed.
  • Overloaded deprecated function no longer cause warnings.
  • A discrepancy between the compiler and VM regarding the maximum number of tasks has been fixed.
  • An issue with ROBOTC crashing due to a recursive macro has been addressed.
  • The RVW package manager now shows the correct informational icon.
  • Opening the RVW package manager no longer causes an exception under certain circumstances.
  • An issue with the debugStream window background refresh causing a hang when communications with the robot was lost, has been remedied.
  • The Program Debug window no longer crops the status line.
  • You can now use displayInverseString() in combination with a char *.
  • drawInvertRect and drawInvertEllipse were not deprecated correctly, this has been fixed.

Changes and Improvements – VEX

  • The VexIQ LCD screen has been added to the #debuggerWindows #pragma.
  • A bug in the macro parser prevented the use of the VEX EDR platform when a PLTW license was active. This has been fixed.
  • An issue with debugging and using sscanf on the VEX IQ has been addressed.
  • VEX IQ getGyroRate and getGyroRateFloat return incorrect values, this has been fixed.
  • Starting a new task on the VEX EDR no longer clears the screen.
  • Using drawTextCenteredInUserScreenArea function will no longer throw an exception on the VEX IQ.
  • An issue with the start of flash file system not showing correctly in communication debug message has been fixed.
  • The VEX EDR competition template now sets the platform correctly.

Download ROBOTC for VEX Robotics 4.53 preview here!

And let us know what you think of the new updates. Happy Programming!

Written by Xander Soldaat

March 29th, 2016 at 6:20 am

ROBOTC for MINDSTORMS 4.53 Preview Available Now!

without comments

ROBOTC 4-53
 

ROBOTC for MINDSTORMS 4.53 preview is out and it sports a myriad of awesome new features that we’re very excited about! A full list of changes and improvements appear below, but here are the highlights:

 

Create Graphs from your Datalogs

Datalog Graph

Want to know what running your robot into a wall looks like to your accelerometer? Curious about how ambient light intensity varies throughout the day? Datalogging now supports (live) plotting of incoming data gathered on the robot brain. Science experiments involving sensor and motor data can be displayed. You can easily find out by gathering the data and having ROBOTC plot the data for you, as it comes in.

Datalog Graphical

Datalogging is no longer restricted to just Full ROBOTC, we’ve added easy to use blocks that allow you to access the same functionality in a simple manner.

Additionally, logged data can even be exported for further analysis in a spreadsheet application of your choice.

 

ROBOTC Graphical Variable Support

Variable Support

You can now use variables in ROBOTC Graphical, as well as perform various operations on them. You can add, subtract, divide, multiple, whatever your program requires. You can use variables in loops, motor blocks, you name it!

 

ROBOTC Graphical Break and Continue

Continue Break

We’ve added two new program flow blocks, break and continue. This was a much requested feature from our more advanced users of ROBOTC Graphical. You can now create more complex programs without creating work-arounds or having to switch to ROBOTC Full.

 

Beta Channel Access

Use Beta Builds

Want to have a front row seat when it comes to upcoming features in ROBOTC? Subscribe to the beta channel through ROBOTC’s preference menu and you will be notified when a preview build (such as this one), is released. Try out new and exciting features before we release them to the general public and provide us with feedback. Help make ROBOTC better!

 

Other changes and bug fixes

New features – MINDSTORMS

 

  • Battery monitoring on the EV3 through the nImmediateBatteryLevel and nAvgBatteryLevel intrinsic variables has been added

Changes and Improvements – General

 

  • The default colors in the Assembly window (F9) have new defaults for increased readability.
  • Function tooltips have been revised and corrected where applicable.
  • License error messages have been improved. A short explanation of the error codes is now provided.
  • #info has been added to the list of support #pragma statements, such as #error and #warn
  • The start and stop buttons on the datalogging control have been merged into a single button.
  • Deleting a file from the File Utility was not possible, this has been fixed.
  • We’ve made some visual changes to ROBOTC Graphical including new colours for enhanced readability.
  • Internal improvements to the datalogging system have been made that resolve possible data corruption and inability to disable polling for a specific data series.
  • Saving a New User Model in the Motors and Sensor Setup has been fixed.
  • Various float conversion related issues have been fixed.
  • NaN (Not a Number) detection has been fixed.
  • Sscanf with more than 7 arguments could crash the VM, this has been fixed.
  • Overloaded deprecated function no longer cause warnings.
  • A discrepancy between the compiler and VM regarding the maximum number of tasks has been fixed.
  • An issue with ROBOTC crashing due to a recursive macro has been addressed.
  • The RVW package manager now shows the correct informational icon.
  • Opening the RVW package manager no longer causes an exception under certain circumstances.
  • An issue with the debugStream window background refresh causing a hang when communications with the robot was lost, has been remedied.
  • The Program Debug window no longer crops the status line.
  • You can now use displayInverseString() in combination with a char *.
  • drawInvertRect and drawInvertEllipse were not deprecated correctly, this has been fixed.

Changes and Improvements – MINDSTORMS

 

  • The original LEGO firmware file operations have been removed, their functionality has been superseded by ROBOTC file operations.
  • EV3 specific datalogging functions have been marked as obsolete. Users should use the new datalogging functions.
  • Restrictions on the file downloading locations on the EV3 have been relaxed a little.
  • Opening the File Utility on the EV3 will create the rc and rc-data folders, if they don’t already exist.
  • Playing a sound file from inside ROBOTC’s on-brick program folder is easier. It will check if a file with that name exists in the rc folder, before checking the built-in sounds folder.
  • A memory leak in the EV3 connection handling has been fixed; disconnecting an EV3 while the debugger was running would eventually exhaust all program memory.
  • Running a motor with a specified encoder count of 0 on the EV3 would produce unpredictable results, this has been fixed.
  • An issue with reading data from the NXT Sonar sensor in the IDE has been fixed.

Download ROBOTC 4.53 preview here!

And let us know what you think of the new updates. Happy Programming!

Written by Xander Soldaat

March 29th, 2016 at 6:15 am