Fang-Robotics-MCB
Fang Robotics Team Codebase
Loading...
Searching...
No Matches
fang::motor::RepeatUltraMk2 Class Reference

#include <repeat_ultra_mk2.hpp>

Inheritance diagram for fang::motor::RepeatUltraMk2:
Collaboration diagram for fang::motor::RepeatUltraMk2:

Classes

struct  Config
 

Public Member Functions

 RepeatUltraMk2 (Drivers &drivers, const Config &config)
 
mockable ~RepeatUltraMk2 ()=default
 
mockable void setTargetSpeed (const RPM &speed)
 
void initialize () override
 
void update ()
 

Static Public Attributes

static constexpr RPMPerVolt kKv {1450.0}
 

Detailed Description

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/

Constructor & Destructor Documentation

◆ RepeatUltraMk2()

fang::motor::RepeatUltraMk2::RepeatUltraMk2 ( Drivers drivers,
const Config config 
)

◆ ~RepeatUltraMk2()

mockable fang::motor::RepeatUltraMk2::~RepeatUltraMk2 ( )
default

Member Function Documentation

◆ 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 ( )

Member Data Documentation

◆ kKv

constexpr RPMPerVolt fang::motor::RepeatUltraMk2::kKv {1450.0}
staticconstexpr

The documentation for this class was generated from the following files: