#include <wheel.h>
◆ Wheel() [1/4]
◆ Wheel() [2/4]
◆ Wheel() [3/4]
| Wheel::Wheel |
( |
Wheel && |
| ) |
|
|
default |
◆ Wheel() [4/4]
| Wheel::Wheel |
( |
const Wheel & |
| ) |
|
|
default |
◆ ~Wheel()
◆ clear()
◆ get_MaxOmega()
| float Wheel::get_MaxOmega |
( |
| ) |
const |
|
inline |
◆ get_Omega()
| float Wheel::get_Omega |
( |
uint32_t |
dt_millis | ) |
|
◆ get_PIDController()
| PID* Wheel::get_PIDController |
( |
| ) |
|
|
inline |
◆ log()
| void Wheel::log |
( |
float |
omega, |
|
|
float |
new_omega |
|
) |
| |
|
inline |
◆ operator=() [1/2]
◆ operator=() [2/2]
◆ set_Config()
◆ set_Direction()
| void Wheel::set_Direction |
( |
enum Direction |
d | ) |
|
|
inline |
◆ set_Omega()
| void Wheel::set_Omega |
( |
float |
omega | ) |
|
Function that sets the angular velocity of the wheel.
- Parameters
-
| omega | The new angular of the wheel |
- Return values
-
- Note
- This function does not actually update the value of the wheel. The update() function need to be called separately for new value to be updated.
Tasks performed by this function :
1) Sets the direction of the wheel according to the sign of omega
2) Sets the omega of the wheel
◆ set_PIDController()
| void Wheel::set_PIDController |
( |
PID * |
pid | ) |
|
|
inline |
◆ start_Periphs()
| void Wheel::start_Periphs |
( |
| ) |
|
Function that starts timer base, pwm and encoder of the wheel.
- Return values
-
Tasks performed by this function :
1) Starts Timer associated with the wheel
2) Starts PWM of the wheel
3) Starts Encoder of the wheel
◆ update()
| void Wheel::update |
( |
| ) |
const |
◆ dir_
◆ omega_
◆ wheel_
The documentation for this class was generated from the following files:
- C:/Users/073be/OneDrive/Documents/Robotics/Codes/beta/Khangai-Robot/Khangai-Robot-Full/KhangaiRobot-Play/Core/Inc/devs/wheel.h
- C:/Users/073be/OneDrive/Documents/Robotics/Codes/beta/Khangai-Robot/Khangai-Robot-Full/KhangaiRobot-Play/Core/Src/devs/wheel.cpp