beagleboard / librobotcontrol

Robotics Focused library for embedded Linux computers. Mirror of https://git.beagleboard.org/beagleboard/librobotcontrol
https://beagleboard.org/librobotcontrol
MIT License
196 stars 158 forks source link

rc_moving_average_filter() dt argument should be double #120

Closed pgaskell closed 6 years ago

pgaskell commented 6 years ago

line 681 in filter.c should be: int rc_filter_moving_average(rc_filter_t* f, int samples, double dt)

otherwise the function fails to initialize the filter if dt < 1.0

the function prototype in the header file needs to be changed as well.

StrawsonDesign commented 6 years ago

thanks! fixed in 64713b74d04fca1484f0ce290cbcebb036188890