This is a Source plugin for MADS.
This plugin reads sensor data from the Raspberry Pi Sense HAT using the RTIMULib library.
Required MADS version: 1.4.0.
Currently, the supported platforms are:
- Linux
Build and create the RTIMULib static library first:
git clone https://github.com/pbosetti/RTIMULib.git
cd RTIMULib/Linux
cmake -Bbuild -DCMAKE_BUILD_TYPE=Release
cmake --build build
cmake --build build -t package
sudo dpkg -i ../packages/RTIMULib-*.debUse the installed RTIMULibCal tool to create a settings file for your Sense HAT:
RTIMULibCalNow build and install the plugin:
cmake -Bbuild -DCMAKE_INSTALL_PREFIX="$(mads -p)"
cmake --build build -j4
sudo cmake --install buildThe plugin supports the following settings in the INI file:
[sense-hat]
period = 100 # sampling period in ms
settings = "RTIMULib" # WARNING: NO .ini extension!
settings_dir = "/path/to/settings/dir" # folder containing the settings file
[sense-hat.enabled_sensors]
humidity = true
temperature = true
pressure = true
timestamp = false
gyro = false
compass = falseAll settings are optional; if omitted, the default values are used.