Go to Post I wouldn't need a bullet proof vest I would need bullet proof shorts. - rees2001 [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 12-02-2016, 16:03
chubchub5577 chubchub5577 is offline
Registered User
FRC #1802
 
Join Date: Nov 2015
Location: Kansas City, Kansas
Posts: 17
chubchub5577 is an unknown quantity at this point
Drive from half speed to full speed toggled by a button

We would like to be able to make the bot go from full speed drive (We are using tank drive) then using a button to toggle it into half speed for fine adjustments then hit the button again to go back into full speed. If you have any questions feel free to ask I will answer ASAP. Thanks for any information!
__________________
Team Stealth 1802 Kansas City, Kansas
Lead Programmer
Team Ambassador
Financial Director
Tempus Fugit!!

Last edited by chubchub5577 : 12-02-2016 at 20:55.
Reply With Quote
  #2   Spotlight this post!  
Unread 12-02-2016, 16:10
tr6scott's Avatar
tr6scott tr6scott is offline
Um, I smell Motor!
AKA: Scott McBride
FRC #2137 (TORC)
Team Role: Mentor
 
Join Date: Dec 2007
Rookie Year: 2005
Location: Oxford, MI
Posts: 507
tr6scott has a reputation beyond reputetr6scott has a reputation beyond reputetr6scott has a reputation beyond reputetr6scott has a reputation beyond reputetr6scott has a reputation beyond reputetr6scott has a reputation beyond reputetr6scott has a reputation beyond reputetr6scott has a reputation beyond reputetr6scott has a reputation beyond reputetr6scott has a reputation beyond reputetr6scott has a reputation beyond repute
Re: Drive from half speed to full speed toggled by a button

Many teams have used squaring the input to give better low speed response to the sticks. May try and see if that feels right to the driver.

If using xbox controllers there are buttons on the sticks, so you can use those buttons to give finer control, and square the input.


Code:
X                         X^2
0                         0
0.0625                         0.00390625
0.125                         0.015625
0.1875                         0.03515625
0.25                         0.0625
0.3125                         0.09765625
0.375                         0.140625
0.4375                         0.19140625
0.5                         0.25
0.5625                         0.31640625
0.625                         0.390625
0.6875                         0.47265625
0.75                         0.5625
0.8125                         0.66015625
0.875                         0.765625
0.9375                         0.87890625
1                         1
__________________
The sooner we get behind schedule, the more time we have to catch up.


Last edited by tr6scott : 12-02-2016 at 16:14. Reason: formatted table better...
Reply With Quote
  #3   Spotlight this post!  
Unread 12-02-2016, 16:12
Andrew Merwin Andrew Merwin is offline
Registered User
FRC #5464 (Blue Jacket Robotics)
Team Role: Programmer
 
Join Date: Jan 2014
Rookie Year: 2013
Location: Isanti
Posts: 3
Andrew Merwin is an unknown quantity at this point
Re: Drive from half speed to full speed toggled by a button

What Language are you using?
Reply With Quote
  #4   Spotlight this post!  
Unread 12-02-2016, 16:44
samfruth's Avatar
samfruth samfruth is offline
Registered User
FRC #1710 (Ravonics Revolution)
Team Role: Driver
 
Join Date: Jan 2014
Rookie Year: 2013
Location: Olathe, Kansas
Posts: 132
samfruth will become famous soon enough
Re: Drive from half speed to full speed toggled by a button

http://imgur.com/AwjL4eB

Give this a whirl.
__________________



I kind of know programming
Reply With Quote
  #5   Spotlight this post!  
Unread 12-02-2016, 16:49
Ether's Avatar
Ether Ether is offline
systems engineer (retired)
no team
 
Join Date: Nov 2009
Rookie Year: 1969
Location: US
Posts: 8,038
Ether has a reputation beyond reputeEther has a reputation beyond reputeEther has a reputation beyond reputeEther has a reputation beyond reputeEther has a reputation beyond reputeEther has a reputation beyond reputeEther has a reputation beyond reputeEther has a reputation beyond reputeEther has a reputation beyond reputeEther has a reputation beyond reputeEther has a reputation beyond repute
Re: Drive from half speed to full speed toggled by a button



Perhaps you can code a LabVIEW equivalent of this.


Reply With Quote
  #6   Spotlight this post!  
Unread 12-02-2016, 20:57
chubchub5577 chubchub5577 is offline
Registered User
FRC #1802
 
Join Date: Nov 2015
Location: Kansas City, Kansas
Posts: 17
chubchub5577 is an unknown quantity at this point
Re: Drive from half speed to full speed toggled by a button

Quote:
Originally Posted by samfruth View Post
http://imgur.com/AwjL4eB

Give this a whirl.
Thanks very much I will post the result ASAP!
__________________
Team Stealth 1802 Kansas City, Kansas
Lead Programmer
Team Ambassador
Financial Director
Tempus Fugit!!
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 03:56.

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