bitsim
Model, simulate, estimate and control robots in C++
Loading...
Searching...
No Matches
bldc_motor Namespace Reference

Classes

struct  SteadyState
struct  Joint
class  MotorisedJoint
struct  HoldResult
class  PIController
 A PI controller whose output is limited to [-limit, limit], with anti-windup and a feedforward term. More...

Typedefs

using real_t
 real_t

Functions

real_t clean (real_t x)
void motor_constants (const BLDCMotorParameters &m)
void step_response (const BLDCMotorParameters &m)
void commutation_table ()
SteadyState run_three_phase (const BLDCMotorParameters &m, real_t T_load, real_t hall_offset)
void three_phase_model (const BLDCMotorParameters &m)
void speed_control (const BLDCMotorParameters &m)
HoldResult lift_the_arm (const BLDCMotorParameters &m, const Joint &joint, real_t target, real_t ki, bool verbose)
void motor_in_a_joint (const BLDCMotorParameters &m)
void draw_ring (chrono::irrlicht::ChVisualSystemIrrlicht &vis, const ChFrame<> &frame, real_t radius, const chrono::ChColor &color)
void draw_motor (chrono::irrlicht::ChVisualSystemIrrlicht &vis, const ChFrame<> &frame, real_t theta_e, const PhasePair &pair)
void render (const BLDCMotorParameters &m)
void print_title (const std::string &title, std::ostream &out)
 An empty line and then the title.
void print_value (const std::string &label, real_t value, const std::string &unit, int precision=3, int width=30)
 The label, the value right-aligned with the given decimals, and the unit.

Variables

const real_t DEG = chrono::CH_DEG_TO_RAD
const real_t PI = bitsim::consts::maths::PI
const real_t RPM = 60.0 / (2.0 * PI)
const std::array< char, 3 > PHASE_NAMES {'a', 'b', 'c'}

Typedef Documentation

◆ real_t

Function Documentation

◆ clean()

real_t bldc_motor::clean ( real_t x)

◆ commutation_table()

void bldc_motor::commutation_table ( )

◆ draw_motor()

void bldc_motor::draw_motor ( chrono::irrlicht::ChVisualSystemIrrlicht & vis,
const ChFrame<> & frame,
real_t theta_e,
const PhasePair & pair )

◆ draw_ring()

void bldc_motor::draw_ring ( chrono::irrlicht::ChVisualSystemIrrlicht & vis,
const ChFrame<> & frame,
real_t radius,
const chrono::ChColor & color )

◆ lift_the_arm()

HoldResult bldc_motor::lift_the_arm ( const BLDCMotorParameters & m,
const Joint & joint,
real_t target,
real_t ki,
bool verbose )

◆ motor_constants()

void bldc_motor::motor_constants ( const BLDCMotorParameters & m)

◆ motor_in_a_joint()

void bldc_motor::motor_in_a_joint ( const BLDCMotorParameters & m)

◆ print_title()

void bitsim::utils::io::print_title ( const std::string & title,
std::ostream & out )

An empty line and then the title.

◆ print_value()

void bitsim::utils::io::print_value ( const std::string & label,
real_t value,
const std::string & unit,
int precision = 3,
int width = 30 )

The label, the value right-aligned with the given decimals, and the unit.

◆ render()

void bldc_motor::render ( const BLDCMotorParameters & m)

◆ run_three_phase()

SteadyState bldc_motor::run_three_phase ( const BLDCMotorParameters & m,
real_t T_load,
real_t hall_offset )

◆ speed_control()

void bldc_motor::speed_control ( const BLDCMotorParameters & m)

◆ step_response()

void bldc_motor::step_response ( const BLDCMotorParameters & m)

◆ three_phase_model()

void bldc_motor::three_phase_model ( const BLDCMotorParameters & m)

Variable Documentation

◆ DEG

const real_t bldc_motor::DEG = chrono::CH_DEG_TO_RAD

◆ PHASE_NAMES

const std::array<char, 3> bldc_motor::PHASE_NAMES {'a', 'b', 'c'}

◆ PI

const real_t bldc_motor::PI = bitsim::consts::maths::PI

◆ RPM

const real_t bldc_motor::RPM = 60.0 / (2.0 * PI)