F-Army / arduino-dw1000-ng

Arduino driver and library to use Decawave's DW1000 IC and relative modules.
MIT License
118 stars 64 forks source link

Smooth Ranging for distance #152

Open FXUDarkNova opened 4 years ago

FXUDarkNova commented 4 years ago

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 commented 4 years ago

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

FXUDarkNova commented 4 years ago

@Sonic0 Thank you

Sonic0 commented 4 years ago

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 commented 4 years ago

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 commented 4 years ago

Was this solved? @FXUDarkNova