Go to Post What have we learned? Cannons are awesome :rolleyes: - DominickC [more]
Home
Go Back   Chief Delphi > Technical > Programming > NI LabVIEW
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 04-09-2011, 16:36
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,113
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: Custom Controller Info

The Driver Station application sends only six axes and twelve buttons worth of "joystick" data to the robot. You might be able to use another application running at the same time -- a Dashboard app, for example -- to do more extensive communication with the controller via a specialized driver and with the robot over a different TCP connection that you establish.
Reply With Quote
  #2   Spotlight this post!  
Unread 04-09-2011, 18:00
baronep's Avatar
baronep baronep is offline
Student President
FRC #2848 (Jesuit All-Sparks)
Team Role: Leadership
 
Join Date: Jan 2010
Rookie Year: 2010
Location: Dallas TX
Posts: 167
baronep is on a distinguished road
Re: Custom Controller Info

Ok, so i found under the communication panel LabView's functions for reading controllers (mine is a Space Navigator). However, it outputs an accumulation instead of a velocity. I think that I want the derivative of the data that it is outputing, however I cannot seem to get the derivative tool to work.
Any suggestions or examples?

Patrick
Reply With Quote
  #3   Spotlight this post!  
Unread 04-09-2011, 21:11
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,752
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: Custom Controller Info

Does the control panel let you change settings for the controller? Perhaps it lets you remap buttons, turn on/off accumulation, etc.

Greg McKaskle
Reply With Quote
  #4   Spotlight this post!  
Unread 05-09-2011, 01:03
baronep's Avatar
baronep baronep is offline
Student President
FRC #2848 (Jesuit All-Sparks)
Team Role: Leadership
 
Join Date: Jan 2010
Rookie Year: 2010
Location: Dallas TX
Posts: 167
baronep is on a distinguished road
Re: Custom Controller Info

No, I also tried the same function with an xbox controller. When I pushed forward on the stick, the number went from 0 to 1. However on the Space Navigator it went from zero and then continued rising (accumulating). I would assume that I want to find the rate at which the numbers are raising. I tried the express derivative function to determine the rate of change, but I could only get an output of zero. On the regular and the point by point derivative functions there is an input called "initial condition", is anyone familiar with this. Finally, would running 6 derivations in real time max out the cRIO. If so, would there be a way to write a custom firmware to read the USB info, because im sure that the actual sensors measure how far the controller is moved with a defined range and not this useless accumulator junk.

Any help would be appreciated,

Patrick
Reply With Quote
  #5   Spotlight this post!  
Unread 05-09-2011, 10:35
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,752
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: Custom Controller Info

Seeing as how the cRIO can decode a jpeg with 80,000 pixels in a 20ms control period, it can certainly do a few derivatives. But directly to the issue. Try just plotting the axis value and determine if it is a line, a curve, or other. Also, do you have any documentation on the controller? It isn't uncommon for a supplier to have developer level documents on their site that describe the SW interface or the configurations available.

The initialize value on analysis blocks should receive one True, and then Falses. It is often wired with either a (first run) block or the i==0 expression based on a loop in the program. Depending on the joystick graph, you can probably just use discrete math -- subtract the previous value to get the delta, and then normalize the delta between -1 and 1. I'd assume that the joystick simply adds a scaled value to an accumulated value. Note that this will glitch when/if the DS packet to the robot is dropped.

If you want to post some VIs and screenshots showing how the controller behaves, someone may have other ideas.

Greg McKaskle
Reply With Quote
  #6   Spotlight this post!  
Unread 05-09-2011, 11:17
Mark McLeod's Avatar
Mark McLeod Mark McLeod is offline
Just Itinerant
AKA: Hey dad...Father...MARK
FRC #0358 (Robotic Eagles)
Team Role: Engineer
 
Join Date: Mar 2003
Rookie Year: 2002
Location: Hauppauge, Long Island, NY
Posts: 8,833
Mark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond repute
Re: Custom Controller Info

The Space Navigator might serve you better as a positional control than a joystick replacement. Since it's a 3D mouse intended to control a point in space you might use it to control the absolute position of the robot on the field, or of a multi-degree-of-freedom manipulator.

Output is really a measure of torque translated to a moving point in 3D space. Twist/pull/lean harder and the point translates or moves faster.
Have you used the 3Dconnexion control panel to reduce the speed of each axis as much as possible?
__________________
"Rationality is our distinguishing characteristic - it's what sets us apart from the beasts." - Aristotle

Last edited by Mark McLeod : 05-09-2011 at 18:58.
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 20:46.

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