cockpit icon indicating copy to clipboard operation
cockpit copied to clipboard

Button commands maybe leaking? We need manual-control logs!

Open rafaellehmkuhl opened this issue 1 year ago • 1 comments

Reported by Kurt:

When I activate the light controls to turn on the lumen lights, on the fifth button press the newton gripper activates. I can continue turning up the lights to 100%, then turning them down, on the fifth button press the newton gripper activates again. The gripper works fine when I use the buttons that are configured for controlling it.

It can be a hardware-related problem, but I think we should at least add more logging to the manual-control pipeline, so we could confirm Cockpit is not sending wrong commands.

rafaellehmkuhl avatar Mar 09 '24 23:03 rafaellehmkuhl

While I think it's generally useful for Cockpit to be able to log everything that comes in and goes out (especially MAVLink comms, per #451), this issue in particular should be effectively covered by the autopilot's logs, and the flight controller's servo output values can be viewed live via the SERVO_OUTPUT_RAW MAVLink message, including in VeryGenericIndicator mini-widgets within Cockpit itself:

Screenshot 2024-03-16 at 12 13 46 am

ES-Alexander avatar Mar 15 '24 13:03 ES-Alexander