#include <WickedMotorShield.h>
|
static uint32_t | getRCIN (uint8_t rc_input_number, uint32_t timeout=0) |
|
static uint8_t | version (void) |
|
uint8_t | get_shift_register_value (uint8_t motor_number) |
|
void | apply_mask (uint8_t *shift_register_value, uint8_t mask, uint8_t operation) |
|
uint8_t | filter_mask (uint8_t shift_register_value, uint8_t mask) |
|
void | set_shift_register_value (uint8_t motor_number, uint8_t value) |
|
void | load_shift_register (void) |
|
uint8_t | get_motor_directionM (uint8_t motor_number) |
|
uint8_t | get_motor_brakeM (uint8_t motor_number) |
|
void | setSpeedM (uint8_t motor_number, uint8_t pwm_val) |
|
void | setDirectionData (uint8_t motor_number, uint8_t direction) |
|
void | setBrakeData (uint8_t motor_number, uint8_t brake_type) |
|
static uint8_t | M1_PWM_PIN = 11 |
|
static uint8_t | M6_PWM_PIN = 3 |
|
static uint8_t | old_dir [6] = {0,0,0,0,0,0} |
|
Definition at line 254 of file WickedMotorShield.h.
◆ Wicked_DCMotor()
Wicked_DCMotor::Wicked_DCMotor |
( |
uint8_t |
motor_number, |
|
|
uint8_t |
use_alternate_pins = 0 |
|
) |
| |
◆ currentSense()
uint16_t Wicked_DCMotor::currentSense |
( |
void |
| ) |
|
◆ get_motor_direction()
uint8_t Wicked_DCMotor::get_motor_direction |
( |
void |
| ) |
|
|
private |
◆ setBrake()
void Wicked_DCMotor::setBrake |
( |
uint8_t |
brake_type | ) |
|
Set the type of braking for the motor.
- Parameters
-
brake_type | Options are BRAKE_HARD, BRAKE_SOFT, and BRAKE_OFF. |
It is assumed that BRAKE_HARD refers to dynamic braking with the leads on the motor connected together, BRAKE_SOFT refers to the situation where no power flows through the motor or both leads are connected to ground, and BRAKE_OFF refers to power being applied to DC motor.
Definition at line 623 of file WickedMotorShield.cpp.
◆ setDirection()
void Wicked_DCMotor::setDirection |
( |
uint8_t |
direction | ) |
|
◆ setSpeed()
void Wicked_DCMotor::setSpeed |
( |
uint8_t |
pwm_val | ) |
|
Set the speed of rotation as a value in the range 0..255.
- Parameters
-
pwm_val | Value for speed with an integer in the range 0 to 255. |
Definition at line 651 of file WickedMotorShield.cpp.
◆ motor_number
uint8_t Wicked_DCMotor::motor_number |
|
private |
The documentation for this class was generated from the following files: