Skip to content

armgit / moss

Public Imported from GitHub
0

MOSS: a small, mostly 3D-printed litter-picking rover. Cleaner streets, one maker at a time.

Python

MDD10A build: compiler.cpp.extra_flags, not build.extra_flags (which drops the USB CDC defines)

openclaw7e1eff0ef70d
diff --git a/firmware/MOSS_QTPY_MDD3A/MOSS_QTPY_MDD3A.ino b/firmware/MOSS_QTPY_MDD3A/MOSS_QTPY_MDD3A.ino
index 5a1e7cf..836cfe3 100644
--- a/firmware/MOSS_QTPY_MDD3A/MOSS_QTPY_MDD3A.ino
+++ b/firmware/MOSS_QTPY_MDD3A/MOSS_QTPY_MDD3A.ino
@@ -72,7 +72,7 @@ void outputsZero() {
// -DMOSS_DRIVER_MDD10A Cytron MDD10A (ordered 10/10: 10 A / 30 A per channel), PWM + DIR per
// channel: pinA = PWM1 (magnitude), pinB = DIR1 (held high or low through
// the same LEDC channel: duty 100 % = high). Zero = PWM low = brake.
-// Build: arduino-cli compile ... --build-property build.extra_flags=-DMOSS_DRIVER_MDD10A
+// Build: arduino-cli compile ... --build-property "compiler.cpp.extra_flags=-DMOSS_DRIVER_MDD10A"
// The MDD10A has NO reverse-polarity protection on Vmotor.
#ifdef MOSS_DRIVER_MDD10A
constexpr const char* DRIVER = "mdd10a";
diff --git a/firmware/MOSS_QTPY_MDD3A/bench/README.md b/firmware/MOSS_QTPY_MDD3A/bench/README.md
index fa40324..a947f53 100644
--- a/firmware/MOSS_QTPY_MDD3A/bench/README.md
+++ b/firmware/MOSS_QTPY_MDD3A/bench/README.md
@@ -6,4 +6,4 @@ Run from the onboard computer the QT Py is plugged into. They need `pyserial` an
- `moss_bench.py "test left 15"`: sends one command and prints the telemetry lines that follow (mode, output, encoder ticks, battery). Start with `test left 15`, then `test right 15`, rover on blocks. At 5 % the motors do not start.
- `servo_scan.py`: pings every ID on the arm's servo bus (Feetech SMS_STS, 1 Mbps) and reads model, position, voltage and temperature of each servo that answers.
- `servo_watch.py` / `watch_start.sh`: logs which servo moves while you move the arm by hand (torque off), to map IDs to joints before assigning them.
-- MDD10A build (PWM + DIR on the same four pins, see the driver block in the sketch): `arduino-cli compile --fqbn esp32:esp32:adafruit_qtpy_esp32s3_nopsram:CDCOnBoot=cdc --build-property build.extra_flags=-DMOSS_DRIVER_MDD10A --output-dir <dir> firmware/MOSS_QTPY_MDD3A`; the banner and telemetry say `driver mdd10a`. Wiring: A0 = PWM1, A1 = DIR1, A2 = PWM2, A3 = DIR2; GND common; no reverse-polarity protection on the MDD10A.
+- MDD10A build (PWM + DIR on the same four pins, see the driver block in the sketch): `arduino-cli compile --fqbn esp32:esp32:adafruit_qtpy_esp32s3_nopsram:CDCOnBoot=cdc --build-property "compiler.cpp.extra_flags=-DMOSS_DRIVER_MDD10A" --output-dir <dir> firmware/MOSS_QTPY_MDD3A`; the banner and telemetry say `driver mdd10a`. Wiring: A0 = PWM1, A1 = DIR1, A2 = PWM2, A3 = DIR2; GND common; no reverse-polarity protection on the MDD10A.