Go to Post You all have made me think about this in a new way - which I appreciate. - aaeamdar [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 18-02-2010, 10:47
jmanela's Avatar
jmanela jmanela is offline
+1 is BIGGER than -1
AKA: Joshua Manela
FRC #2586 (Fondy Fire)
Team Role: College Student
 
Join Date: Aug 2008
Rookie Year: 2009
Location: Michigan
Posts: 314
jmanela is a splendid one to beholdjmanela is a splendid one to beholdjmanela is a splendid one to beholdjmanela is a splendid one to beholdjmanela is a splendid one to beholdjmanela is a splendid one to beholdjmanela is a splendid one to behold
Ghostly Joytick Values.

Yesterday my team and I were doing some testing on our robot. We already have the robot drive code written (4 motor tank) and we have tested that out before. We just ran another test to see if everything was going fine. When we ran the code, the right side at our robot spun at 100% power backwards (-1) while the right side was silent. (this is at joystick equilibrium). I never scaled the joystick values in my code. I probed the wires coming out of the joystick axis get, and found they were all messed up. The right joystick was at -1, and the left was at 0.03 (that was fine though). I restarted the robot and switched the order of the joysticks, and something wierder happened. The new rightside default was at .3, and the left side was at -.4. (no code was changed since the last run). I restarted the robot a third time, and switched around the joysticks, and they were both correctly scaled, but inverted. They stayed that way for the rest of the night (for as long as I know). any ideas why this happened?
__________________
||2009|| Entrepeneurship Award, QF - Traverse City | Rookie All Star, QF - Detroit | Highest Rookie Seed, Rookie All Star, QF - Michigan State Championship | Finalist - MARC ||2010|| Engineering Inspiration, Website Award, SF- Kettering | Judges Award, Website Award, SF - Detroit | Website Award, Winner, Michigan State Champ //Thank you 469 and 1918!! | Finalist - MARC ||2011|| Engineering Inspiration, Website - Kettering | Entrepreneurship, Website, Finalist - Waterford | Website - MSC
Reply With Quote
  #2   Spotlight this post!  
Unread 18-02-2010, 11:06
Noamr Noamr is offline
Registered User
FRC #1574 (Miscar)
Team Role: Programmer
 
Join Date: Jan 2008
Rookie Year: 2008
Location: Israel
Posts: 21
Noamr is an unknown quantity at this point
Re: Ghostly Joytick Values.

Wow that sounds freakish...
I know this isn't very helpful but you should try it on the simplest code to see if it's a hardware issue or not...
You can try reading from the joysticks on a super-simple VI that just runs on your computer (function pallette-->connectivity-->input devices) without all the FRC software.

Good luck,
Noam
MisCar 1574
Reply With Quote
  #3   Spotlight this post!  
Unread 18-02-2010, 11:16
jmanela's Avatar
jmanela jmanela is offline
+1 is BIGGER than -1
AKA: Joshua Manela
FRC #2586 (Fondy Fire)
Team Role: College Student
 
Join Date: Aug 2008
Rookie Year: 2009
Location: Michigan
Posts: 314
jmanela is a splendid one to beholdjmanela is a splendid one to beholdjmanela is a splendid one to beholdjmanela is a splendid one to beholdjmanela is a splendid one to beholdjmanela is a splendid one to beholdjmanela is a splendid one to behold
Re: Ghostly Joytick Values.

Quote:
Originally Posted by Noamr View Post
Wow that sounds freakish...
I know this isn't very helpful but you should try it on the simplest code to see if it's a hardware issue or not...
You can try reading from the joysticks on a super-simple VI that just runs on your computer (function pallette-->connectivity-->input devices) without all the FRC software.

Good luck,
Noam
MisCar 1574
thanks for the idea, i'll try that today.
__________________
||2009|| Entrepeneurship Award, QF - Traverse City | Rookie All Star, QF - Detroit | Highest Rookie Seed, Rookie All Star, QF - Michigan State Championship | Finalist - MARC ||2010|| Engineering Inspiration, Website Award, SF- Kettering | Judges Award, Website Award, SF - Detroit | Website Award, Winner, Michigan State Champ //Thank you 469 and 1918!! | Finalist - MARC ||2011|| Engineering Inspiration, Website - Kettering | Entrepreneurship, Website, Finalist - Waterford | Website - MSC
Reply With Quote
  #4   Spotlight this post!  
Unread 18-02-2010, 13:09
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: Ghostly Joytick Values.

One of the dirty little secrets for HID joysticks is that they autocenter when the connection is made. Depending on the situation, that could be shortly after they are plugged in, it could be when the program is started, it could be when F1 is pressed.

Anyway, you will leave the joystick with a bias if you have it off center in these situations. This seems easier to do with gamepads than big joysticks.

Does that possibly explain your symptoms?

Greg McKaskle
Reply With Quote
  #5   Spotlight this post!  
Unread 18-02-2010, 22:20
jmanela's Avatar
jmanela jmanela is offline
+1 is BIGGER than -1
AKA: Joshua Manela
FRC #2586 (Fondy Fire)
Team Role: College Student
 
Join Date: Aug 2008
Rookie Year: 2009
Location: Michigan
Posts: 314
jmanela is a splendid one to beholdjmanela is a splendid one to beholdjmanela is a splendid one to beholdjmanela is a splendid one to beholdjmanela is a splendid one to beholdjmanela is a splendid one to beholdjmanela is a splendid one to behold
Re: Ghostly Joytick Values.

Quote:
One of the dirty little secrets for HID joysticks is that they autocenter when the connection is made. Depending on the situation, that could be shortly after they are plugged in, it could be when the program is started, it could be when F1 is pressed.

Anyway, you will leave the joystick with a bias if you have it off center in these situations. This seems easier to do with gamepads than big joysticks.

Does that possibly explain your symptoms?

Greg McKaskle
thank you. that makes sense, but it still doesn't explain the change in joystick default when i restarted the robot and kept everything the way it was.
__________________
||2009|| Entrepeneurship Award, QF - Traverse City | Rookie All Star, QF - Detroit | Highest Rookie Seed, Rookie All Star, QF - Michigan State Championship | Finalist - MARC ||2010|| Engineering Inspiration, Website Award, SF- Kettering | Judges Award, Website Award, SF - Detroit | Website Award, Winner, Michigan State Champ //Thank you 469 and 1918!! | Finalist - MARC ||2011|| Engineering Inspiration, Website - Kettering | Entrepreneurship, Website, Finalist - Waterford | Website - MSC
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
Joystick values (?) beefy1 Programming 1 23-12-2008 11:26
gyro values beefy1 Programming 3 15-12-2008 09:51
penalties values??? colin340 Rules/Strategy 4 08-03-2008 21:37
Paint values capenga Programming 1 20-02-2005 13:25
PWM Values... Ian W. Programming 4 17-03-2002 21:53


All times are GMT -5. The time now is 22:04.

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