Go to Post So why are we trying to go to Mars? It's because it's bigger, better, and bolder. Doing what nearly no other team can do, and defying all those who say it can't be done. That reward is a lot more than 9 points. - Mike [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 17-02-2010, 00:29
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,112
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: Vision/AxisCamera2010.h

Quote:
Originally Posted by PlaidPillagers View Post
But now, my drivers station is telling me there is no robot code. I rebuilt the code, reimaged (v20 still), rebooted everything, and repeated. No luck. Any ideas?
Each time you reimage, you erase any user code that might be on the cRIO in the process. You have to put your program on the cRIO after loading the v20 image.
Reply With Quote
  #2   Spotlight this post!  
Unread 17-02-2010, 00:34
Radical Pi Radical Pi is offline
Putting the Jumper in the Bumper
AKA: Ian Thompson
FRC #0639 (Code Red Robotics)
Team Role: Programmer
 
Join Date: Jan 2010
Rookie Year: 2010
Location: New York
Posts: 655
Radical Pi has a spectacular aura aboutRadical Pi has a spectacular aura aboutRadical Pi has a spectacular aura about
Re: Vision/AxisCamera2010.h

If you are running WPILib 4.1, then any use of the DriverStationLCD class will crash robot code, sending that error. If using 4.2, then use of the AxisCamera class will crash code. I know, it's stupid
__________________

"To have no errors would be life without meaning. No strugle, no joy"
"A network is only as strong as it's weakest linksys"
Reply With Quote
  #3   Spotlight this post!  
Unread 17-02-2010, 03:08
jhersh jhersh is offline
National Instruments
AKA: Joe Hershberger
FRC #2468 (Appreciate)
Team Role: Mentor
 
Join Date: May 2008
Rookie Year: 1997
Location: Austin, TX
Posts: 1,006
jhersh has a reputation beyond reputejhersh has a reputation beyond reputejhersh has a reputation beyond reputejhersh has a reputation beyond reputejhersh has a reputation beyond reputejhersh has a reputation beyond reputejhersh has a reputation beyond reputejhersh has a reputation beyond reputejhersh has a reputation beyond reputejhersh has a reputation beyond reputejhersh has a reputation beyond repute
Re: Vision/AxisCamera2010.h

Quote:
Originally Posted by Radical Pi View Post
If you are running WPILib 4.1, then any use of the DriverStationLCD class will crash robot code, sending that error. If using 4.2, then use of the AxisCamera class will crash code. I know, it's stupid
Nothing changed with the camera code between 4.1 and 4.2. 4.2 just recompiled to make a symbol be found. The camera code was pretty much completely rewritten for update 4.1, so expect to retrofit a few things here and there if you were already using it.

-Joe
Reply With Quote
  #4   Spotlight this post!  
Unread 17-02-2010, 12:55
Zme Zme is offline
Registered User
FRC #2619
 
Join Date: Jan 2009
Location: Michigan
Posts: 83
Zme is on a distinguished road
Re: Vision/AxisCamera2010.h

if i may make a suggestion, if it is saying an unresolved symbol after the update why not use the FIRSTForge svn to just pull down the .h and .cpp files and put them directly into the project, much simpler than trying to patch a precompiled library in my opinion.

just my two cents though

if someone can't find the needed files i think i could dig them out of my project and put them back to normal, just let me know
Reply With Quote
  #5   Spotlight this post!  
Unread 17-02-2010, 16:09
Mike Mahar Mike Mahar is offline
Registered User
FRC #0138
 
Join Date: Jan 2007
Location: Amherst, NH
Posts: 64
Mike Mahar will become famous soon enough
Re: Vision/AxisCamera2010.h

Quote:
Originally Posted by jhersh View Post
Nothing changed with the camera code between 4.1 and 4.2. 4.2 just recompiled to make a symbol be found. The camera code was pretty much completely rewritten for update 4.1, so expect to retrofit a few things here and there if you were already using it.

-Joe
Joe,
The 4.2 precompiled WPILIB does not have the camera code in it. I duplicated this from the sources in firstforge. First, I checked out the latest sources, created a workbench project from them and did a build. That build had the DriverStationLCD kLineLength symbol problem. I got around this bug by moving the const declaration out of the DriverStationLCD class into the file scope. Then I did a build of the WPILIB again. The result of that build has the problem with the missing AxisCamera that many people are reporting. Thinking that there might be a problem with the make dependencies, I did a clean of the whole WPILIB project and rebuilt the whole thing. The library that resulted from this build does not have the kLineLength problem nor does it have the AxisCamera problem either.

