Go to Post I don't see why this is an issue. Robots are immune to the N1H1 virus. - JesseK [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

 
 
 
Thread Tools Rate Thread Display Modes
Prev Previous Post   Next Post Next
  #12   Spotlight this post!  
Unread 03-02-2010, 17:35
PhilBot's Avatar
PhilBot PhilBot is offline
Get a life? This IS my life!
AKA: Phil Malone
FRC #1629 (GaCo: The Garrett Coalition)
Team Role: Mentor
 
Join Date: Jan 2006
Rookie Year: 2006
Location: Maryland
Posts: 744
PhilBot has a reputation beyond reputePhilBot has a reputation beyond reputePhilBot has a reputation beyond reputePhilBot has a reputation beyond reputePhilBot has a reputation beyond reputePhilBot has a reputation beyond reputePhilBot has a reputation beyond reputePhilBot has a reputation beyond reputePhilBot has a reputation beyond reputePhilBot has a reputation beyond reputePhilBot has a reputation beyond repute
Re: Holonomic drive angle?

Quote:
Originally Posted by jhersh View Post
It really needs to include the reversal so that it is consistent with the Arcade and Tank Drive VIs.
Completely dissagree. Doing it just to be consistant with a bad convention makes little sense to me. The more you do it, the harder it is when you reach a critical mass of confusion. We got rid of 0-255 for joystick values and moved to +/-1. Hooray!!! Is it so hard to also adopt a logical orientation convention as well?

Having consitant conventions is essential for being able to do sensor fusion and hybrid controls. When it comes to mixing automated functions with Joystick input, you shouldn't have to be constantly inverting and uninverting.

I've worked through many of the NI Drive internals, and I'm constantly confused as to when the negative Y is and isn't included in the calculations. If nothing else, the Context help should document that a specific joystick input is assumed to be inverted.

The fact that the Drive Arcade and Drive Holomonic need different motor inversion flags just makes my case for the general confusion.

Quote:
We considered flipping the Y axis in the Joystick API, but we ran into a showstopper problem with that approach... with game pads and any random joystick, we don't have any way to know what axes are "Y" axes and which are not. I think it would be worse to have a game pad where one stick is positive forward and the other is negative forward. Because we couldn't know that it would compensate for all axes that needed it, we left it out.
OK, If it's a joystick configuration issue, put the inversion option in the Open Joystick Vi, just like you have in the Open Drive VI. Problem solved....


Here's my read... and then I'll get off my soapbox.

I've been doing this (remotely operated vehicles) for 20 years BUT I still have a heck of a time explaining the inner working of these VI's to my budding programmers. It's not that the concept is hard (I love geometry and vector math), it's just that there aren't any consistent conventions. I get half way through the math, and realize that an input was assumed to be negative forward.

My recommendation to the NI FIRST programmers.

Please decide: Is "forward" positive, or negative? Pick one and STICK WITH IT. eg: In your NI Robotics module, Positive drive on motors run Forward.

If a senor or actuator need to be pulled into conformance... do it in that device's VI's. Preferably during the "Open".

It's not a matter of convenience, it's a matter of good embedded programming.

Loud thump as I step down
Sorry for being a pain... it's just one of my pet programming peves
__________________
Phil Malone
Garrett Engineering And Robotics Society (GEARS) founder.
http://www.GEARSinc.org

FRC1629 Mentor, FTC2818 Coach, FTC4240 Mentor, FLL NeXTGEN Mentor
Reply With Quote
 


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
Holonomic Drive Example? I am error NI LabVIEW 9 12-02-2010 15:32
Holonomic Drive Help star_lancer NI LabVIEW 2 01-02-2010 22:39
Switching to Holonomic Drive MachineSMMC NI LabVIEW 1 22-01-2010 13:07
Holonomic Drive Question Jeff Waegelin Technical Discussion 12 20-11-2005 21:23
Holonomic Drive Mathmatics Discussion robotaddict Programming 35 15-10-2005 13:29


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

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