Go to Post Chiefdelphi is a great resource for all of FIRST to use over the years and has grown into a community that has taken a life of it's own. - Koko Ed [more]
Home
Go Back   Chief Delphi > Technical > Programming > C/C++
CD-Media   CD-Spy  
portal register members calendar search Today's Posts Mark Forums Read FAQ rules

 
Reply
Thread Tools Rate Thread Display Modes
  #1   Spotlight this post!  
Unread 09-01-2013, 09:51
DweebsUnited DweebsUnited is offline
Head Coder Dude
AKA: Eric Osburn
FRC #2410 (Metal Mustangs)
Team Role: Programmer
 
Join Date: Jan 2013
Rookie Year: 2008
Location: Overland Park, KS
Posts: 12
DweebsUnited is an unknown quantity at this point
Unhappy Unable to set sidecar output values?

Has anyone else had issues with getting programs to set output values of the digital sidecar?

Our team has tried the example SimpleRobotTemplate, as well as several other programs from last year, but none of them are able to set values on the sidecar. Our motor controllers show they are getting a deadband signal when enabled, but we are unable to send anything else to them.

We have tried a different cRIO, a different sidecar, a different digital module in the cRIO, as well as even switching to Java, and running the example programs from there as well. None of these produced any change.

We also tried going back through the installation guide, and redoing all the patches to make sure. This didn't help either.

Has anyone else been able to change the outputs of the sidecar? If so, any other suggestions as to solutions for this issue?

EDIT: The bottom comment on this page has the solution, thank you to everyone who helped!

Last edited by DweebsUnited : 09-01-2013 at 21:52. Reason: Problem solved
Reply With Quote
  #2   Spotlight this post!  
Unread 09-01-2013, 10:20
Alan Anderson's Avatar
Alan Anderson Alan Anderson is offline
Software Architect
FRC #0045 (TechnoKats)
Team Role: Mentor
 
Join Date: Feb 2004
Rookie Year: 2004
Location: Kokomo, Indiana
Posts: 9,113
Alan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond repute
Re: Unable to set sidecar output values?

Which PWM outputs are you using to connect to the motor controllers?

Are you using Victors, Talons, or Jaguars?

What cable are you using to connect the cRIO's Digital I/O module to the Digital Sidecar?

What is the Robot Signal Light doing, both when the robot is disabled and when it is enabled?
Reply With Quote
  #3   Spotlight this post!  
Unread 09-01-2013, 11:40
DweebsUnited DweebsUnited is offline
Head Coder Dude
AKA: Eric Osburn
FRC #2410 (Metal Mustangs)
Team Role: Programmer
 
Join Date: Jan 2013
Rookie Year: 2008
Location: Overland Park, KS
Posts: 12
DweebsUnited is an unknown quantity at this point
Re: Unable to set sidecar output values?

We went through all of the output channels, all of them produced the same result, deadband response when enabled, no signal while disabled.

We have the outputs hooked up to brand new Talons, but we did try Victors as well, just to make sure. The Victors had the same response as the Talons.

Our current cable is a standard DB-37 cable, that did work successfully on last years robot.

The signal light is flashing the standard patterns while enabled and disabled.
Reply With Quote
  #4   Spotlight this post!  
Unread 09-01-2013, 11:55
Alan Anderson's Avatar
Alan Anderson Alan Anderson is offline
Software Architect
FRC #0045 (TechnoKats)
Team Role: Mentor
 
Join Date: Feb 2004
Rookie Year: 2004
Location: Kokomo, Indiana
Posts: 9,113
Alan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond repute
Re: Unable to set sidecar output values?

How do you know you're setting the PWM output to something besides neutral?
Reply With Quote
  #5   Spotlight this post!  
Unread 09-01-2013, 12:28
DweebsUnited DweebsUnited is offline
Head Coder Dude
AKA: Eric Osburn
FRC #2410 (Metal Mustangs)
Team Role: Programmer
 
Join Date: Jan 2013
Rookie Year: 2008
Location: Overland Park, KS
Posts: 12
DweebsUnited is an unknown quantity at this point
Re: Unable to set sidecar output values?

