
10-04-2010, 22:38
|
 |
 |
Trapped under a pile of MECANUMS :P
AKA: @doctorfogarty
FTC #11444 (Garnet Squadron) & FRC#1102 (M'Aiken Magic)
Team Role: Mentor
|
|
Join Date: Aug 2009
Rookie Year: 2006
Location: SC
Posts: 1,573
|
|
|
Re: [FTC]: RobotC Issue
Quote:
Originally Posted by Michael Coleman
1. Verify that the settings in the ROBOTC "Motors and Sensors Setup" match the robot. A mismatch causes a similar response on the NXT display.
2. The "#pragma config (Servo, servo1, blocker,. . .)" statements should look like: "#pragma config(Servo, srvo_S2_C1_1, blocker, . . ." Using the ROBOTC "Motors and Sensors Setup" referenced in item #1 above should correct this problem.
3. The following text is missing [remove the " marks at the beginning and the end]:
"//*!!Code automatically generated by 'ROBOTC' configuration wizard !!*//"
The statement should directly follow the last "#pragma config(. . ." statement.
This text was required with the version of ROBOTC used last season. I assume it is also true for the current version of ROBOTC.
4. There could be more issues, however, these items jumped out during a quick review of the code.
|
That text is just a comment from RobotC saying it did it. It does not effect the code though yes your (short) code should be set up as names in the motor and sensors setup.
__________________
John Fogarty
2010 FTC World Championship Winner & 2013-2014 FRC Orlando Regional Winner
Mentor FRC Team 1102 M'Aiken Magic
"Head Bot Coach" FTC Team 11444 Garnet Squadron
Former Student & Mentor FLL 1102, FTC 1102 & FTC 3864, FRC 1772, FRC 5632
2013 FTC World Championship Guest Speaker
|