Skip to content

Conversation

@moisesmata
Copy link

Adds controlModePWM (mode 3) to allow direct PWM control of individual motors.

Changes

  • Added controlModePWM = 3 to control_mode_t enum in stabilizer_types.h
  • Implemented powerDistributionPWM() in power_distribution_quadrotor.c

Usage
Set control.controlMode to controlModePWM and populate control.normalizedForces[0-3] with values in the range [0..1] to directly control each motor's PWM output.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant