feat(vesc): extend motor diagnostics, configuration and transport recovery
Add firmware and extension catalogues, configuration transactions, sample review and QML diagnostics. Preserve explicit authority, bounded retries and stop recovery in motor transport.
This commit is contained in:
@@ -51,9 +51,14 @@ def measure(owner, devices, target, original, backups, unchanged, preflight):
|
||||
if "rc_during_native_cycle" not in issues: issues.append("rc_during_native_cycle")
|
||||
sample = values(target.link.query(4, timeout=0.06))
|
||||
samples.append({"at": owner.monotonic() - started, "values": sample})
|
||||
for device in devices: device.link.test_command("claim")
|
||||
# The native Hall procedure exclusively owns the target.
|
||||
# Renewing its output lease is rejected by the native guard
|
||||
# and retires its transport before the result can arrive.
|
||||
# Only keep non-target controllers inhibited and released.
|
||||
for device in devices:
|
||||
if device is not target: device.link.test_command("release")
|
||||
if device is not target:
|
||||
device.link.test_command("claim")
|
||||
device.link.test_command("release")
|
||||
except (OSError, ValueError, TimeoutError):
|
||||
if "communication_unconfirmed" not in issues: issues.append("communication_unconfirmed")
|
||||
if owner.stop.is_set() and "stop_requested_during_native_cycle" not in issues:
|
||||
|
||||
Reference in New Issue
Block a user