![]() |
[FTC]: RobotC Issue
So i learned RobotC pretty much in about 2 hours, at first everything was going decently but after a while, this message started popping up on my NXT followed by two beeps as well as not letting my code run:
Code:
PgmCnt: 000129Code:
//Motor and Servo HubsUpdate: April 10, 2010, 11:30pm GMT-7 The line Code:
//*!!Code automatically generated by 'ROBOTC' configuration wizard !!*//i have updated my code and from changing the servo config lines as suggested, i got a new message which i have updated above also. |
Re: [FTC]: RobotC Issue
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. |
Re: [FTC]: RobotC Issue
1st. Have you tried taking the int code out and doing it??
2nd. Reflash the Firmware? |
Re: [FTC]: RobotC Issue
Quote:
|
Re: [FTC]: RobotC Issue
Quote:
Definitely use the setup tool (as Michale suggested) to rebuild the setup #PRAGMA information block. Then, since they're already set up, delete the code declaring the shorts later. Hope that helps |
| All times are GMT -5. The time now is 18:38. |
Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2017, Jelsoft Enterprises Ltd.
Copyright © Chief Delphi