My guess is that the WPILIB that is in the 4.2 release was built after changing only the DriverStationLCD code and the AxisCamera code was left out. Doing a clean build should resolve the problem.
Reply With Quote
  #6   Spotlight this post!  
Unread 17-02-2010, 18:18
PlaidPillagers's Avatar
PlaidPillagers PlaidPillagers is offline
Registered User
FRC #2538 (Plaid Pillagers)
 
Join Date: Jan 2008
Rookie Year: 2008
Location: Morris, Minnesota
Posts: 29
PlaidPillagers is an unknown quantity at this point
Re: Vision/AxisCamera2010.h

Okay, so I've isolated my problem. It's the axis camera.
Whenever I download code that uses the camera, the drivers station says "No robot code"

I'm not getting any error messages at all, it just doesn't work.

Has anyone found a work around/patch/other solution? I need to do a lot of coding for my camera still....

P.S. does anyone know if WPI/FIRST is fixing this?
__________________
Team 2538
Plaid Pillagers
Morris, Minnesota
Rookie Year 2008
Reply With Quote
  #7   Spotlight this post!  
Unread 17-02-2010, 19:26
jhersh jhersh is offline
National Instruments
AKA: Joe Hershberger
FRC #2468 (Appreciate)
Team Role: Mentor
 
Join Date: May 2008
Rookie Year: 1997
Location: Austin, TX
Posts: 1,006
jhersh has a reputation beyond reputejhersh has a reputation beyond reputejhersh has a reputation beyond reputejhersh has a reputation beyond reputejhersh has a reputation beyond reputejhersh has a reputation beyond reputejhersh has a reputation beyond reputejhersh has a reputation beyond reputejhersh has a reputation beyond reputejhersh has a reputation beyond reputejhersh has a reputation beyond repute
Re: Vision/AxisCamera2010.h

Quote:
Originally Posted by PlaidPillagers View Post
P.S. does anyone know if WPI/FIRST is fixing this?
Brad at WPI is looking into this.
Reply With Quote
  #8   Spotlight this post!  
Unread 17-02-2010, 19:27
jhersh jhersh is offline
National Instruments
AKA: Joe Hershberger
FRC #2468 (Appreciate)
Team Role: Mentor
 
Join Date: May 2008
Rookie Year: 1997
Location: Austin, TX
Posts: 1,006
jhersh has a reputation beyond reputejhersh has a reputation beyond reputejhersh has a reputation beyond reputejhersh has a reputation beyond reputejhersh has a reputation beyond reputejhersh has a reputation beyond reputejhersh has a reputation beyond reputejhersh has a reputation beyond reputejhersh has a reputation beyond reputejhersh has a reputation beyond reputejhersh has a reputation beyond repute
Re: Vision/AxisCamera2010.h

Quote:
Originally Posted by PlaidPillagers View Post
Has anyone found a work around/patch/other solution? I need to do a lot of coding for my camera still....
A work around was explained in the post before yours.
Reply With Quote
  #9   Spotlight this post!  
Unread 17-02-2010, 20:33
PlaidPillagers's Avatar
PlaidPillagers PlaidPillagers is offline
Registered User
FRC #2538 (Plaid Pillagers)
 
Join Date: Jan 2008
Rookie Year: 2008
Location: Morris, Minnesota
Posts: 29
PlaidPillagers is an unknown quantity at this point
Re: Vision/AxisCamera2010.h

Quote:
Originally Posted by Mike Mahar View Post
Joe,
The 4.2 precompiled WPILIB does not have the camera code in it. I duplicated this from the sources in firstforge.
Could anyone go into a bit more detail on how to do this please? Thank you.
__________________
Team 2538
Plaid Pillagers
Morris, Minnesota
Rookie Year 2008
Reply With Quote
  #10   Spotlight this post!  
Unread 17-02-2010, 21:25
Radical Pi Radical Pi is offline
Putting the Jumper in the Bumper
AKA: Ian Thompson
FRC #0639 (Code Red Robotics)
Team Role: Programmer
 
Join Date: Jan 2010
Rookie Year: 2010
Location: New York
Posts: 655
Radical Pi has a spectacular aura aboutRadical Pi has a spectacular aura aboutRadical Pi has a spectacular aura about
Re: Vision/AxisCamera2010.h

