DSHOT150 algorithm using digital IO pins on the LPC-1768

Dependents:   DSHOT

Embed: (wiki syntax)

« Back to documentation index

DSHOT150 Class Reference

DSHOT150 Class Reference

DSHOT150 converts a digital IO pin to act like a DSHOT pulse This is done through writing one's and zero's a specific amount to acheive the correct pulse width in the given duty cycle. More...

#include <DSHOT150.h>


Detailed Description

DSHOT150 converts a digital IO pin to act like a DSHOT pulse This is done through writing one's and zero's a specific amount to acheive the correct pulse width in the given duty cycle.

Example

 #include "mbed.h"
 #include "DSHOT150.h"

 DSHOT150 motor( p21 );

 int main() {

      motor.arm();
      motor.get_tel( true );
      for( float i = 0; i < 1; i+=0.1){
          motor.throttle( i );
      }


  }

This example will step the motor from 0 to 100% in 10% intervals

Definition at line 52 of file DSHOT150.h.