View Single Post
  #1   Spotlight this post!  
Unread 08-02-2015, 22:26
apm4242 apm4242 is offline
Registered User
FRC #4242
 
Join Date: Jan 2013
Location: United States
Posts: 83
apm4242 has much to be proud ofapm4242 has much to be proud ofapm4242 has much to be proud ofapm4242 has much to be proud ofapm4242 has much to be proud ofapm4242 has much to be proud ofapm4242 has much to be proud ofapm4242 has much to be proud ofapm4242 has much to be proud ofapm4242 has much to be proud of
Help Coding a "Creep Mode"

Hi,

I'm trying to figure out how to attenuate the drive motor speed at the push of a button. For example, if normal operation allows for a value of 0 to 1, we'd like to be able to push a button and have the new value be 0 to 0.5.

I've been searching around for how to do this and I can't seem to find anything definitive. I used Team 358's examples but I'm not sure that I got it right. I've been using the LabVIEW simulator to test out the code. The robot moves but does not slow when I activate the joystick push button on the xbox controller (button 9). I've attached what I have so far.

Any ideas?

Thanks!
Attached Thumbnails
Click image for larger version

Name:	Teleop_creep_mode.jpg
Views:	106
Size:	91.5 KB
ID:	18222  
Reply With Quote