Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add input filter to control data #31

Open
t3kt opened this issue Dec 6, 2014 · 2 comments
Open

Add input filter to control data #31

t3kt opened this issue Dec 6, 2014 · 2 comments

Comments

@t3kt
Copy link
Contributor

t3kt commented Dec 6, 2014

Smoothing, overshoot, lag, etc.

@JimAnkrom
Copy link
Member

This requires some discussion, I think.

  • YAW - Yaw is a compass heading - fairly absolute data. To smooth between them we need to maintain a reference to the last control packet sent. However, that persisted last packet needs to be post-filter; if I send a packet (A) that is then clipped to half the yaw distance, that results in (!A). My next packet (B) should be filtered not to (A+MAX_DISTANCE) but to (!A+MAX_DISTANCE). However - does this make the paddle movement look jittery? not sure...
  • PITCH - Pitch is not used at the moment but... I would like it to be. That said I don't see it likely we need to filter pitch.
  • ROLL - No need to filter roll, but smoothing (rounding?) might simplify the math... somewhat?

@t3kt
Copy link
Contributor Author

t3kt commented Dec 26, 2014

we could just use a simple averaging of the last N values received. or if
the data coming in is clean enough then we can just use it raw.

On Fri, Dec 26, 2014, 11:05 AM JimAnkrom [email protected] wrote:

This requires some discussion, I think.

*YAW - Yaw is a compass heading - fairly absolute data. To smooth between
them we need to maintain a reference to the last control packet sent.
However, that persisted last packet needs to be post-filter; if I send a
packet (A) that is then clipped to half the yaw distance, that results in
(!A). My next packet (B) should be filtered not to (A+MAX_DISTANCE) but to
(!A+MAX_DISTANCE). However - does this make the paddle movement look
jittery? not sure...

PITCH - Pitch is not used at the moment but... I would like it to be.
That said I don't see it likely we need to filter pitch.

ROLL - No need to filter roll, but smoothing (rounding?) might
simplify the math... somewhat?


Reply to this email directly or view it on GitHub
#31 (comment).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants