#include <pic_servo_msg_builder.H>
Public Member Functions | |
load_trajectory_builder_t () | |
void | trapezoidal_profile (s32_t pos) |
void | trapezoidal_profile_max_velocity (u32_t vel) |
void | trapezoidal_profile_acceleration (u32_t acc) |
void | velocity_profile (u32_t vel) |
void | velocity_profile_reverse (void) |
void | velocity_profile_acceleration (u32_t acc) |
void | pwm_value (u8_t pwm) |
void | pwm_reverse (void) |
void | execute_now (void) |
Protected Member Functions | |
u8_t | _build (void) |
Protected Attributes | |
u8_t | m_control |
s32_t | m_position |
u32_t | m_velocity |
u32_t | m_acceleration |
u8_t | m_pwm |
nmc::pic_servo::load_trajectory_builder_t::load_trajectory_builder_t | ( | ) | [inline] |
u8_t load_trajectory_builder_t::_build | ( | void | ) | [protected, virtual] |
Implements nmc::msg_builder_t.
References nmc::msg_builder_t::encode(), nmc::msg_builder_t::HEADER_SIZE, m_acceleration, m_control, nmc::msg_builder_t::m_offset, m_position, m_pwm, and m_velocity.
void nmc::pic_servo::load_trajectory_builder_t::execute_now | ( | void | ) | [inline] |
References m_control.
void nmc::pic_servo::load_trajectory_builder_t::pwm_reverse | ( | void | ) | [inline] |
References m_control.
void nmc::pic_servo::load_trajectory_builder_t::pwm_value | ( | u8_t | pwm | ) | [inline] |
void nmc::pic_servo::load_trajectory_builder_t::trapezoidal_profile | ( | s32_t | pos | ) | [inline] |
References m_control, and m_position.
void nmc::pic_servo::load_trajectory_builder_t::trapezoidal_profile_acceleration | ( | u32_t | acc | ) | [inline] |
References m_acceleration, and m_control.
void nmc::pic_servo::load_trajectory_builder_t::trapezoidal_profile_max_velocity | ( | u32_t | vel | ) | [inline] |
References m_control, and m_velocity.
void nmc::pic_servo::load_trajectory_builder_t::velocity_profile | ( | u32_t | vel | ) | [inline] |
References m_control, and m_velocity.
void nmc::pic_servo::load_trajectory_builder_t::velocity_profile_acceleration | ( | u32_t | acc | ) | [inline] |
References m_acceleration, and m_control.
void nmc::pic_servo::load_trajectory_builder_t::velocity_profile_reverse | ( | void | ) | [inline] |
References m_control.
u32_t nmc::pic_servo::load_trajectory_builder_t::m_acceleration [protected] |
Referenced by _build(), trapezoidal_profile_acceleration(), and velocity_profile_acceleration().
u8_t nmc::pic_servo::load_trajectory_builder_t::m_control [protected] |
s32_t nmc::pic_servo::load_trajectory_builder_t::m_position [protected] |
Referenced by _build(), and trapezoidal_profile().
u8_t nmc::pic_servo::load_trajectory_builder_t::m_pwm [protected] |
Referenced by _build(), and pwm_value().
u32_t nmc::pic_servo::load_trajectory_builder_t::m_velocity [protected] |
Referenced by _build(), trapezoidal_profile_max_velocity(), and velocity_profile().