NXPCUP-libary
Library for car's control board on NXPCUP competition based on the Mbed framework.
|
#include <Motor.h>
Public Attributes | |
PinName | pwm0 |
PinName | pwm1 |
bool | inverse = false |
Static Public Attributes | |
static constexpr int | PERIOD_US = 500 |
static constexpr int | MAX_POWER = 1000 |
static constexpr int | POWER_DIVIDER = MAX_POWER / PERIOD_US |
bool nxpcup::Motor::Config::inverse = false |
inverse the direction of the motor
|
static |
|
static |
PinName nxpcup::Motor::Config::pwm0 |
pin0 with PWM for motor driver
PinName nxpcup::Motor::Config::pwm1 |
pin1 with PWM for motor driver