sensulator

Crates.iosensulator
lib.rssensulator
version0.5.0
sourcesrc
created_at2019-03-24 17:20:29.080225
updated_at2022-11-25 21:28:08.831812
descriptionSimple sensor simulator, provides noisy readings of ideal measurements
homepage
repositoryhttps://github.com/tstellanova/sensulator
max_upload_size
id123523
size21,001
Todd Stellanova (tstellanova)

documentation

README

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
Commit count: 25

cargo fmt