diff --git a/Firmware/MotorControl/encoder.hpp b/Firmware/MotorControl/encoder.hpp index c2d32841..90382fc4 100644 --- a/Firmware/MotorControl/encoder.hpp +++ b/Firmware/MotorControl/encoder.hpp @@ -97,16 +97,16 @@ public: auto make_protocol_definitions() { return make_protocol_member_list( make_protocol_property("error", &error_), - make_protocol_property("is_ready", &is_ready_), - make_protocol_property("index_found", const_cast(&index_found_)), - make_protocol_property("shadow_count", &shadow_count_), - make_protocol_property("count_in_cpr", &count_in_cpr_), - make_protocol_property("interpolation", &interpolation_), + make_protocol_ro_property("is_ready", &is_ready_), + make_protocol_ro_property("index_found", const_cast(&index_found_)), + make_protocol_ro_property("shadow_count", &shadow_count_), + make_protocol_ro_property("count_in_cpr", &count_in_cpr_), + make_protocol_ro_property("interpolation", &interpolation_), make_protocol_ro_property("phase", &phase_), - make_protocol_property("pos_estimate", &pos_estimate_), - make_protocol_property("pos_cpr", &pos_cpr_), + make_protocol_ro_property("pos_estimate", &pos_estimate_), + make_protocol_ro_property("pos_cpr", &pos_cpr_), make_protocol_ro_property("hall_state", &hall_state_), - make_protocol_property("vel_estimate", &vel_estimate_), + make_protocol_ro_property("vel_estimate", &vel_estimate_), make_protocol_ro_property("calib_scan_response", &calib_scan_response_), // make_protocol_property("pll_kp", &pll_kp_), // make_protocol_property("pll_ki", &pll_ki_),