BeRTOS
Data Fields
DCMotorConfig Struct Reference

DC motor configuration stucture. More...

#include <dc_motor.h>

Data Fields

PidCfg pid_cfg
 Pid control.
bool pid_enable
 Flag to disable or enable pid control.
unsigned pwm_dev
 Pwm channel.
pwm_freq_t freq
 Pwm waveform frequency.
adc_ch_t adc_ch
 ADC channel.
adcread_t adc_max
 ADC max scale value.
adcread_t adc_min
 ADC min scale value.
bool dir
 Default direction for select DC motor.
bool braked
 If true the motor is braked when we turn off it.
dc_speed_t speed
 Default speed value for select DC motor.
int speed_dev_id
 Index of the device where read speed, to disable set to DC_MOTOR_NO_DEV_SPEED.

Detailed Description

DC motor configuration stucture.

Definition at line 69 of file dc_motor.h.


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