![]() |
Is It Just Me or...
I just want to clear some stuff up. The API says that the timer class return a double that represent microseconds, but in reality, it returns a double that represents seconds. Did they mean that the resolution of the timer is accurate up to the microseconds, but returns it in seconds?
Another thing: do you think a Kalman Filter is overkill? Considering the fact that some people just use the proportional portion of the PID, the noise of the sensor would not matter. |
yeah, I was confused too last year. I don't remember the answer, but it was either seconds OR milliseconds. The API then was definitely wrong though
|
Re: Is It Just Me or...
A Kalman filter is complete overkill for FRC. You need a complete understanding, mathematically, of your physical system for a Kalman filter to be effective.
We have never used it for any of our robots in FRC. |
Re: Is It Just Me or...
Quote:
See this paper which is an overview of the Kalman filter (esp. the section on Filter Parameters and Tuning and the Extended Kalman filter): http://www.cs.unc.edu/~welch/media/pdf/kalman_intro.pdf Quote:
That being said, I agree that Kalman filters are generally overkill for FRC. |
Re: Is It Just Me or...
Quote:
|
Re: Is It Just Me or...
Quote:
When using multiple IMUs and sensing devices, Kalman is the ONLY way to go, but for us I still say ineffective. |
Re: Is It Just Me or...
A Kalman Filter is not a substitute for a PID. It is something you might do in addition to a PID.
A Kalman Filter attempts to accurately estimate the state (position, velocity, etc.) of your system. It is used either when your sensors are inaccurate (always true to some extent) or when you do not have enough sensors to measure your full state directly. A KF with even a very crude model can provide more accurate state estimates than reading your sensors directly or traditional filtering if the KF is tuned correctly (not necessarily easy to do). A more accurate system model will result in correspondingly more accurate state estimates. Extended Kalman Filters allow you to use nonlinear models of your system, which is sometimes desirable, but significantly complicates the process. I would say that a KF is almost always overkill for FRC applications. A PID is a control strategy, which means it determines actuator commands (usually motor voltage or duty cycle in an FRC context) based on the system state. |
Re: Is It Just Me or...
Quote:
|
| All times are GMT -5. The time now is 18:39. |
Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2017, Jelsoft Enterprises Ltd.
Copyright © Chief Delphi