Go to Post That's not duct tape as adhesive, it's duct tape as decoration! :p - Don Knight [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 07-02-2010, 11:28
gjordan gjordan is offline
Registered User
AKA: Greg Jordan
FRC #3126 (FlashPoint)
Team Role: Mentor
 
Join Date: Oct 2009
Rookie Year: 2009
Location: New Hampshire
Posts: 3
gjordan is an unknown quantity at this point
C++ V4.1 Update and DriverStationLCD

We've installed the C++ 4.1 update and made the necessary modifications for the camera changes. Our image builds without any errors. When booted on the cRio, we get an error:


Warning: module (t1) deleted: errno=1835009 (x1c0001) status=1
_ZN16DriverStationLCD11kLineLengthE.
(unloading partially loaded module FRC_UserProgram.out)
...FRC_UserProgram failed to load.

If we remove all references to print to the DriverStationLCD, then all is fine. Any one else upgrade and run into these issues?

Thanks,
_Greg (Team3126 FlashPoint Mentor)
Reply With Quote
  #2   Spotlight this post!  
Unread 07-02-2010, 14:44
BotnEyedJoe BotnEyedJoe is offline
Mentor
AKA: Joe Hurler
no team
 
Join Date: Jan 2007
Rookie Year: 2006
Location: Rosemont, PA
Posts: 29
BotnEyedJoe is an unknown quantity at this point
Re: C++ V4.1 Update and DriverStationLCD

Yes, we absorbed the 4.1 update, re-compiled and re-built with no errors (after changing a few names due to the update), and when we (try to) Run the code in debug mode, get the following dialog in Workbench, and the code does not run:

On downloading module '/blah/blah/Debug/robotcode.out' on target 'VxWorks6x_10.x.y.2_0-MPC5200', the module symbols could not be fully resolved.

Unresolved Symbols List:
DriverStationLCD::kLineLength
Reply With Quote
  #3   Spotlight this post!  
Unread 07-02-2010, 16:19
pafwl pafwl is offline
Franciose
AKA: Frank Larkin
FRC #0272 (Cyber Crusaders)
Team Role: Mentor
 
Join Date: Jan 2005
Rookie Year: 1998
Location: Lansdale, Pennsylvania
Posts: 108
pafwl has much to be proud ofpafwl has much to be proud ofpafwl has much to be proud ofpafwl has much to be proud ofpafwl has much to be proud ofpafwl has much to be proud ofpafwl has much to be proud ofpafwl has much to be proud ofpafwl has much to be proud ofpafwl has much to be proud of
Re: C++ V4.1 Update and DriverStationLCD

Several of us are having the same problem...

<url>http://www.chiefdelphi.com/forums/showthread.php?t=81829</url>
Reply With Quote
  #4   Spotlight this post!  
Unread 08-02-2010, 22:42
BradAMiller BradAMiller is offline
Registered User
AKA: Brad
#0190 ( Gompei and the Herd)
Team Role: Mentor
 
Join Date: Mar 2004
Location: Worcester, MA
Posts: 590
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: C++ V4.1 Update and DriverStationLCD

There seems to have been a compiler or linker bug that was causing a static const int variable to not initialize correctly that just started happening. I posed a new version here:

http://first.wpi.edu/FRC/frccupdates.html

That seems to fix the problem. That's the only change in this version so there's no need to update if you aren't using the DriverStationLCD class.
__________________
Brad Miller
Robotics Resource Center
Worcester Polytechnic Institute
Reply With Quote
  #5   Spotlight this post!  
Unread 09-02-2010, 07:06
gokul gokul is offline
Registered User
FRC #0571
 
Join Date: Jan 2006
Location: CT
Posts: 25
gokul is an unknown quantity at this point
Re: C++ V4.1 Update and DriverStationLCD

Quote:
Originally Posted by BradAMiller View Post
There seems to have been a compiler or linker bug that was causing a static const int variable to not initialize correctly that just started happening. I posed a new version here:

http://first.wpi.edu/FRC/frccupdates.html

That seems to fix the problem. That's the only change in this version so there's no need to update if you aren't using the DriverStationLCD class.
Thanks, Brad.
As the file sizes are quite close, I take it that the new update includes the changes from the original 4.1 also. Is this correct ? Or do we have to apply the 4.1 and then this new update ?

Thanks again
Reply With Quote
  #6   Spotlight this post!  
Unread 09-02-2010, 15:14
stevethetinker stevethetinker is offline
Registered User
FRC #1288 (RAVEN)
Team Role: Mentor
 
Join Date: Jan 2007
Rookie Year: 2004
Location: St. Charles, MO
Posts: 35
stevethetinker is an unknown quantity at this point
Re: C++ V4.1 Update and DriverStationLCD

Another question for Brad: is source available for the new update? I am having some nasty problems and need the source for a few classes.

My problems in case you might be able to help:

The gyro class won't initialize correctly. The constructor seems to run but calling GetAngle gives a memory access error. The debugger in Gyro.cpp shows that m_analog is NULL. BUT: I have Gyro.cpp from a previous version of the source.

Encoders don't work. I get no counts. A logic probe on the wires from the encoders shows there is a signal there. BTW, the encoders are powered from the DIO +5 pin. Is that OK?

Adding some bits of code cause obscure errors. I can add some loops to bring the return angle from the gyro (when I compute it myself rather than use the Gyro class) into the interval [-pi, pi) causes the joystick input not to go through to the wheels. I haven't isolated where the input goes away, but when I remove the angle loops the problem goes away.

All these suggest there may be a memory overwrite somewhere. I am in a panic this late for this problem. These things can take weeks to find.
Reply With Quote
  #7   Spotlight this post!  
Unread 09-02-2010, 15:26
stevethetinker stevethetinker is offline
Registered User
FRC #1288 (RAVEN)
Team Role: Mentor
 
Join Date: Jan 2007
Rookie Year: 2004
Location: St. Charles, MO
Posts: 35
stevethetinker is an unknown quantity at this point
Re: C++ V4.1 Update and DriverStationLCD

I found the source on Firstforge. Silly of me to ask, it had usually been posted on the frccupdates page.

With updated source the Gyro problems are the same. Still no counts for the encoder.
Reply With Quote
  #8   Spotlight this post!  
Unread 09-02-2010, 20:23
gjordan gjordan is offline
Registered User
AKA: Greg Jordan
FRC #3126 (FlashPoint)
Team Role: Mentor
 
Join Date: Oct 2009
Rookie Year: 2009
Location: New Hampshire
Posts: 3
gjordan is an unknown quantity at this point
Re: C++ V4.1 Update and DriverStationLCD

Just updated to V4.2... We added back in the LCD code but our code failed to load. This time however, the symbol displayed was associated with the AxisCamera. If we remove our camera code, then our program will load and it can print to the LCD.

_Greg
Reply With Quote
  #9   Spotlight this post!  
Unread 09-02-2010, 21:17
pafwl pafwl is offline
Franciose
AKA: Frank Larkin
FRC #0272 (Cyber Crusaders)
Team Role: Mentor
 
Join Date: Jan 2005
Rookie Year: 1998
Location: Lansdale, Pennsylvania
Posts: 108
pafwl has much to be proud ofpafwl has much to be proud ofpafwl has much to be proud ofpafwl has much to be proud ofpafwl has much to be proud ofpafwl has much to be proud ofpafwl has much to be proud ofpafwl has much to be proud ofpafwl has much to be proud ofpafwl has much to be proud of
Re: C++ V4.1 Update and DriverStationLCD

I got the same result. Love the LCD Display it works great.

Camera is now DOA, so I am going to work without the camera. Don't really need it. But that is another thread.

Thanks for getting the LCD fixed.
Reply With Quote
  #10   Spotlight this post!  
Unread 10-02-2010, 00:04
stevethetinker stevethetinker is offline
Registered User
FRC #1288 (RAVEN)
Team Role: Mentor
 
Join Date: Jan 2007
Rookie Year: 2004
Location: St. Charles, MO
Posts: 35
stevethetinker is an unknown quantity at this point
Re: C++ V4.1 Update and DriverStationLCD

I have done some more testing and with one of my fellow mentors we believe that our 9403 might be partly fried (we are using last year's computer for testing). We will find out more tomorrow when we meet next.
Reply With Quote
  #11   Spotlight this post!  
Unread 19-02-2010, 07:53
Randy Forgaard's Avatar
Randy Forgaard Randy Forgaard is offline
Parent 1729, former mentor 3126
FRC #7129
Team Role: Parent
 
Join Date: Oct 2009
Rookie Year: 2010
Location: Hollis, NH, USA
Posts: 48
Randy Forgaard is a splendid one to beholdRandy Forgaard is a splendid one to beholdRandy Forgaard is a splendid one to beholdRandy Forgaard is a splendid one to beholdRandy Forgaard is a splendid one to beholdRandy Forgaard is a splendid one to beholdRandy Forgaard is a splendid one to behold
Re: C++ V4.1 Update and DriverStationLCD

This AxisCamera problem in WPILib 4.2 for C++ has been fixed. The new WPILib 4.3 release on 2/17/10 has resolved this AxisCamera unresolved symbol in our tests. The DriverStationLCD is still working correctly as well. Super thanks, WPI!
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

Similar Threads
Thread Thread Starter Forum Replies Last Post
driver station and cRIO firmware update help asianfez123 FRC Control System 1 16-01-2009 02:34
The Database (And update report) Jack FIRST Scouting Network 1 11-08-2003 16:02
news and update Redhead Jokes Southern California Regional Robotics Forum 0 24-11-2002 21:44
Update Three and big balls archiver 2001 0 23-06-2002 22:42
Update #6 (and there's a surprise too!) archiver 1999 1 23-06-2002 22:33


All times are GMT -5. The time now is 14:15.

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