Drexel dragonThe Math ForumDonate to the Math Forum



Search All of the Math Forum:

Views expressed in these public forums are not endorsed by Drexel University or The Math Forum.


Math Forum » Discussions » Software » comp.soft-sys.matlab

Topic: pid controller error
Replies: 1   Last Post: Mar 21, 2013 10:37 AM

Advanced Search

Back to Topic List Back to Topic List Jump to Tree View Jump to Tree View   Messages: [ Previous | Next ]
teoman

Posts: 6
Registered: 11/19/12
pid controller error
Posted: Mar 11, 2013 10:23 AM
  Click to see the message monospaced in plain text Plain Text   Click to reply to this topic Reply

hi everyone. i have a problem for pid controller. i want to make a heading controller with geographic map. i can control heading. but when i choose desired heading 0 degree its not working efficiently. for example sensor is 40 and desired is 0. its decreasing first. and after a while it catches 0 degree and pass 359 ( at geographical map 360 degree one turn and north is 0 degree) when it pass 359 or 359.9999 ( that is actually an over shoot) error is going big. the real error is 1 degree when sensor is 359 degree but mathematical the error is 359. how can i solve this problem?

example ;
error = sensor - desired

1. second >> sensor = 1 desired = 0 error = 1
2. second >> sensor = 0 desired = 0 error = 0
3.second >> sensor = 359 desired= 0 error = 359 (overshoot) (real error -1 degree)


Date Subject Author
3/11/13
Read pid controller error
teoman
3/21/13
Read Re: pid controller error
teoman

Point your RSS reader here for a feed of the latest messages in this topic.

[Privacy Policy] [Terms of Use]

© Drexel University 1994-2014. All Rights Reserved.
The Math Forum is a research and educational enterprise of the Drexel University School of Education.