#!/usr/bin/env bash # # install.sh - set up a LattePanda 3 Delta as a fire-watch tower host (the Delta # fleet: ATmega32U4 "Leonardo" motor MCU, two axes). Run it ON the device; # --help lists every option. scripts/install-tower drives this for a whole # install; this stays usable alone. # # Everything shared with the other boards' kits is in ../common/kit.sh; what is # here is what differs on the Delta. See NOTES.md for what has and has not been # run on a real Delta. # set -euo pipefail KIT_DIR="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)" KIT_BOARD=lattepanda-3-delta KIT_FW_ENV=leonardo KIT_MCU_VID=2341 KIT_DEFAULT_AXES=yaw,pitch # Image saving: the N5105 needs two workers x 2 threads to keep up (docs/raw12-pipeline-measurements.md). KIT_SAVE_WORKERS=2 KIT_IMU_DEVICE=/dev/ttyS0 KIT_IMU_NOTE="On the Delta the MTi is on the RS-232 header: a hardware UART, not a USB node." KIT_ENV_DEVICE=/dev/i2c-2 KIT_ENV_NOTE="The board's own I2C bus - /dev/i2c-2 on the Delta, not the /dev/i2c-1 default. It MUST be a real I2C adapter (i2cdetect -F N: 'I2C = yes'), and i2cdetect false-negatives on the SHT4x, so probe with a real measurement." # shellcheck source=../common/kit.sh . "$KIT_DIR/../common/kit.sh" # scripts/install-tower sources this file for the facts and probes alone. [[ ${KIT_NO_MAIN:-0} == 1 ]] || kit_main "$@"