NXPCUP-libary
Library for car's control board on NXPCUP competition based on the Mbed framework.
Public Attributes | Static Public Attributes | List of all members
nxpcup::Motor::Config Struct Reference

#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
 

Member Data Documentation

bool nxpcup::Motor::Config::inverse = false

inverse the direction of the motor

constexpr int nxpcup::Motor::Config::MAX_POWER = 1000
static
constexpr int nxpcup::Motor::Config::PERIOD_US = 500
static
constexpr int nxpcup::Motor::Config::POWER_DIVIDER = MAX_POWER / PERIOD_US
static
PinName nxpcup::Motor::Config::pwm0

pin0 with PWM for motor driver

PinName nxpcup::Motor::Config::pwm1

pin1 with PWM for motor driver


The documentation for this struct was generated from the following file: