Skip to content
This repository has been archived by the owner on Nov 9, 2023. It is now read-only.

Smooth Ranging for distance #152

Open
FXUDarkNova opened this issue Sep 30, 2019 · 5 comments
Open

Smooth Ranging for distance #152

FXUDarkNova opened this issue Sep 30, 2019 · 5 comments

Comments

@FXUDarkNova
Copy link

hi there,

I am using your library file as its more in depth compared to others I have looked however looking at this github https://github.com/thotro/arduino-dw1000
Is there a way using your library file I can implement a smooth distance filter like this.
//Enable the filter to smooth the distance
DW1000Ranging.useRangeFilter(true);
I couldn't see anything looking through your code.

@Sonic0
Copy link
Contributor

Sonic0 commented Oct 1, 2019

Hi @FXUDarkNova,
as soon as possible I will reply to you!

@FXUDarkNova
Copy link
Author

@Sonic0 Thank you

@Sonic0
Copy link
Contributor

Sonic0 commented Oct 2, 2019

Hi @FXUDarkNova ,
We have removed DW1000Ranging::useRangeFilter because it is a useless function that modifies the range based on the precedent range measure.
We think that this operation must be implemented user side. The user will receive the exact range value and he will handle it based on his necessities.

@FXUDarkNova
Copy link
Author

FXUDarkNova commented Oct 3, 2019

Hi @Sonic0

Ok makes sense maybe you could help that I have created a X coord using two sensors but issue i am having is seems really sensitive using it for a robot facing forward ie centre is fine but if I slightly turn I go from 0 to say 120 for example.

Please see code I am using to work out X coord
x = (pow(dist_left,2) - pow(dist_right,2) + pow(dist_l_r,2)) / (2 * dist_l_r);

Or is there away to config the modules range as when I have the tag center or both anchors I am not getting the same distance there seem to be a big variation in metres range.

@Anacron-sec
Copy link
Contributor

Was this solved? @FXUDarkNova

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

No branches or pull requests

3 participants