... | @@ -212,4 +212,9 @@ reads the 16-bit current sense value of motor A or B. |
... | @@ -212,4 +212,9 @@ reads the 16-bit current sense value of motor A or B. |
|
#### uint16_t HDU_POWERTRAIN_readBemfX()
|
|
#### uint16_t HDU_POWERTRAIN_readBemfX()
|
|
reads the 16-bit back emf value of motor A or B.
|
|
reads the 16-bit back emf value of motor A or B.
|
|
|
|
|
|
|
|
### Example
|
|
|
|
make motor A go forwards with 50% dutycycle and motor B go backwards with 20% dutycycle:
|
|
|
|
<code>
|
|
|
|
HDU_POWERTRAIN_init(3000);
|
|
|
|
HDU_POWERTRAIN_setDutycycles(50, -20);
|
|
## Servo control (HDU_SERVO.h) |
|
## Servo control (HDU_SERVO.h) |
|
|
|
\ No newline at end of file |