test_motor
Spin one motor briefly to verify its direction, wiring, and response on a test bench. Enforces safety: requires props removed and confirmation, clamps throttle/duration, and stops the motor after.
Instructions
Spin ONE motor briefly for a bench test (direction / wiring / response).
⚠ DANGER: this drives a LIVE motor output. REMOVE ALL PROPELLERS FIRST.
Safety gates (enforced in code):
props_removed=True is REQUIRED (refuses otherwise),
refuses if the FC reports armed,
confirm=True is REQUIRED (dry-run preview otherwise),
throttle clamped to 1000–2000 µs, duration clamped to 0.2–5.0 s,
the motor is ALWAYS commanded back to stop (1000 µs) when the test ends.
The override is live (MSP, not saved); it also stops if the FC reboots or loses power.
Args: motor: 1-based motor number (1 = motor 1). Only this motor spins; all others are held at 1000 µs (stop). throttle_us: Output in µs (1000 = stop, ~1100 = gentle, 2000 = full). Keep it LOW for a direction check. duration_s: How long to hold the output (0.2–5.0 s). props_removed: MUST be True — confirms props are physically removed. confirm: MUST be True to actually run.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| motor | Yes | ||
| confirm | No | ||
| duration_s | No | ||
| throttle_us | No | ||
| props_removed | No |