Uploaded image for project: 'LibrePilot'
  1. LP-415

pios_servo: add functions to support esc passthrough

    Details

    • Type: Improvement
    • Status: Closed
    • Priority: Medium
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: future_release
    • Component/s: Firmware
    • Labels:
      None
    • Sprint:

      Description

      • Additional methods PIOS_Servo_Enable() and PIOS_Servo_Disable() are needed for ESC passthrough feature to be able to gain access to timers and gpio peripherals used by servo output pins.
      • pios_servo should not be pios_tim client anymore, to work around pios_tim callback bug (callbacks for multiple clients on same timer/channel combo are invoked for 1st registered client only). Also, servo driver is not using timer callbacks at all, so there is very little functionality from pios_tim that it uses - which is just gpio initialization. Gpio initialization needs to be done in PIOS_Servo_Enable() anyway.
      • pios_servo.c is mostly identical for F1 & F4, therefore it should live in pios/common instead of having multiple personalities disorder like now.

        Attachments

          Issue links

            Activity

              People

              • Assignee:
                mindnever Vladimir Zidar
                Reporter:
                mindnever Vladimir Zidar
              • Votes:
                0 Vote for this issue
                Watchers:
                2 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: