#include <repeat_ultra_mk2.hpp>
Drivers for the Repeat Ultra Mk2 controlled by a Vortex80AEsc AM32 controller.
Fun fact of the day: If the pinion gear breaks, no fear, get some green loctite 603 which is designed for shear forces. Generally is ready to use within an hour if you are in a pinch. (Wait 24 hours if you can.)
https://repeat-robotics.com/buy/ultra-2/
◆ RepeatUltraMk2()
| fang::motor::RepeatUltraMk2::RepeatUltraMk2 |
( |
Drivers & |
drivers, |
|
|
const Config & |
config |
|
) |
| |
◆ ~RepeatUltraMk2()
| mockable fang::motor::RepeatUltraMk2::~RepeatUltraMk2 |
( |
| ) |
|
|
default |
◆ initialize()
| void fang::motor::RepeatUltraMk2::initialize |
( |
| ) |
|
|
override |
Required to send a zero arming signal The initialization needs to have an arming signal sent for 1-2 seconds. It will be left up to the caller on how to ensure the delay.
◆ setTargetSpeed()
| void fang::motor::RepeatUltraMk2::setTargetSpeed |
( |
const RPM & |
speed | ) |
|
Since this motor does not use feedback to control its speed, this is the value that it uses to estimate the required voltage and thus the duty cycle.
Currently, this code assumes that the speed controller interpolates the speed linearly from minimum to maximum speed. The maximum speed is assumed to be the kv constant multiplied by the nominal voltage.
This will likely be changed after testing.
This is motivated by the fact that a motor controller with only 10 volts can at most provide a bdlc motor 10 volts. Given the kv value, the maximum theoretical speed would be that.
◆ update()
| void fang::motor::RepeatUltraMk2::update |
( |
| ) |
|
◆ kKv
| constexpr RPMPerVolt fang::motor::RepeatUltraMk2::kKv {1450.0} |
|
staticconstexpr |
The documentation for this class was generated from the following files: