Cheetah Software
1.0
|
#include <SpineBoard.h>
Public Member Functions | |
SpineBoard () | |
void | init (float side_sign, s32 board) |
void | run () |
void | resetData () |
void | resetCommand () |
Public Attributes | |
SpiCommand * | cmd = nullptr |
SpiData * | data = nullptr |
float | torque_out [3] |
Private Attributes | |
float | side_sign |
s32 | board_num |
const float | max_torque [3] = {17.f, 17.f, 26.f} |
const float | wimp_torque [3] = {6.f, 6.f, 6.f} |
const float | disabled_torque [3] = {0.f, 0.f, 0.f} |
const float | q_limit_p [3] = {1.5f, 5.0f, 0.f} |
const float | q_limit_n [3] = {-1.5f, -5.0f, 0.f} |
const float | kp_softstop = 100.f |
const float | kd_softstop = 0.4f |
s32 | iter_counter = 0 |
Definition at line 45 of file SpineBoard.h.
|
inline |
Definition at line 47 of file SpineBoard.h.
void SpineBoard::init | ( | float | side_sign, |
s32 | board | ||
) |
Definition at line 8 of file SpineBoard.cpp.
References board_num, and side_sign.
void SpineBoard::resetCommand | ( | ) |
Definition at line 35 of file SpineBoard.cpp.
References board_num, cmd, SpiCommand::flags, SpiCommand::kd_abad, SpiCommand::kd_hip, SpiCommand::kd_knee, SpiCommand::kp_abad, SpiCommand::kp_hip, SpiCommand::kp_knee, SpiCommand::q_des_abad, SpiCommand::q_des_hip, SpiCommand::q_des_knee, SpiCommand::qd_des_abad, SpiCommand::qd_des_hip, SpiCommand::qd_des_knee, SpiCommand::tau_abad_ff, SpiCommand::tau_hip_ff, and SpiCommand::tau_knee_ff.
void SpineBoard::resetData | ( | ) |
Definition at line 17 of file SpineBoard.cpp.
References board_num, data, SpiData::flags, SpiData::q_abad, SpiData::q_hip, SpiData::q_knee, SpiData::qd_abad, SpiData::qd_hip, SpiData::qd_knee, and SpiData::spi_driver_status.
void SpineBoard::run | ( | ) |
Check abad softstop ///
Check hip softstop ///
No knee softstop right now ///
Definition at line 62 of file SpineBoard.cpp.
References board_num, cmd, data, disabled_torque, SpiCommand::flags, iter_counter, SpiCommand::kd_abad, SpiCommand::kd_hip, SpiCommand::kd_knee, kd_softstop, SpiCommand::kp_abad, SpiCommand::kp_hip, SpiCommand::kp_knee, kp_softstop, max_torque, SpiData::q_abad, SpiCommand::q_des_abad, SpiCommand::q_des_hip, SpiCommand::q_des_knee, SpiData::q_hip, SpiData::q_knee, q_limit_n, q_limit_p, SpiData::qd_abad, SpiCommand::qd_des_abad, SpiCommand::qd_des_hip, SpiCommand::qd_des_knee, SpiData::qd_hip, SpiData::qd_knee, SpiCommand::tau_abad_ff, SpiCommand::tau_hip_ff, SpiCommand::tau_knee_ff, torque_out, and wimp_torque.
|
private |
Definition at line 58 of file SpineBoard.h.
SpiCommand* SpineBoard::cmd = nullptr |
Definition at line 52 of file SpineBoard.h.
SpiData* SpineBoard::data = nullptr |
Definition at line 53 of file SpineBoard.h.
Definition at line 61 of file SpineBoard.h.
|
private |
Definition at line 66 of file SpineBoard.h.
|
private |
Definition at line 65 of file SpineBoard.h.
|
private |
Definition at line 64 of file SpineBoard.h.
Definition at line 59 of file SpineBoard.h.
|
private |
Definition at line 63 of file SpineBoard.h.
|
private |
Definition at line 62 of file SpineBoard.h.
|
private |
Definition at line 57 of file SpineBoard.h.
float SpineBoard::torque_out[3] |
Definition at line 54 of file SpineBoard.h.
Definition at line 60 of file SpineBoard.h.