Go to Post Jenny - thanks for not beating any of our team members up with their own MOE sticks! That must have taken some willpower to hold yourself back! - Mr MOE [more]
Home
Go Back   Chief Delphi > Technical > Programming
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
  #1   Spotlight this post!  
Unread 09-01-2007, 02:33
brennerator brennerator is offline
Registered User
#1560
 
Join Date: Jan 2005
Location: Silicon Valley
Posts: 75
brennerator is an unknown quantity at this point
Thanks for all your help...and a question

Quick question

I have the 2006 default code loaded up.

If I wanted the trigger (fire) button on the 1 joystick controlling the robot movement to reduce the robots speed to 50% how would I do that.

I tried:

if (p1_sw_trig == 0)
{
pwm13 = pwm14 = Limit_Mix(2000 + p1_y + p1_x - 127);
pwm15 = pwm16 = Limit_Mix(2000 + p1_y - p1_x + 127);
}
else
{
pwm13 = (pwm13-127)*0.5+127;
pwm14 = (pwm14-127)*0.5+127;
pwm15 = (pwm15-127)*0.5+127;
pwm16 = (pwm16-127)*0.5+127;
}


but when the trigger was pressed nothing moved on teh robot!

Any help?

Last edited by brennerator : 09-01-2007 at 02:56.
 


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
Thanks J&J :O (And of course, all sponsors) JC-75 Thanks and/or Congrats 0 05-04-2006 12:32
Thanks for the help and parts, 340! Joe Ross Thanks and/or Congrats 1 22-02-2004 00:09
'So Long, and Thanks for All the Fish' Ashley Weed Math and Science 4 07-06-2003 13:43
Thanks for the fun all... archiver 2001 0 24-06-2002 03:23
Thanks for all your help! archiver 2000 0 23-06-2002 22:01


All times are GMT -5. The time now is 23:34.

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