Go to Post Success is the indescribable feeling you get when you see something you worked so hard on in front of thousands of people. - SlamminSammy [more]
Home
Go Back   Chief Delphi > Technical > Programming > Python
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
  #3   Spotlight this post!  
Unread 18-12-2016, 13:08
DonRotolo's Avatar
DonRotolo DonRotolo is offline
Back to humble
FRC #0832
Team Role: Mentor
 
Join Date: Jan 2005
Rookie Year: 2005
Location: Atlanta GA
Posts: 6,974
DonRotolo has a reputation beyond reputeDonRotolo has a reputation beyond reputeDonRotolo has a reputation beyond reputeDonRotolo has a reputation beyond reputeDonRotolo has a reputation beyond reputeDonRotolo has a reputation beyond reputeDonRotolo has a reputation beyond reputeDonRotolo has a reputation beyond reputeDonRotolo has a reputation beyond reputeDonRotolo has a reputation beyond reputeDonRotolo has a reputation beyond repute
Re: PID Questions

1. Just as you can define a single motor, you can define several motors. You do this for left and right already, right? So define many motors for a side, and when you send the value to one motor, repeat that same line of code to send it to motor 2, motor 3, and so on. That sends the same drive value to multiple motors.

Note that there may be more efficient ways, depending on the programming language, but brute force will get it done.

2. Asphurley67 stated, do a little math for P by following your code on paper, and see what multiplier will give you something reasonably in range.

When trying something new, it never hurts to step through each line of code by hand, on paper, to see what will happen. Lots of bugs are found this way...
__________________

I am N2IRZ - What's your callsign?
Reply With Quote
 


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 02:41.

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