Go to Post YO DAWGS. I GOT THIS. - LiquidMagik [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 23-01-2010, 16:01
non847 non847 is offline
Registered User
FRC #3089
 
Join Date: Jan 2010
Location: Haifa, Israel
Posts: 3
non847 is an unknown quantity at this point
Sending data from the DS back to the robot

Here is the picture i have in mind:
i add a control input to the dashboard.
i type some value inside.
i push a button on the joystick that 'apply' the changes and the robot comply
to the value i wrote on the dashboard. say for example seting the degree of a servo.

i know how the change the data that is sent from the robot to the DS, and display any information i like on the dashbaord. but i want to do that in the opposite direction.

how do i do that?
help will be appreciated
  #2   Spotlight this post!  
Unread 23-01-2010, 17:16
apalrd's Avatar
apalrd apalrd is offline
More Torque!
AKA: Andrew Palardy (Most people call me Palardy)
VRC #3333
Team Role: College Student
 
Join Date: Mar 2009
Rookie Year: 2009
Location: Auburn Hills, MI
Posts: 1,347
apalrd has a reputation beyond reputeapalrd has a reputation beyond reputeapalrd has a reputation beyond reputeapalrd has a reputation beyond reputeapalrd has a reputation beyond reputeapalrd has a reputation beyond reputeapalrd has a reputation beyond reputeapalrd has a reputation beyond reputeapalrd has a reputation beyond reputeapalrd has a reputation beyond reputeapalrd has a reputation beyond repute
Re: Sending data from the DS back to the robot

To my knowledge, you cannot. They want all teams to have the same processing power, and allowing communication to the dashboard allows teams with a second powerful laptop for Dashboard to have more power if they can bidirectionally communicate. Also, to my knowledge the FMS system blocks all communication over wireless that did not originate from the Robot, Classmate, or FMS. The classmate gets the data from the robot and passes it to the Dashboard PC, so the dashboard PC cannot communicate directly to the robot.

I have no idea what you would need to get to the robot before a match other than the Autonomous mode, but you should be able to set that with a switch on the Cypress board (or if you don't use it the Virtual IO), or the Analog or DSC inputs on the robot. A simple multi-position switch to an analog input has proven to work well enough.
__________________
Kettering University - Computer Engineering
Kettering Motorsports
Williams International - Commercial Engines - Controls and Accessories
FRC 33 - The Killer Bees - 2009-2012 Student, 2013-2014 Advisor
VEX IQ 3333 - The Bumble Bees - 2014+ Mentor

"Sometimes, the elegant implementation is a function. Not a method. Not a class. Not a framework. Just a function." ~ John Carmack
  #3   Spotlight this post!  
Unread 23-01-2010, 22:13
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: Sending data from the DS back to the robot

You can't send data from the dashboard to the robot.

But the robot can read the value of a joystick throttle and display it on the dashboard, so you can get the same general effect even though you're not changing the value by clicking and typing.
  #4   Spotlight this post!  
Unread 24-01-2010, 01:27
non847 non847 is offline
Registered User
FRC #3089
 
Join Date: Jan 2010
Location: Haifa, Israel
Posts: 3
non847 is an unknown quantity at this point
Re: Sending data from the DS back to the robot

i'm not planning to use it on the match. only for configuration purpose. for example twiking the PID gains to in the optimal state.
i have found where the DS sending the enable/disable state to the robot.
maybe i can manipulate that data packet what do you say?
  #5   Spotlight this post!  
Unread 24-01-2010, 03:06
Abrakadabra Abrakadabra is offline
Here We Go !!!
AKA: Scott Kukshtel, Mr. K
FRC #3467 (The Windham Windup!)
Team Role: Mentor
 
Join Date: Jan 2007
Rookie Year: 2002
Location: Windham, New Hampshire
Posts: 159
Abrakadabra has a brilliant futureAbrakadabra has a brilliant futureAbrakadabra has a brilliant futureAbrakadabra has a brilliant futureAbrakadabra has a brilliant futureAbrakadabra has a brilliant futureAbrakadabra has a brilliant futureAbrakadabra has a brilliant futureAbrakadabra has a brilliant futureAbrakadabra has a brilliant futureAbrakadabra has a brilliant future
Re: Sending data from the DS back to the robot

I think this is exactly what you want:
http://www.chiefdelphi.com/forums/sh...ad.php?t=80900

The solution essentially involves running a webserver on the robot and using proxy objects in your code that can both report their state to any web browser, and also take changes to those values back from user input to the
browser.

I have been using Dustin's code since last year to tune PID loops, and it works like a charm! Highly recommended.
  #6   Spotlight this post!  
Unread 24-01-2010, 10:08
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,748
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: Sending data from the DS back to the robot

If you want to send just a few values, the DS lets you use virtual I/O. If you do not connect the cypress board, you can type values into the analog 0-1023, and you can physically set eight digitals.

Greg McKaskle
  #7   Spotlight this post!  
Unread 24-01-2010, 11:49
apalrd's Avatar
apalrd apalrd is offline
More Torque!
AKA: Andrew Palardy (Most people call me Palardy)
VRC #3333
Team Role: College Student
 
Join Date: Mar 2009
Rookie Year: 2009
Location: Auburn Hills, MI
Posts: 1,347
apalrd has a reputation beyond reputeapalrd has a reputation beyond reputeapalrd has a reputation beyond reputeapalrd has a reputation beyond reputeapalrd has a reputation beyond reputeapalrd has a reputation beyond reputeapalrd has a reputation beyond reputeapalrd has a reputation beyond reputeapalrd has a reputation beyond reputeapalrd has a reputation beyond reputeapalrd has a reputation beyond repute
Re: Sending data from the DS back to the robot

What language is this in?

In LabVIEW, you can hit the Run button in Robot Main and it will download your code and run it, without flashing it (it will go away when you reboot). You can place controls on your front panels and manipulate them as the code is running. Quick and easy way to tune PID loops. Then, when you close the program, you can right-click on the controls and go to Data Operations => Set value to default, and leave the control on the front panel. It will keep your data there, even when you build and download code.
__________________
Kettering University - Computer Engineering
Kettering Motorsports
Williams International - Commercial Engines - Controls and Accessories
FRC 33 - The Killer Bees - 2009-2012 Student, 2013-2014 Advisor
VEX IQ 3333 - The Bumble Bees - 2014+ Mentor

"Sometimes, the elegant implementation is a function. Not a method. Not a class. Not a framework. Just a function." ~ John Carmack
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
Sending data from RC to OI Nathan Programming 7 03-02-2008 22:32
Getting data from the robot mfwit LabView and Data Acquisition 1 19-02-2006 20:07
Sending data back to the OI DanDon Programming 13 26-01-2006 15:17
Sending Data Raven_Writer Programming 8 11-09-2003 16:28
Our Robot Came Back Broken from the Museum mtaman02 Robot Showcase 8 09-10-2002 18:18


All times are GMT -5. The time now is 10:06.

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