Go to Post BTW - using any Lavery clue to figure anything out could be equally impossible. - Raul [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 30-01-2006, 19:39
EricWilliams EricWilliams is offline
Registered User
FRC #2039 (Rockford Robotics)
Team Role: Mentor
 
Join Date: Mar 2005
Rookie Year: 2001
Location: Rockford, IL
Posts: 102
EricWilliams is a glorious beacon of lightEricWilliams is a glorious beacon of lightEricWilliams is a glorious beacon of lightEricWilliams is a glorious beacon of lightEricWilliams is a glorious beacon of lightEricWilliams is a glorious beacon of light
Acceleration Curve

We used an acceleration curve to overcome the sensitivity of the low range of the joystick. The code looks exactly like this:

Code:
tempRight = pwm13 = pwm14 = Limit_Mix(2000 + p1_y + p1_x - 127);
tempLeft = pwm15 = pwm16 = Limit_Mix(2000 + p1_y - p1_x + 127);
  
  if(p1_y >= 127){
    tempRight = (tempRight - 127)(tempRight - 127)/127 + 127;
    tempLeft = (tempLeft - 127)(tempLeft - 127)/127 + 127;
  }
  if(p1_y < 127){
    tempRight = (tempRight - 127)(tempRight - 127)/-127 + 127;
    tempLeft = (tempLeft - 127)(tempLeft - 127)/-127 + 127;
  }

  pwm13 = pwm14 = tempRight;
  pwm15 = pwm16 = tempLeft;
When building, the compiler gives error 1202: Call of non-function, on the 4 lines inside the if statements.

I'm completely stumped, any help would be greatly appreciated.
 


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
(SolidWorks) Create Sketch Points Around Curve Yan Wang Inventor 6 04-08-2005 21:20
Acceleration Sensor Connected, but values are odd.... Leav Electrical 7 04-02-2005 15:28
van door torque curve DLyons Motors 1 13-01-2003 21:54
Drill motor torque curve thedillybar Motors 1 10-03-2002 05:19
The Learning Curve Was Steep! Mike McIntyre OCCRA 0 12-11-2001 00:23


All times are GMT -5. The time now is 09:47.

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