Skip to content

Commit

Permalink
update encoder access for latest version
Browse files Browse the repository at this point in the history
  • Loading branch information
yconst committed Aug 27, 2024
1 parent 41e3eff commit 26bd9fc
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 2 deletions.
11 changes: 10 additions & 1 deletion CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -130,14 +130,23 @@ include_directories(
set(TINYMOVR_SOURCES
src/tinymovr/can.cpp
src/tinymovr/comms.cpp
src/tinymovr/commutation_sensor.cpp
src/tinymovr/controller.cpp
src/tinymovr/current.cpp
src/tinymovr/encoder.cpp
src/tinymovr/external_spi.cpp
src/tinymovr/hall.cpp
src/tinymovr/homing.cpp
src/tinymovr/motor.cpp
src/tinymovr/onboard.cpp
src/tinymovr/position_sensor.cpp
src/tinymovr/position.cpp
src/tinymovr/scheduler.cpp
src/tinymovr/select.cpp
src/tinymovr/setup.cpp
src/tinymovr/stall_detect.cpp
src/tinymovr/tinymovr.cpp
src/tinymovr/traj_planner.cpp
src/tinymovr/user_frame.cpp
src/tinymovr/velocity.cpp
src/tinymovr/voltage.cpp
src/tinymovr/watchdog.cpp
Expand Down
2 changes: 1 addition & 1 deletion src/tm_joint_iface.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -239,7 +239,7 @@ bool TinymovrJoint::init(ros::NodeHandle& root_nh, ros::NodeHandle& robot_hw_nh)
ROS_DEBUG("Asserting calibrated");
for (int i=0; i<num_joints; i++)
{
ROS_ASSERT((servos[i].encoder.get_calibrated() == true) && (servos[i].motor.get_calibrated() == true));
ROS_ASSERT(servos[i].get_calibrated() == true);
ROS_DEBUG("%s ok", joint_name[i].c_str());
}

Expand Down

0 comments on commit 26bd9fc

Please sign in to comment.