From f888fd171e6996f8c2aec5966d43647a65a1dfba Mon Sep 17 00:00:00 2001 From: Unknown Date: Wed, 2 Jan 2019 13:10:02 -0500 Subject: [PATCH] Make xxx_setpoint properties read-only --- Firmware/MotorControl/controller.hpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/Firmware/MotorControl/controller.hpp b/Firmware/MotorControl/controller.hpp index 9529f82f..bd9dab63 100644 --- a/Firmware/MotorControl/controller.hpp +++ b/Firmware/MotorControl/controller.hpp @@ -115,10 +115,10 @@ public: make_protocol_property("input_pos", &input_pos_), make_protocol_property("input_vel", &input_vel_), make_protocol_property("input_current", &input_current_), - make_protocol_property("pos_setpoint", &pos_setpoint_), - make_protocol_property("vel_setpoint", &vel_setpoint_), - make_protocol_property("vel_integrator_current", &vel_integrator_current_), - make_protocol_property("current_setpoint", ¤t_setpoint_), + make_protocol_ro_property("pos_setpoint", &pos_setpoint_), + make_protocol_ro_property("vel_setpoint", &vel_setpoint_), + make_protocol_ro_property("vel_integrator_current", &vel_integrator_current_), + make_protocol_ro_property("current_setpoint", ¤t_setpoint_), make_protocol_object("config", make_protocol_property("control_mode", &config_.control_mode), make_protocol_property("input_mode", &config_.input_mode),