ardupilot icon indicating copy to clipboard operation
ardupilot copied to clipboard

ESC Telem Pre ARM check added

Open loki077 opened this issue 1 year ago • 6 comments

The goal is to have ESC telem Pre Arm check.

loki077 avatar Apr 17 '24 01:04 loki077

Thanks for this.

Instead of adding a new check, I wonder if it might be possible to re-use the TKOFF_RPM_MIN check? Perhaps not because this is not actually an arming check and it's also Copter specific.

If possible I'd like us to avoid adding another parameter to reduce complexity for the user.

rmackay9 avatar Apr 17 '24 01:04 rmackay9

@rmackay9 I would like to avoid a new parameter but I am not sure of a method where we can know which ESC to expect telemetry for.

loki077 avatar Apr 17 '24 02:04 loki077

@rmackay9 I also wanted to add other failure like dropping of telemetry post arming, RPM not responding to demand from RCOUT, temperature failure, or reporting the error status from ESC telemetry. But not sure if it is better to put that in lua or Ardupilot.

loki077 avatar Apr 17 '24 02:04 loki077

@loki077,

Regarding Lua or C++ it comes down to how many people are expected to use it vs the complexity. Sometimes things start as Lua and are then migrated to C++ so Lua is at least a good first step.

rmackay9 avatar Apr 17 '24 02:04 rmackay9

Tested on our Aircraft, it takes few single digit seconds to push the PRE Arm Error once the ESC is disconnected but clear almost instantly once cleared.

loki077 avatar Apr 17 '24 04:04 loki077

@peterbarker should I keep the instance starting from 0 or 1 to print the Error ?

loki077 avatar Apr 17 '24 04:04 loki077

@rmackay9 @andyp1per @tridge @peterbarker I agree TAKEOFF_MIN can do the same what I am trying to achieve here. Will just need to implement in Plane. https://github.com/ArduPilot/ardupilot/pull/21499

ghost avatar May 03 '24 01:05 ghost