Go to Post Wow, possibly a HPJIE*? How cool would that be? *High Paying Job In Electronics. - DonRotolo [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
  #16   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
  #17   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
  #18   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
  #19   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
  #20   Spotlight this post!  
Unread 18-02-2010, 00:31
misko misko is offline
Registered User
FRC #0852
 
Join Date: Dec 2009
Location: California
Posts: 22
misko 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.
Thanks. Downloaded and installed. It fixes the unresolved problems with the previous version. I'm not having the issues plaid is having. Plaid, perhaps confirm that your crio is running the v20 code by checking the version under the drive station diagnostics tab?
Reply With Quote
  #21   Spotlight this post!  
Unread 18-02-2010, 10:51
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

I reinstalled all of the updates, and that helped. The camera code works now, and everything is considerably better.

There is a significant lag time on the camera to the DS display however. Is that normal?
__________________
Team 2538
Plaid Pillagers
Morris, Minnesota
Rookie Year 2008
Reply With Quote
  #22   Spotlight this post!  
Unread 18-02-2010, 11:31
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

to a point yes, how much lag are you talking?
Reply With Quote
  #23   Spotlight this post!  
Unread 18-02-2010, 11:53
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

At its worst roughly from a second and a half to two seconds. In general though about half that.
__________________
Team 2538
Plaid Pillagers
Morris, Minnesota
Rookie Year 2008
Reply With Quote
  #24   Spotlight this post!  
Unread 18-02-2010, 12:00
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

a half second i believe is the spec for the updated code for everything
try lowering the resolution, making sure the driverstation is not having its processing power strangled by windows power management, connect it via ethernet to the router, remove the live readout graphs from the dashboard if you have not already done so.

other than that i don't know what to tell you
good luck
Reply With Quote
  #25   Spotlight this post!  
Unread 19-02-2010, 08:27
Greg McKaskle Greg McKaskle is offline
Registered User
FRC #2468 (Team NI & Appreciate)
 
Join Date: Apr 2008
Rookie Year: 2008
Location: Austin, TX
Posts: 4,753
Greg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond repute
Re: Vision/AxisCamera2010.h

All good advice, but from my testing, the charts on the dashboard do not add much load. I saw no difference with or without the charts.

Another thing that will help is to limit the FPS of the camera to what you need rather than telling it to go full 30fps.

Greg McKaskle
Reply With Quote
  #26   Spotlight this post!  
Unread 19-02-2010, 08:49
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

we saw, (or thought we saw at least) a significant difference with and with out them, haven't run any tests though so can't say for sure
Reply With Quote
  #27   Spotlight this post!  
Unread 19-02-2010, 16:46
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

My camera code has gone back to crashing my robot.
Doing this will build and download:
Code:
AxisCamera *camera;
and this builds but does the same "no robot code" thing on the drivers station:
Code:
AxisCamera &camera = AxisCamera::GetInstance();
I reimaged our crio (v20) and redownloaded the code. No help. I reinstalled workbench update 4.3, remiaged the crio, and redownloaded code. Still nothing.

It was working yesterday morning and it doesn't work now but I'm convinced it's a library problem.
__________________
Team 2538
Plaid Pillagers
Morris, Minnesota
Rookie Year 2008
Reply With Quote
  #28   Spotlight this post!  
Unread 19-02-2010, 18:44
byteit101's Avatar
byteit101 byteit101 is offline
WPILib maintainer (WPI)
AKA: Patrick Plenefisch
no team (The Cat Attack (Formerly))
Team Role: Programmer
 
Join Date: Jan 2009
Rookie Year: 2009
Location: Worcester
Posts: 699
byteit101 is a glorious beacon of lightbyteit101 is a glorious beacon of lightbyteit101 is a glorious beacon of lightbyteit101 is a glorious beacon of lightbyteit101 is a glorious beacon of lightbyteit101 is a glorious beacon of light
Re: Vision/AxisCamera2010.h

try rebuilding (right click project>Rebuild) It often solves some of our problems
__________________
Bubble Wrap: programmers rewards
Watchdog.Kill();
printf("Watchdog is Dead, Celebrate!");
How to make a self aware robot: while (∞) cout<<(sqrt(-∞)/-0);
Previously FRC 451 (The Cat Attack)
Now part of the class of 2016 at WPI & helping on WPILib
Reply With Quote
  #29   Spotlight this post!  
Unread 19-02-2010, 22:52
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 byteit101 View Post
try rebuilding (right click project>Rebuild) It often solves some of our problems
I've tried that already.

The situation has gotten worse, the Drivers Station LCD now also puts the robot in the same situation... help!
__________________
Team 2538
Plaid Pillagers
Morris, Minnesota
Rookie Year 2008
Reply With Quote
  #30   Spotlight this post!  
Unread 20-02-2010, 00:08
SuperBK's Avatar
SuperBK SuperBK is offline
Registered User
AKA: BrianK
FRC #1225 (Amperage Robotics)
Team Role: Mentor
 
Join Date: Jan 2007
Rookie Year: 2006
Location: Henersonville, NC
Posts: 358
SuperBK is just really niceSuperBK is just really niceSuperBK is just really niceSuperBK is just really nice
Re: Vision/AxisCamera2010.h

I tried to add the minimum camera code to the simple template to get camera to the dashboard. It builds, but when i download it it doesn't run because a symbol is missing: AxisCamera::GetInstance();

My includes are
#include "WPILib.h"
#include "Vision/AxisCamera.h"
#include "Vision/HSLImage.h"

My code calls:
AxisCamera &camera = AxisCamera::GetInstance();
HSLImage image;
camera.GetImage(&image);


Are those right?

You you have to call GetImage to get it to display on the dashboard?

Has anybody had any luck with the updated wplib?

Brian
__________________
Brian K
Team 1225 Robotics Mentor
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 13: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