Is any one using RobotC for the competition?
We are trying to use the template and we can not get the user control portion to run.
Does anyone have any working examples we could try?
Thanks,
Jon T
VRC 177
Is any one using RobotC for the competition?
We are trying to use the template and we can not get the user control portion to run.
Does anyone have any working examples we could try?
Thanks,
Jon T
VRC 177
I too have tried to get the RobotC template to work. I haven’t been able to figure out how to get autonomous or the user control mode to work. Downloaded both the RobotC firmware and the Master code v8.
Downloading a new file works…but not the competition template.
Well it was the Master code v8 that was our problem. Both autonomous and user control now work.
For Robot C version 1.7 we had to comment out most of what was in the template since we don’t have an lcd screen.
Does anyone have an lcd screen?
Jon T
VRC 177
What exactly do you mean by lcd screen? Like one of these?
We are using RobotC but our robots aren’t exactly at the programming stage just yet.
As I recall from last year, the competition template had several errors which needed to be fixed before we were able to use it. The main problems were StartTask and StopTask as well as the bIfiAutonomousPhase variable.
The only problem last year for us (I know a lot of other people had this problem to) was that the usercontrol period needed to be set to 255 otherwise it timed out to early
Our team also is having problems getting programs to run on the new vex template (as well as the old competition template) I don’t believe the LCD portion of the code affects your robot since its just sending signals to nothing… When I run the debug with VEXnet it remains in the main task and doesn’t start the Autonomous or UserControlled portions of the code. It says VEXnet is disabled in the Global Variables (and that there is no controller connected) even though there are green lights on both the VEXnet transmitter and receiver.
Do you know what we need to fix the bIfiAutonoous Phase variable?
bIfiAutonomous Phase variable is different for VEXnet Systems. Are you running with a VEXnet ?
New RobotC templates have been posted here:
http://www.robotc.net/forums/viewtopic.php?f=11&t=1881
I haven’t tried them yet, but hopefully will in the next couple days.
Success!!!
We were able to install VEXNet and get Autonomous and Driver control to work last night.
We installed the VEX WiFi Master Code Ver 8 from here:
http://www.vexrobotics.com/vex-robotics-downloads.shtml
We then downloaded and installed Vex Competition Includes.c and the Vex Competition Template.c into RobotC v 1.7 from this thread:
We then updated VEX User Code firmware with the latest version found in RobotC v 1.7.
Next we added our autonomous and driver control to the new competition template and downloaded it to the robot.
Next we turned the VEX off and on.
We installed the cable from the Vex Competition switch.
Using the competion switch toggle between autonomous & operator control mode and enable/disable the modes.
We did find that you had to run autonomous (at least for a short time) to run driver control.](ROBOTC)
We have updated ROBOTC to address this issue. It now contains the new VEXnet-compatible competition templates. Please do the following:
http://www.robotc.net/downloads/ROBOTCforIFI_197_Beta.exe
Uninstall ROBOTC 1.70
Install ROBOTC 1.97
Download Master Firmware
Download User Firmware
Try a Sample Program
OK, so I uninstalled RobotC 1.70 and installed the newer version on my computer. I loaded the Master Code and then the User Code and downloaded a sample program with the tether cable and VEXnet not hooked up. It doesn’t work and when I try to load on the new competition template it still doesn’t work. The output says its in “idle state” and the bVEXnetEnabled is still false, even though I am loading and debugging via the VEXnet Controller. I did the linking and the controllers are connected (and the code works b/c its fine with the RC crystals). Help would be nice…
Download Master Firmware is not an option in the Robot menu. At least on my installation of 1.97.
Go to Window/Menu Level and turn on Expert. Then go back to Robot and it will be there.
Thanks, this is my first year with VEX and I’m trying to learn all the “secret sauce”. I must have had expert on in 1.7 or the default changed.
Do you have the VEXnet Competition Switch? You have to have it for the competition template to work.
Is the VEXnet light green?
I am getting really confused with all the possible permutations and combinations of master codes, VexNet/crystal etc. In New Zealand and I am sure elsewhere we are seeing people with and without VexNet and different versions of RobotC. Trying to support these people is becomming a nightmare.
Please could a simple table be produced on the Wiki showing what version should be used with what (with embedded links to the whats). I would start it but I am sure that my confusion would produce errors.
Am I correct in assuming that the latest version of RobotC cannot be used without VexNet as the master codes on IFI inplies that is the case.
Also the downloads section says “to be used with MPLAB only” for all the master files that are not VexNet. This raises thje question of 'where do I get the master code for RobotC"?
As of yesterday, the latest files for Robotc (built into Version 1.97) were
IFI Master CPU Firmware:
VEX_MASTER_V9.bin for NON VEXnet
and
VEX_WiFi_MASTER_V8.BIN for VEXnet
Firmware:
VEX VM0785.hex
As of today IFI has updated the Downloads page and changed the names from WiFi to VEXnet, also the Master Code is version 9 to prevent any confusion from earlier releases.
So use:
VEXnet Master Code ver 9
From the download page.
OK, so I loaded the Master Firmware and such (the VEXnet versions) and used the competition switch and field to try run the bot. Unfortunately now the transmitter when turned on has one flashing green light (I think its the VEXnet one), it doesn’t even flash yellow any more. I realize that its not a RobotC thing but when we tried using the competition switch it did that.