View Single Post
  #1   Spotlight this post!  
Unread 10-02-2011, 15:31
DSST\neal.ian DSST\neal.ian is offline
AAHHH!! WHERE'D ALL THE TIME GO?!?!
AKA: Ian Neal
FRC #2240 (Brute Force)
Team Role: Programmer
 
Join Date: Jan 2009
Rookie Year: 2009
Location: Thornton, CO
Posts: 30
DSST\neal.ian has a spectacular aura aboutDSST\neal.ian has a spectacular aura aboutDSST\neal.ian has a spectacular aura about
Send a message via AIM to DSST\neal.ian Send a message via MSN to DSST\neal.ian Send a message via Yahoo to DSST\neal.ian
Question Manipulating throttle output (function)

This isn't a question on how to program or anything, but more of a mathematical question (I put it here because I figured this was more oten visited). My question is this: what is a function/equation I can use to change what the lower bound on the throttle is? I know that it gives outputs from -1 to 1 and to use it I need to negate the value that comes out, since "up" is -1. I figured out a function to manipulate the throttle inputs to get values from 0 to 1, which was (Z+1)/2, of course multiplied times -1 to give the right values. Any thoughts, or questions? Did this make sense at all? Thanks.
__________________

-2010 Finalists! CO Regional 2010

2240 BRUTE FORCE!!!!!!!

Our site: http://robotics.scienceandtech.org