The Math Forum

Search All of the Math Forum:

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

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

Notice: We are no longer accepting new posts, but the forums will continue to be readable.

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 ]

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
Read pid controller error
Read Re: pid controller error

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

[Privacy Policy] [Terms of Use]

© The Math Forum at NCTM 1994-2018. All Rights Reserved.