From c14bc7b87152df481dc4ee162ff456157df3682c Mon Sep 17 00:00:00 2001 From: Oskar Weigl Date: Tue, 19 Dec 2017 20:56:36 -0800 Subject: [PATCH] add Iq control effort report --- Firmware/MotorControl/commands.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/Firmware/MotorControl/commands.cpp b/Firmware/MotorControl/commands.cpp index 54031438..bc426507 100644 --- a/Firmware/MotorControl/commands.cpp +++ b/Firmware/MotorControl/commands.cpp @@ -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(&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(&motors[1].current_control.Ibus)), Endpoint::close_tree(), Endpoint::make_object("encoder"),