Quote:
Originally Posted by PlaidPillagers View Post
Could anyone go into a bit more detail on how to do this please? Thank you.
Easiest way is to get an account on FirstForge and get the source through svn. Windriver should be able to compile the code for WPILib and you just replace the current executable
__________________

"To have no errors would be life without meaning. No strugle, no joy"
"A network is only as strong as it's weakest linksys"
Reply With Quote
  #11   Spotlight this post!  
Unread 17-02-2010, 21:35
BradAMiller BradAMiller is offline
Registered User
AKA: Brad
#0190 ( Gompei and the Herd)
Team Role: Mentor
 
Join Date: Mar 2004
Location: Worcester, MA
Posts: 588
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: Vision/AxisCamera2010.h

I just rebuilt the library and posted it at:
http://first.wpi.edu/FRC/frccupdates.html

Please give it a try by installing the update and relinking. Let us know if it works.

Sorry for the confusion, I think we hit some limit in the library that's making the build process somewhat unpredictable.
__________________
Brad Miller
Robotics Resource Center
Worcester Polytechnic Institute
Reply With Quote
  #12   Spotlight this post!  
Unread 17-02-2010, 22:16
PlaidPillagers's Avatar
PlaidPillagers PlaidPillagers is offline
Registered User
FRC #2538 (Plaid Pillagers)
 
Join Date: Jan 2008
Rookie Year: 2008
Location: Morris, Minnesota
Posts: 29
PlaidPillagers is an unknown quantity at this point
Re: Vision/AxisCamera2010.h

Quote:
Originally Posted by BradAMiller View Post
I just rebuilt the library and posted it at:
http://first.wpi.edu/FRC/frccupdates.html

Please give it a try by installing the update and relinking. Let us know if it works.

Sorry for the confusion, I think we hit some limit in the library that's making the build process somewhat unpredictable.
Downloaded and installed. I rebuilt and downloaded my project, and these three lines still crash my code ("No robot code"):
Code:
		AxisCamera &camera = AxisCamera::GetInstance();
		camera.WriteResolution(AxisCameraParams::kResolution_160x120);
		camera.WriteBrightness(0);
Any further suggestions?
__________________
Team 2538
Plaid Pillagers
Morris, Minnesota
Rookie Year 2008
Reply With Quote
  #13   Spotlight this post!  
Unread 17-02-2010, 23:38
Zme Zme is offline
Registered User
FRC #2619
 
Join Date: Jan 2009
Location: Michigan
Posts: 83
Zme is on a distinguished road
Re: Vision/AxisCamera2010.h

attach a console to it so you can watch the boot progress, what error is it giving?
Reply With Quote
  #14   Spotlight this post!  
Unread 17-02-2010, 23:43
PlaidPillagers's Avatar
PlaidPillagers PlaidPillagers is offline
Registered User
FRC #2538 (Plaid Pillagers)
 
Join Date: Jan 2008
Rookie Year: 2008
Location: Morris, Minnesota
Posts: 29
PlaidPillagers is an unknown quantity at this point
Re: Vision/AxisCamera2010.h

Quote:
Originally Posted by Zme View Post
attach a console to it so you can watch the boot progress, what error is it giving?
Could you walk me through attaching a console?
__________________
Team 2538
Plaid Pillagers
Morris, Minnesota
Rookie Year 2008
Reply With Quote
  #15   Spotlight this post!  
Unread 17-02-2010, 23:50
Zme Zme is offline
Registered User
FRC #2619
 
Join Date: Jan 2009
Location: Michigan
Posts: 83
Zme is on a distinguished road
Re: Vision/AxisCamera2010.h

couple of ways to do it, one is flip the console out dip switch on the crio and attach to the serial port through a null modem to a computer that is running some console program (terminal.exe works or there is one built into windriver) second is to open up a net console, right click on the remote host in windriver (after connecting to it) then go to target tools and finally target console, a dialog box should pop up just hit ok,

i don't know how well the target console will work to watch the crio boot though, might connect to late, there is another way to do it but i don't know it so someone else will have to help you out with that
best of luck
Zme
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
AxisCamera2010.h not found d4mation C/C++ 2 13-02-2010 14:05
Vision Assistant Sykan NI LabVIEW 1 17-01-2009 16:43
Vision Illuminators Qbranch Programming 3 10-01-2008 03:20
n.e.r.d. vision feedback MattK General Forum 15 05-07-2006 20:11
n.e.r.d. Vision Episode 3! MattK General Forum 15 05-07-2006 13:06


All times are GMT -5. The time now is 12:40.

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