|
|
|
![]() |
|
|||||||
|
||||||||
![]() |
| Thread Tools | Rate Thread | Display Modes |
|
#1
|
|||
|
|||
|
ROBOTC servo code fails after update
So, we had some code that displayed servos and their capabilities. After reimaging the computer and reinstalling a new version of ROBOTC, our program wouldn't work. We tried everything, programming, electrical, or otherwise. This is the elementary program we created to test if servos would move at all:
Code:
#pragma config(Hubs, S1, HTServo, none, none, none)
#pragma config(Servo, srvo_S1_C1_1, motor1, tServoNormal)
#pragma config(Servo, srvo_S1_C1_2, motor2, tServoNormal)
//*!!Code automatically generated by 'ROBOTC' configuration wizard !!*//
task main(){
while(true){
//Bend it one way, wait, bend the other way
servoTarget[srvo_S1_C1_1] = 120;
servoTarget[srvo_S1_C1_2] = 120;
wait1Msec(1000);
servoTarget[srvo_S1_C1_1]= 0;
servoTarget[srvo_S1_C1_2]= 0;
wait1Msec(1000);
}
}
|
|
#2
|
||||
|
||||
|
Re: ROBOTC servo code fails after update
Have you tried making sure the CRIO Firmware is up to date?
Have you tried making sure the Driver Station Software is up to date? Last edited by Matthew Blake : 09-11-2011 at 21:39. |
|
#3
|
|||
|
|||
|
Re: ROBOTC servo code fails after update
This is FTC, not FRC. No CRIOs over here, just NXT bricks.
|
|
#4
|
||||
|
||||
|
Re: ROBOTC servo code fails after update
Ah sorry, my mistake.
Have you tried updating the firmware on your NXT Brick? Use a USB Cable to connect the brick to your computer with ROBOTC on it and try updating the Brick's firmware. Our team recently had a problem with our NXT Bricks and updating the firmware seemed to solve it. |
|
#5
|
||||
|
||||
|
Re: ROBOTC servo code fails after update
Did you try posting to the FTC forum ?
|
|
#6
|
|||
|
|||
|
Re: ROBOTC servo code fails after update
Did you download the new RobotC firmware to the controller?
We've found that the RobotC versions must have the right firmware. |
|
#7
|
||||
|
||||
|
Re: ROBOTC servo code fails after update
LONG story, but we figured out our problem.
Here's some insight to the issue: Version 1.4 doesn't play well with Tetrix. Version 3, on the other hand, plays nicely with the hardware. Thank you all for your replies. |
![]() |
| Thread Tools | |
| Display Modes | Rate This Thread |
|
|