Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ChibiOS: add BRD_SAFETYENABLE on all boards #20812

Merged
merged 2 commits into from
May 22, 2022

Conversation

tridge
Copy link
Contributor

@tridge tridge commented May 21, 2022

default BRD_SAFETYENABLE to 0 on boards with no safety switch, which gives us the same behaviour as before, but users can choose to enable the safety

this fixes two problems:

  • CAN servos and ESCs work on boards with no safety switch (eg. MatekH743 with CAN)
  • during startup we could get spurious outputs before the aircraft type is setup

we want it enabled during early boot to prevent incorrect ESC and
servo output
default BRD_SAFETYENABLE to 0 on boards with no safety switch, which
gives us the same behaviour as before, but users can choose to enable
the safety

this fixes two problems:

  - CAN servos and ESCs work on boards with no safety switch
    (eg. MatekH743 with CAN)

  - during startup we could get spurious outputs before out aircraft
    type is setup
@tridge
Copy link
Contributor Author

tridge commented May 22, 2022

flew this on 3 vehicles today, CubeOrange, CUAVv5Nano and MatekH743 copter

@tridge tridge merged commit cf47684 into ArduPilot:master May 22, 2022
@rmackay9
Copy link
Contributor

.. a side point here is that the Cube Orange's now ship with a GPS that does not include a safety switch meaning that all users need to set BRD_SAFETYENABLE = 0. This is probably one for @bugobliterator to comment on.

@romarysonrier
Copy link

romarysonrier commented May 24, 2022

I can confirm the issue Safety switch Issue on CAN with Matek H743 board is now fixed . tested ok with Matek M9N-F4-3100 & Matek L431 , using Matek H743 WINGV3 as FC. Thanks for this great fix !

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants