Go to Post All this is sounding like gobbly-de-gook but it is important to understand this gobbly-de-gook. - ebarker [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
  #4   Spotlight this post!  
Unread 06-02-2002, 22:49
Matt Reiland's Avatar
Matt Reiland Matt Reiland is offline
'The' drive behind the drive
None #0226 (TEC CReW Hammerheads)
Team Role: Engineer
 
Join Date: May 2001
Rookie Year: 1999
Location: Troy Michigan
Posts: 712
Matt Reiland has a reputation beyond reputeMatt Reiland has a reputation beyond reputeMatt Reiland has a reputation beyond reputeMatt Reiland has a reputation beyond reputeMatt Reiland has a reputation beyond reputeMatt Reiland has a reputation beyond reputeMatt Reiland has a reputation beyond reputeMatt Reiland has a reputation beyond reputeMatt Reiland has a reputation beyond reputeMatt Reiland has a reputation beyond reputeMatt Reiland has a reputation beyond repute
Here are some code bits to try

p1_xfilter VAR byte 'Filtered X input on Port 1
p1_yfilter VAR byte 'Filtered Y input on Port1 p1_xfiltercoef CON 100
p1_yfiltercoef CON 100

p1_yfilter=p1_yfilter+((256+p1_y-p1_yfilter)*p1_yfiltercoef/200)-(256*p1_yfiltercoef/200)
p1_xfilter=p1_xfilter+((256+p1_x-p1_xfilter)*p1_xfiltercoef/200)-(256*p1_xfiltercoef/200)
p1_y = p1_yfilter
p1_x = p1_xfilter

This will slow down the abrubt changes to the p1_x and p1_y values

I can give you code to slow it down a % of full but it sounds like you are getting a spike from either a big change in speed or there is too much load on steering (I can't help you on the second)

P.S. you can play with the coeficients to ramp slower or faster

I think this code came from MOE a few years ago
 


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
PBASIC 2.5 Code on the RC Goya Programming 2 12-01-2003 17:00
Does your team use the Default code. Jeff McCune General Forum 2 09-01-2003 14:46
2003 PBasic default code from Innovation First ttedrow Programming 0 06-01-2003 11:18
emulationFIRST (aka PBasic emulator) Matt Leese Programming 5 30-06-2002 12:06
BuzzWriter - PBasic Assistant archiver 2000 0 23-06-2002 22:58


All times are GMT -5. The time now is 08:24.

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