Go to Post Like many researchers before me, I look and read about what my peers are doing and developing, and then incorperate the best of them into my ideas or change my focus because of them. - Wetzel [more]
Home
Go Back   Chief Delphi > Technical > Programming
CD-Media   CD-Spy  
portal register members calendar search Today's Posts Mark Forums Read FAQ rules

 
Closed Thread
Thread Tools Rate Thread Display Modes
  #1   Spotlight this post!  
Unread 09-11-2011, 16:55
stuart1086 stuart1086 is offline
Registered User
FTC #1086
 
Join Date: Nov 2011
Location: Richmond, VA
Posts: 3
stuart1086 is an unknown quantity at this point
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);
  }
}
Is something wrong with this? Or is it ROBOTC? We have ROBOTC version 1.40.
  #2   Spotlight this post!  
Unread 09-11-2011, 21:29
Matthew Blake's Avatar
Matthew Blake Matthew Blake is offline
Registered User
FRC #3481 (Bronc Botz)
 
Join Date: Feb 2011
Rookie Year: 2009
Location: Helotes, Texas
Posts: 43
Matthew Blake is an unknown quantity at this point
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?
__________________
FTC Team 4008: 2009-2012
FTC Team 4602: 2010-2012
FRC Team 3481: 2010-2012

Last edited by Matthew Blake : 09-11-2011 at 21:39.
  #3   Spotlight this post!  
Unread 11-11-2011, 16:11
stuart1086 stuart1086 is offline
Registered User
FTC #1086
 
Join Date: Nov 2011
Location: Richmond, VA
Posts: 3
stuart1086 is an unknown quantity at this point
Re: ROBOTC servo code fails after update

This is FTC, not FRC. No CRIOs over here, just NXT bricks.
  #4   Spotlight this post!  
Unread 12-11-2011, 15:21
Matthew Blake's Avatar
Matthew Blake Matthew Blake is offline
Registered User
FRC #3481 (Bronc Botz)
 
Join Date: Feb 2011
Rookie Year: 2009
Location: Helotes, Texas
Posts: 43
Matthew Blake is an unknown quantity at this point
Re: ROBOTC servo code fails after update

Quote:
Originally Posted by stuart1086 View Post
This is FTC, not FRC. No CRIOs over here, just NXT bricks.
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.
__________________
FTC Team 4008: 2009-2012
FTC Team 4602: 2010-2012
FRC Team 3481: 2010-2012
  #5   Spotlight this post!  
Unread 12-11-2011, 15:56
Ether's Avatar
Ether Ether is offline
systems engineer (retired)
no team
 
Join Date: Nov 2009
Rookie Year: 1969
Location: US
Posts: 8,101
Ether has a reputation beyond reputeEther has a reputation beyond reputeEther has a reputation beyond reputeEther has a reputation beyond reputeEther has a reputation beyond reputeEther has a reputation beyond reputeEther has a reputation beyond reputeEther has a reputation beyond reputeEther has a reputation beyond reputeEther has a reputation beyond reputeEther has a reputation beyond repute
Re: ROBOTC servo code fails after update

Quote:
Originally Posted by stuart1086 View Post
This is FTC, not FRC. No CRIOs over here, just NXT bricks.
Did you try posting to the FTC forum ?


  #6   Spotlight this post!  
Unread 12-11-2011, 18:09
Foster Foster is offline
Engineering Program Management
VRC #8081 (STEMRobotics)
Team Role: Mentor
 
Join Date: Jul 2007
Rookie Year: 2005
Location: Delaware
Posts: 1,393
Foster has a reputation beyond reputeFoster has a reputation beyond reputeFoster has a reputation beyond reputeFoster has a reputation beyond reputeFoster has a reputation beyond reputeFoster has a reputation beyond reputeFoster has a reputation beyond reputeFoster has a reputation beyond reputeFoster has a reputation beyond reputeFoster has a reputation beyond reputeFoster has a reputation beyond repute
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.
__________________
Foster - VEX Delaware - 17 teams -- Chief Roboteer STEMRobotics.org
2010 - Mentor of the Year - VEX Clean Sweep World Championship
2006-2016, a decade of doing VEX, time really flies while having fun
Downingtown Area Robotics Web site and VEXMen Team Site come see what we can do for you.
  #7   Spotlight this post!  
Unread 13-11-2011, 20:52
wilsonmw04's Avatar
wilsonmw04 wilsonmw04 is offline
Coach
FRC #1086 (Blue Cheese)
Team Role: Teacher
 
Join Date: Dec 2006
Rookie Year: 2007
Location: Midlothian, VA
Posts: 1,887
wilsonmw04 has a reputation beyond reputewilsonmw04 has a reputation beyond reputewilsonmw04 has a reputation beyond reputewilsonmw04 has a reputation beyond reputewilsonmw04 has a reputation beyond reputewilsonmw04 has a reputation beyond reputewilsonmw04 has a reputation beyond reputewilsonmw04 has a reputation beyond reputewilsonmw04 has a reputation beyond reputewilsonmw04 has a reputation beyond reputewilsonmw04 has a reputation beyond repute
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.
__________________
Currently: Coach FRC 1086/FTC 93
2006-2011 Coach FRC 2106/FTC 35
If you come to a FRC event to see a robot competition, you are missing the point.
Closed Thread


Thread Tools
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump


All times are GMT -5. The time now is 18:59.

The Chief Delphi Forums are sponsored by Innovation First International, Inc.


Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2017, Jelsoft Enterprises Ltd.
Copyright © Chief Delphi