|
|
|
![]() |
|
|||||||
|
||||||||
![]() |
| Thread Tools | Rate Thread | Display Modes |
|
#1
|
|||
|
|||
|
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 |
|
#2
|
|||||
|
|||||
|
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? |
|
#3
|
|||
|
|||
|
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. |
|
#4
|
|||||
|
|||||
|
Re: Unable to set sidecar output values?
How do you know you're setting the PWM output to something besides neutral?
|
|
#5
|
|||
|
|||
|
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();
};
Code:
void FRC2410Robot::RobotInit()
{
talonTest = new Talon(7);
}
Code:
void FRC2410Robot::TeleopContinuous()
{
testing->Set(1.0);
}
|
|
#6
|
||||||
|
||||||
|
Re: Unable to set sidecar output values?
|
|
#7
|
|||
|
|||
|
Re: Unable to set sidecar output values?
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.
|
|
#8
|
|||||
|
|||||
|
Re: Unable to set sidecar output values?
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. |
|
#9
|
|||
|
|||
|
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.
|
|
#10
|
||||||
|
||||||
|
Re: Unable to set sidecar output values?
Did you install the new cRIO image?
|
|
#11
|
|||
|
|||
|
Re: Unable to set sidecar output values?
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. |
|
#12
|
|||
|
|||
|
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 |
|
#13
|
|||
|
|||
|
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 |
|
#14
|
|||
|
|||
|
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). |
|
#15
|
|||
|
|||
|
Re: Unable to set sidecar output values?
Quote:
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 |
![]() |
| Thread Tools | |
| Display Modes | Rate This Thread |
|
|