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

#include <Servo.h>

Public Attributes

PinName pin
 
int8_t correctionAngle = 0
 
uint8_t servoMinMaxAngle = 90
 
int8_t defaultCenterAngle = 0
 
bool isReverseSignal = false
 
uint32_t minUs = 900
 
uint32_t maxUs = 2100
 
static constexpr uint16_t PERIOD_US = 20000
 
static constexpr uint16_t CENTER_US = 1500
 

Member Data Documentation

constexpr uint16_t nxpcup::Servo::Config::CENTER_US = 1500
static
int8_t nxpcup::Servo::Config::correctionAngle = 0

correction of the zero angle in degree

int8_t nxpcup::Servo::Config::defaultCenterAngle = 0

default angle after start in degree

bool nxpcup::Servo::Config::isReverseSignal = false

reverse the setting of angle (setAngle()},setAngleCenter()}) due to some servo with inverse interpretation of the signal. IMPORTANT: could change meaning of other parameters (correctionAngle},servoMinMaxAngle}...)

uint32_t nxpcup::Servo::Config::maxUs = 2100

maximal time of servo pulse in microseconds

uint32_t nxpcup::Servo::Config::minUs = 900

minimal time of servo pulse in microseconds

constexpr uint16_t nxpcup::Servo::Config::PERIOD_US = 20000
static
PinName nxpcup::Servo::Config::pin

pin with PWM for servo

uint8_t nxpcup::Servo::Config::servoMinMaxAngle = 90

minimal and maximal angle in degree


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