mirror of
https://github.com/odriverobotics/ODrive.git
synced 2026-09-25 02:47:27 +08:00
Make xxx_setpoint properties read-only
This commit is contained in:
@@ -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),
|
||||
|
||||
Reference in New Issue
Block a user