Go to Post I think all drivers will be required to wear tights! - Mike Martus [more]
Home
Go Back   Chief Delphi > Technical > Programming
CD-Media   CD-Spy  
portal register members calendar search Today's Posts Mark Forums Read FAQ rules

 
Closed Thread
 
Thread Tools Rate Thread Display Modes
  #1   Spotlight this post!  
Unread 30-01-2010, 20:43
rhf323's Avatar
rhf323 rhf323 is offline
El Capiton
AKA: Ryan Fuller
FRC #1458 (Red Tie Robotics)
Team Role: Leadership
 
Join Date: Jan 2010
Rookie Year: 2009
Location: California
Posts: 23
rhf323 is an unknown quantity at this point
Solenoid Output in Dashboard

We copied the code from the Dashboard example and were able to get the pwms, analog sensors, and digital sensors to display on the dashboard.

How do we get the solenoids and everything else to work?
  #2   Spotlight this post!  
Unread 31-01-2010, 15:12
rdk1024 rdk1024 is offline
Registered User
no team
 
Join Date: Jan 2009
Location: Hawaii
Posts: 1
rdk1024 is an unknown quantity at this point
Re: Solenoid Output in Dashboard

rhf323: You mentioned that you copied code from the Dashboard example. Could you tell me where you found that example code? I am having trouble with the Dashboard on our Classmate PC and would like to see the example that you used to see if it might help me. Thanks in advance.
  #3   Spotlight this post!  
Unread 31-01-2010, 17:19
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: Solenoid Output in Dashboard

Assuming you are using C++, I noticed that the dashboard example doesn't bother to check solenoids and instead just returns all off. Most likely because the writers didn't want to include the extra solenoid objects. If you add it yourself it probably will work
  #4   Spotlight this post!  
Unread 01-02-2010, 18:20
rhf323's Avatar
rhf323 rhf323 is offline
El Capiton
AKA: Ryan Fuller
FRC #1458 (Red Tie Robotics)
Team Role: Leadership
 
Join Date: Jan 2010
Rookie Year: 2009
Location: California
Posts: 23
rhf323 is an unknown quantity at this point
Re: Solenoid Output in Dashboard

One of the example projects built into WindRiver for us was a DashBoardDataExample project that had the code we used.
  #5   Spotlight this post!  
Unread 01-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: Solenoid Output in Dashboard

yeah, that example doesn't do the solenoids. If you look at the code:
Code:
// Can't read solenoids without an instance of the object
dash.AddU8((char) 0);
that is what is sending the solenoid output. Almost all of the outputs in that example are really just hard-coded and don't actually pay attention to the real I/O. You will probably want to re-write that for the actual dashboard you use
  #6   Spotlight this post!  
Unread 02-02-2010, 15:12
rhf323's Avatar
rhf323 rhf323 is offline
El Capiton
AKA: Ryan Fuller
FRC #1458 (Red Tie Robotics)
Team Role: Leadership
 
Join Date: Jan 2010
Rookie Year: 2009
Location: California
Posts: 23
rhf323 is an unknown quantity at this point
Re: Solenoid Output in Dashboard

Well we got it working thanks any way
  #7   Spotlight this post!  
Unread 03-02-2010, 09:30
Kyledoo Kyledoo is offline
Registered User
FRC #2603
 
Join Date: Jan 2010
Location: Ohio
Posts: 24
Kyledoo is an unknown quantity at this point
Re: Solenoid Output in Dashboard

Quote:
Originally Posted by rhf323 View Post
Well we got it working thanks any way
How did you get it working? Are you using the default dashboard? Which values did you need to un-comment? Do you have to do anything like encoder1.Get() or does it just grab data from the inputs? This I/O stuff is so hard for me to understand!
Closed Thread


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
Solenoid not firing off Solenoid Breakout spooncwru Pneumatics 2 30-01-2010 17:46
Labview Dashboard and updated IFI dashboard spec Joe Ross LabView and Data Acquisition 1 04-04-2006 02:04
2004 Dashboard Protocal vs 2005 Dashboard Protocal Kyle T Programming 4 14-03-2005 22:19
Weird Output from Dashboard Port Ian W. Programming 9 06-03-2004 21:33
Dashboard Output Question jnossen Technical Discussion 5 02-02-2002 19:52


All times are GMT -5. The time now is 01:59.

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