mirror of
https://github.com/odriverobotics/ODrive.git
synced 2026-09-21 15:34:33 +08:00
Make encoder properties read-only
This commit is contained in:
@@ -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<bool*>(&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<bool*>(&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_),
|
||||
|
||||
Reference in New Issue
Block a user