These are snippets from our code files, using an iterative robot template from last year. The talon channel (7) is the last channel we tested.

The class definition:
Code:
class FRC2410Robot : public IterativeRobot {
	Talon* talonTest;
public:
	void RobotInit();
	void TeleopContinuous();
};
The robot setup:
Code:
void FRC2410Robot::RobotInit()
{
	talonTest = new Talon(7);
}
The Teleop code:
Code:
void FRC2410Robot::TeleopContinuous()
{
	testing->Set(1.0);
}
Reply With Quote
  #6   Spotlight this post!  
Unread 09-01-2013, 12:30
Joe Ross's Avatar Unsung FIRST Hero
Joe Ross Joe Ross is offline
Registered User
FRC #0330 (Beachbots)
Team Role: Engineer
 
Join Date: Jun 2001
Rookie Year: 1997
Location: Los Angeles, CA
Posts: 8,576
Joe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond repute
Re: Unable to set sidecar output values?

Quote:
Originally Posted by DweebsUnited View Post
Code:
	testing->Set(1.0);
Is that a typo?
Reply With Quote
  #7   Spotlight this post!  
Unread 09-01-2013, 12:43
DweebsUnited DweebsUnited is offline
Head Coder Dude
AKA: Eric Osburn
FRC #2410 (Metal Mustangs)
Team Role: Programmer
 
Join Date: Jan 2013
Rookie Year: 2008
Location: Overland Park, KS
Posts: 12
DweebsUnited is an unknown quantity at this point
Re: Unable to set sidecar output values?

Quote:
Originally Posted by Joe Ross View Post
Is that a typo?
Yes it is, my apologies, I renamed it here so it would make more sense, and missed that one. They are all named the same in the code version that we are testing.
Reply With Quote
  #8   Spotlight this post!  
Unread 09-01-2013, 13:55
Alan Anderson's Avatar
Alan Anderson Alan Anderson is offline
Software Architect
FRC #0045 (TechnoKats)
Team Role: Mentor
 
Join Date: Feb 2004
Rookie Year: 2004
Location: Kokomo, Indiana
Posts: 9,113
Alan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond repute
Re: Unable to set sidecar output values?

Quote:
Originally Posted by DweebsUnited View Post
...using an iterative robot template from last year.
You're using a project from last year? That might be your problem. If you've reimaged the cRIO so that it's using this year's FPGA, you should be using a code base that matches.

Start with a new robot project and see if it works the way you expect it to.
Reply With Quote
  #9   Spotlight this post!  
Unread 09-01-2013, 14:07
DweebsUnited DweebsUnited is offline
Head Coder Dude
AKA: Eric Osburn
FRC #2410 (Metal Mustangs)
Team Role: Programmer
 
Join Date: Jan 2013
Rookie Year: 2008
Location: Overland Park, KS
Posts: 12
DweebsUnited is an unknown quantity at this point
Re: Unable to set sidecar output values?

The project itself was generated with the newest installation of windriver, only the code is copied from last year. I opened a new example project after installing the IDE, then copied in the basic code sections from earlier this thread. Also, running the example SimpleRobotTemplate project from this year without any changes at all has the exact same result. All controllers show deadband signals, and no input change has any effect.
Reply With Quote
  #10   Spotlight this post!  
Unread 09-01-2013, 14:10
Joe Ross's Avatar Unsung FIRST Hero
Joe Ross Joe Ross is offline
Registered User
FRC #0330 (Beachbots)
Team Role: Engineer
 
Join Date: Jun 2001
Rookie Year: 1997
Location: Los Angeles, CA
Posts: 8,576
Joe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond repute
Re: Unable to set sidecar output values?

Did you install the new cRIO image?
Reply With Quote
  #11   Spotlight this post!  
Unread 09-01-2013, 14:15
DweebsUnited DweebsUnited is offline
Head Coder Dude
AKA: Eric Osburn
FRC #2410 (Metal Mustangs)
Team Role: Programmer
 
