#measurement #sensor #behavior #ideal #noisy #random #simulating

sensulator

Simple sensor simulator, provides noisy readings of ideal measurements

3 unstable releases

0.5.0 Nov 25, 2022
0.4.2 Apr 9, 2019
0.4.0 Mar 24, 2019

#1032 in Hardware support

Download history 2/week @ 2024-02-18 20/week @ 2024-02-25 23/week @ 2024-03-10 1/week @ 2024-03-17 32/week @ 2024-03-31

56 downloads per month

BSD-3-Clause

13KB
229 lines

sensulator

A rust library for simulating sensor measurement behavior. You can initialize or update a sensulator with a central "ideal" value, and the sensulator will subsequently provide noisy sensor measurements centered around that value.

This library allows you to provide a random number generator (RNG) that could be based on either unpredictable, truly random behavior (such as StdRng when used with std) or predictable, reproducible behavior when used with a SeedableRng.

example

See examples:

Testing with quickcheck

A brief quickcheck is run as part of cargo test; however, if you want to run more extensive tests, you can use something like:

export QUICKCHECK_TESTS=1000; cargo test -- --nocapture

Dependencies

~1MB
~21K SLoC