Skip to content

Commit

Permalink
Adapt to new gsdk version
Browse files Browse the repository at this point in the history
  • Loading branch information
Flova committed Nov 5, 2023
1 parent dcfd772 commit 59704c5
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 5 deletions.
6 changes: 3 additions & 3 deletions gremsy_base/config/config.yaml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
# Config
device: "/dev/ttyUSB0"
baudrate: 115200
state_poll_rate: 10.0
goal_push_rate: 60.0
gimbal_mode: 1
state_poll_rate: 5.0
goal_push_rate: 10.0
gimbal_mode: 0

2 changes: 1 addition & 1 deletion gremsy_base/src/gSDK
5 changes: 4 additions & 1 deletion gremsy_base/src/ros_gremsy.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,10 @@ void GimbalNode::gimbalStateTimerCallback(const ros::TimerEvent& event)
encoder_ros_msg.vector.y = ((float) encoder_values.pitch) * DEG_TO_RAD;
encoder_ros_msg.vector.z = ((float) encoder_values.yaw) * DEG_TO_RAD;

encoder_pub.publish(encoder_ros_msg);
if (encoder_values.roll or encoder_values.pitch or encoder_values.yaw)
{
encoder_pub.publish(encoder_ros_msg);
}

//// Publish Gimbal IMU (Currently this deadlocks)
//Gimbal_Interface::imu_t imu_data = gimbal_interface_->get_gimbal_raw_imu();
Expand Down

0 comments on commit 59704c5

Please sign in to comment.