Join Date: Jan 2013
Rookie Year: 2008
Location: Overland Park, KS
Posts: 12
DweebsUnited is an unknown quantity at this point
Re: Unable to set sidecar output values?

Quote:
Originally Posted by Joe Ross View Post
Did you install the new cRIO image?
Everything we found in the installation guide, and from googling to find if we had the most recent image said that when the LabView update was applied, that would get the most recent version.

I could not find any site that had a download link for a cRIO image.
Reply With Quote
  #12   Spotlight this post!  
Unread 09-01-2013, 15:31
BradAMiller BradAMiller is offline
Registered User
AKA: Brad
#0190 ( Gompei and the Herd)
Team Role: Mentor
 
Join Date: Mar 2004
Location: Worcester, MA
Posts: 591
BradAMiller has a brilliant futureBradAMiller has a brilliant futureBradAMiller has a brilliant futureBradAMiller has a brilliant futureBradAMiller has a brilliant futureBradAMiller has a brilliant futureBradAMiller has a brilliant futureBradAMiller has a brilliant futureBradAMiller has a brilliant futureBradAMiller has a brilliant futureBradAMiller has a brilliant future
Re: Unable to set sidecar output values?

You need to reimage the cRIO with the V47 image that is supplied with the language distribution. If you run the 2013 Imaging tool, you should see last years image on your cRIO and the option to upgrade to V47. This will only work if you've installed the 2013 development tools and updates for the language you have selected in the Imaging Tool.

Brad
__________________
Brad Miller
Robotics Resource Center
Worcester Polytechnic Institute
Reply With Quote
  #13   Spotlight this post!  
Unread 09-01-2013, 16:16
DweebsUnited DweebsUnited is offline
Head Coder Dude
AKA: Eric Osburn
FRC #2410 (Metal Mustangs)
Team Role: Programmer
 
Join Date: Jan 2013
Rookie Year: 2008
Location: Overland Park, KS
Posts: 12
DweebsUnited is an unknown quantity at this point
Re: Unable to set sidecar output values?

We did image the cRIO first thing after installing all the updates. I checked again to make sure, and it shows the current version is R47.

At our meeting tonight I'm going to try another computer, both for compiling and downloading code, and for running the driver station, just to make sure.

Thank you all for the help so far
Reply With Quote
  #14   Spotlight this post!  
Unread 09-01-2013, 19:45
DweebsUnited DweebsUnited is offline
Head Coder Dude
AKA: Eric Osburn
FRC #2410 (Metal Mustangs)
Team Role: Programmer
 
Join Date: Jan 2013
Rookie Year: 2008
Location: Overland Park, KS
Posts: 12
DweebsUnited is an unknown quantity at this point
Re: Unable to set sidecar output values?

After trying another computer with all the updates and patches applied, we got the same result.

I also tried running the DriverStationLCD example, and that will show the text line on the DS once, but not update after that (I'm not sure exactly what its supposed to do).
Reply With Quote
  #15   Spotlight this post!  
Unread 09-01-2013, 20:24
RufflesRidge RufflesRidge is offline
Registered User
no team
 
Join Date: Jan 2012
Location: USA
Posts: 989
RufflesRidge has a brilliant futureRufflesRidge has a brilliant futureRufflesRidge has a brilliant futureRufflesRidge has a brilliant futureRufflesRidge has a brilliant futureRufflesRidge has a brilliant futureRufflesRidge has a brilliant futureRufflesRidge has a brilliant futureRufflesRidge has a brilliant futureRufflesRidge has a brilliant futureRufflesRidge has a brilliant future
Re: Unable to set sidecar output values?

Quote:
Originally Posted by DweebsUnited View Post
These are snippets from our code files, using an iterative robot template from last year.
.....
The Teleop code:
Code:
void FRC2410Robot::TeleopContinuous()
{
	testing->Set(1.0);
}
That could be your problem..... The continuous method have been removed from the IterativeTemplate in the library so your Set method is never being called.

Source: 1)The template code 2) #2 under the second paragraph of Changes for C++ and Java here: http://wpilib.screenstepslive.com/s/...software-notes
Reply With Quote
Reply


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 03:34.

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