bitsim
Model, simulate, estimate and control robots in C++
Loading...
Searching...
No Matches
bitsim::actuators::BLDCRotor Struct Reference

A rotor with inertia and viscous friction, for a BLDCMotor without a physics engine: \(J \dot\omega = T_{motor} - b \omega - T_{load}\). More...

#include <bldc_motor.h>

Public Member Functions

void step (const BLDCMotorParameters &m, real_t T_motor, real_t T_load, real_t dt)
 One explicit Euler step of dt [s].

Public Attributes

real_t theta {0.0}
 mechanical angle [rad]
real_t w {0.0}
 speed [rad/s]

Detailed Description

A rotor with inertia and viscous friction, for a BLDCMotor without a physics engine: \(J \dot\omega = T_{motor} - b \omega - T_{load}\).

Member Function Documentation

◆ step()

void bitsim::actuators::BLDCRotor::step ( const BLDCMotorParameters & m,
real_t T_motor,
real_t T_load,
real_t dt )

One explicit Euler step of dt [s].

Member Data Documentation

◆ theta

real_t bitsim::actuators::BLDCRotor::theta {0.0}

mechanical angle [rad]

◆ w

real_t bitsim::actuators::BLDCRotor::w {0.0}

speed [rad/s]


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