Go to Post you are going to gear that down right? Otherwise your robot will take about 10 minutes to reach its top speed of mach 2.6. - M. Hicken [more]
Home
Go Back   Chief Delphi > Technical > Programming > Java
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 26-01-2011, 15:08
buildmaster5000 buildmaster5000 is offline
Trying to program the swerve drive
AKA: Alex
FRC #2421 (Rolling Thunder Robotics)
Team Role: Alumni
 
Join Date: May 2009
Rookie Year: 2009
Location: Northern Virginia
Posts: 207
buildmaster5000 has much to be proud ofbuildmaster5000 has much to be proud ofbuildmaster5000 has much to be proud ofbuildmaster5000 has much to be proud ofbuildmaster5000 has much to be proud ofbuildmaster5000 has much to be proud ofbuildmaster5000 has much to be proud ofbuildmaster5000 has much to be proud of
Dashboard Camera Image and Data

This seems to be a common theme so I am going to be utterly blunt and pointed with a few questions to those who have been able to solve these problems that many teams are encountering:
1. With the default dashboard, how would one go about getting a camera image into the appropriate window? Ideally we could get two solution: one for running the camera through the cRIO and another solution for running the camera through the switch.

2. As discussed here and here, the example for displaying various PWM outputs, solinoid outputs (it doesn't work for me with 02011.4 installed), analog outputs, etc. is terribly commented and nearly impossible to figure out. Does anyone have a class or method that would be easy to understand and easy to incorporate into our programs?

Hopefully we can solve the problems and frustrations of many in one afternoon.
__________________
-Alex



2010 Washington DC Regional: Engineering Excellence Award
Reply With Quote
  #2   Spotlight this post!  
Unread 26-01-2011, 16:34
wdell wdell is offline
Registered User
AKA: William Dell
FRC #3999 (Shadetree Mechanics)
Team Role: Mentor
 
Join Date: Jan 2011
Rookie Year: 2010
Location: Killeen, Texas
Posts: 55
wdell has a spectacular aura aboutwdell has a spectacular aura about
Re: Dashboard Camera Image and Data

I'm not sure why some people are having problems with the code here. To double check, I just uninstalled and reinstalled all the FRC plugins, and it still builds without an error. Have you tried doing the same, removing and reinstalling the plugins?

Also, you could try commenting out the solenoid line that is causing problems, it shouldn't screw anything up. You just won't get any solenoid data on the dashboard.
Reply With Quote
  #3   Spotlight this post!  
Unread 26-01-2011, 22:40
frasnow's Avatar
frasnow frasnow is offline
Software
no team
Team Role: Mentor
 
Join Date: Jun 2010
Rookie Year: 2010
Location: Oregon
Posts: 83
frasnow is a splendid one to beholdfrasnow is a splendid one to beholdfrasnow is a splendid one to beholdfrasnow is a splendid one to beholdfrasnow is a splendid one to beholdfrasnow is a splendid one to beholdfrasnow is a splendid one to behold
Re: Dashboard Camera Image and Data

Quote:
Originally Posted by wdell View Post
Also, you could try commenting out the solenoid line that is causing problems, it shouldn't screw anything up. You just won't get any solenoid data on the dashboard.
Actually that doesn't work. You'll get a big ugly looking Dashboard Datatype error on the Dashboard of your classmate. As I said in my post on the other thread, I've tried 4 different PCs and they all have problems with that Solenoid line of code.
Reply With Quote
  #4   Spotlight this post!  
Unread 26-01-2011, 22:46
sjspry sjspry is offline
Registered User
FRC #1984
Team Role: Programmer
 
Join Date: Jan 2011
Rookie Year: 2010
Location: Kansas
Posts: 125
sjspry has a spectacular aura aboutsjspry has a spectacular aura aboutsjspry has a spectacular aura about
Re: Dashboard Camera Image and Data

You can only see the Axis Camera's feed through the stock dashboard if you connect it directly to the cRIO. As for displaying the outputs, there's some recent threads that should be pretty relevant to your interests.
Reply With Quote
  #5   Spotlight this post!  
Unread 27-01-2011, 08:34
wdell wdell is offline
Registered User
AKA: William Dell
FRC #3999 (Shadetree Mechanics)
Team Role: Mentor
 
Join Date: Jan 2011
Rookie Year: 2010
Location: Killeen, Texas
Posts: 55
wdell has a spectacular aura aboutwdell has a spectacular aura about
Re: Dashboard Camera Image and Data

Quote:
Originally Posted by frasnow View Post
Actually that doesn't work. You'll get a big ugly looking Dashboard Datatype error on the Dashboard of your classmate. As I said in my post on the other thread, I've tried 4 different PCs and they all have problems with that Solenoid line of code.
Again, I have no idea why you are having problems, mine is up to date and still works.

That being said, try replacing the solenoid line with a constant:

Code:
byte thisBytes = 0;
lowDashData.addByte(thisBytes);
Won't tell you what the solenoids are up to, but might allow you to use the rest of the code.
Reply With Quote
  #6   Spotlight this post!  
Unread 27-01-2011, 16:41
nima nima is offline
God of code
FRC #0246 (Overclocked)
Team Role: Programmer
 
Join Date: Jan 2011
Rookie Year: 2009
Location: Boston
Posts: 3
nima is an unknown quantity at this point
Re: Dashboard Camera Image and Data

For those of us who are trying to get a direct camera feed, what needs to be done to the dashboard to make this happen?

We have gotten a white screen where the camera image should be although we can connect to the camera via a web browser.
Reply With Quote
  #7   Spotlight this post!  
Unread 27-01-2011, 17:12
wdell wdell is offline
Registered User
AKA: William Dell
FRC #3999 (Shadetree Mechanics)
Team Role: Mentor
 
Join Date: Jan 2011
Rookie Year: 2010
Location: Killeen, Texas
Posts: 55
wdell has a spectacular aura aboutwdell has a spectacular aura about
Re: Dashboard Camera Image and Data

Quote:
Originally Posted by nima View Post
For those of us who are trying to get a direct camera feed, what needs to be done to the dashboard to make this happen?

We have gotten a white screen where the camera image should be although we can connect to the camera via a web browser.
Nothing has to be done to the dashboard, but the camera has to be set up correctly, and somewhere in your initialization routines you need to do AxisCamera.getInstance() to start it up.

Attaching FIRST's instructions on the proper way to set up the cam.
Attached Files
File Type: pdf How_to_Configure_Your_Camera.pdf (514.2 KB, 53 views)
Reply With Quote
  #8   Spotlight this post!  
Unread 29-01-2011, 06:13
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: Dashboard Camera Image and Data

The default dashboard and framework dashboard code are written to work with the camera connected to the cRIO. If connected to the dlink and the IP is set to be 10.te.am.xx, you will be able to communicate directly with the camera. This will require modifications to the dashboard.

Greg McKaskle
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 12:36.

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