mirror of
https://github.com/odriverobotics/ODrive.git
synced 2026-08-26 12:33:36 +08:00
add Iq control effort report
This commit is contained in:
@@ -123,6 +123,7 @@ const Endpoint endpoints[] = {
|
||||
Endpoint::make_property("i_gain", &motors[0].current_control.i_gain),
|
||||
Endpoint::make_property("v_current_control_integral_d", &motors[0].current_control.v_current_control_integral_d),
|
||||
Endpoint::make_property("v_current_control_integral_q", &motors[0].current_control.v_current_control_integral_q),
|
||||
Endpoint::make_property("Iq_command", &motors[0].current_control.Iq),
|
||||
Endpoint::make_property("Ibus", const_cast<const float*>(&motors[0].current_control.Ibus)),
|
||||
Endpoint::close_tree(),
|
||||
Endpoint::make_object("encoder"),
|
||||
@@ -176,6 +177,7 @@ const Endpoint endpoints[] = {
|
||||
Endpoint::make_property("i_gain", &motors[1].current_control.i_gain),
|
||||
Endpoint::make_property("v_current_control_integral_d", &motors[1].current_control.v_current_control_integral_d),
|
||||
Endpoint::make_property("v_current_control_integral_q", &motors[1].current_control.v_current_control_integral_q),
|
||||
Endpoint::make_property("Iq_command", &motors[1].current_control.Iq),
|
||||
Endpoint::make_property("Ibus", const_cast<const float*>(&motors[1].current_control.Ibus)),
|
||||
Endpoint::close_tree(),
|
||||
Endpoint::make_object("encoder"),
|
||||
|
||||
Reference in New Issue
Block a user