Go to Post Patience is a good strategy. - 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 05-02-2017, 10:24
NStr NStr is offline
Registered User
AKA: Nadav Strahilevitz
FRC #3835 (Vulcan)
Team Role: Programmer
 
Join Date: Feb 2017
Rookie Year: 2016
Location: Israel
Posts: 2
NStr is an unknown quantity at this point
Problem with initializing RobotDrive/Talon objects

Hi,

I encountered a unique problem recently, I only found one thread with a similar problem which they didn't manage to solve(or at least they didn't post how).

I managed to reduce the problem to the point where I initialize my SpeedControllers, either through RobotDrive or Talon(we use Talon SR) object. When I initialized the the RobotDrive object I received an error in the driver station:
Error -52010 NIFPGA: Resource not initialized(something like this).

Additionally, the driver station said that there is no robot code. Surprisingly when I tried uploading a basically identical iterative robot there was no problem and the robot worked fine.

I tried initializing the Talons directly, this time I didn't get the previously mentioned error however there was still no robot code.

I get the following error at the breakpoint of the initialization while debugging the robot:
Can't find a source file at "/var/lib/jenkins/workspace/WPILib/WPILib - Release/hal/lib/athena/DigitalInternal.cpp"

I have tried reimaging, repairing the toolchain, reinstalling the plugins yet nothing seems to solve the problem.

Huge thanks to anyone who tried helping!
Reply With Quote
  #2   Spotlight this post!  
Unread 05-02-2017, 23:19
ozrien's Avatar
ozrien ozrien is online now
Omar Zrien
AKA: Omar
no team
Team Role: Mentor
 
Join Date: Sep 2006
Rookie Year: 2003
Location: Sterling Heights, MI
Posts: 559
ozrien has a reputation beyond reputeozrien has a reputation beyond reputeozrien has a reputation beyond reputeozrien has a reputation beyond reputeozrien has a reputation beyond reputeozrien has a reputation beyond reputeozrien has a reputation beyond reputeozrien has a reputation beyond reputeozrien has a reputation beyond reputeozrien has a reputation beyond reputeozrien has a reputation beyond repute
Re: Problem with initializing RobotDrive/Talon objects

If you are seeing "Error -52010 NIFPGA" in the Driver Station after adding a CANTalon, I would recommend reading section 16.36 in latest Talon SRX Software Reference Manual.
Reply With Quote
  #3   Spotlight this post!  
Unread 06-02-2017, 02:51
euhlmann's Avatar
euhlmann euhlmann is offline
CTO, Programmer
AKA: Erik Uhlmann
FRC #2877 (LigerBots)
Team Role: Leadership
 
Join Date: Dec 2015
Rookie Year: 2015
Location: United States
Posts: 410
euhlmann has much to be proud ofeuhlmann has much to be proud ofeuhlmann has much to be proud ofeuhlmann has much to be proud ofeuhlmann has much to be proud ofeuhlmann has much to be proud ofeuhlmann has much to be proud ofeuhlmann has much to be proud of
Re: Problem with initializing RobotDrive/Talon objects

Quote:
Originally Posted by ozrien View Post
If you are seeing "Error -52010 NIFPGA" in the Driver Station after adding a CANTalon, I would recommend reading section 16.36 in latest Talon SRX Software Reference Manual.
For the lazy

Quote:
16.36. Adding CANTalon to my C++ FRC application causes the Driver Station log to report: ERROR -52010 NIFPGA: Resource not initialized, GetFPGATime, or similar.
A full example of the crashed call stack is below…
Code:
ERROR -52010 NIFPGA: Resource not initialized GetFPGATime
[Utility.cpp:171]
Error at GetFPGATime [Utility.cpp:171]: NIFPGA: Resource not initialized
at frc::GetFPGATime()
at frc::Timer::GetFPGATimestamp()
at frc::MotorSafetyHelper::MotorSafetyHelper(frc::MotorSafety*)
… this can happen if a CANTalon is constructed before the C++ WPILIB initialization routine is called. At the time of writing, this condition can occur when cleanly creating a C++ Command-based project with the latest Eclipse Plugins. An example workaround can be found here…
https://github.com/CrossTheRoadElec/...74df894f7bbf2d
…demonstrating how to ensure motor controller object is constructed after WPILIB initialization.

C++ Command-based projects generated with latest Robot Builder appears to ensure that motor controller objects are created after WPILIB initialization, and therefore do not cause this failure symptom.

More information on C++ Command-based projects can be found at the FRC screenstepslive page, as this is not maintained by CTRE. https://wpilib.screenstepslive.com
__________________
Creator of SmartDashboard.js, an extensible nodejs/webkit replacement for SmartDashboard


https://ligerbots.org
Reply With Quote
  #4   Spotlight this post!  
Unread 06-02-2017, 17:34
ozrien's Avatar
ozrien ozrien is online now
Omar Zrien
AKA: Omar
no team
Team Role: Mentor
 
Join Date: Sep 2006
Rookie Year: 2003
Location: Sterling Heights, MI
Posts: 559
ozrien has a reputation beyond reputeozrien has a reputation beyond reputeozrien has a reputation beyond reputeozrien has a reputation beyond reputeozrien has a reputation beyond reputeozrien has a reputation beyond reputeozrien has a reputation beyond reputeozrien has a reputation beyond reputeozrien has a reputation beyond reputeozrien has a reputation beyond reputeozrien has a reputation beyond repute
Re: Problem with initializing RobotDrive/Talon objects

Quote:
Originally Posted by euhlmann View Post
For the lazy
Hey that's cheating.
Reply With Quote
  #5   Spotlight this post!  
Unread 09-02-2017, 18:49
NStr NStr is offline
Registered User
AKA: Nadav Strahilevitz
FRC #3835 (Vulcan)
Team Role: Programmer
 
Join Date: Feb 2017
Rookie Year: 2016
Location: Israel
Posts: 2
NStr is an unknown quantity at this point
Re: Problem with initializing RobotDrive/Talon objects

Quote:
Originally Posted by ozrien View Post
If you are seeing "Error -52010 NIFPGA" in the Driver Station after adding a CANTalon, I would recommend reading section 16.36 in latest Talon SRX Software Reference Manual.
Wasn't using Talon SRX but I guess the section applies to all Speed Controllers. Anyways this fixed the problem, so thanks a lot!
Reply With Quote
  #6   Spotlight this post!  
Unread 09-02-2017, 18:55
ozrien's Avatar
ozrien ozrien is online now
Omar Zrien
AKA: Omar
no team
Team Role: Mentor
 
Join Date: Sep 2006
Rookie Year: 2003
Location: Sterling Heights, MI
Posts: 559
ozrien has a reputation beyond reputeozrien has a reputation beyond reputeozrien has a reputation beyond reputeozrien has a reputation beyond reputeozrien has a reputation beyond reputeozrien has a reputation beyond reputeozrien has a reputation beyond reputeozrien has a reputation beyond reputeozrien has a reputation beyond reputeozrien has a reputation beyond reputeozrien has a reputation beyond repute
Re: Problem with initializing RobotDrive/Talon objects

Quote:
Originally Posted by NStr View Post
Wasn't using Talon SRX but I guess the section applies to all Speed Controllers. Anyways this fixed the problem, so thanks a lot!
That's how good our support is.
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 13:19.

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