Skip to content

Commit

Permalink
update
Browse files Browse the repository at this point in the history
  • Loading branch information
haitomatic committed Nov 8, 2023
1 parent 251c9d6 commit bab4430
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
3 changes: 2 additions & 1 deletion src/gazebo_mavlink_interface.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -298,7 +298,7 @@ void GazeboMavlinkInterface::PoseCallback(const gz::msgs::Pose_V &_msg){
void GazeboMavlinkInterface::ImuCallback(const gz::msgs::IMU &_msg) {
const std::lock_guard<std::mutex> lock(last_imu_message_mutex_);
last_imu_message_ = _msg;
std::cout << "ImuCallback with data " << last_imu_message_.orientation().z() << std::endl;
std::cout << "ImuCallback with data " << last_imu_message_.linear_acceleration().z() << std::endl;
}

void GazeboMavlinkInterface::BarometerCallback(const gz::msgs::FluidPressure &_msg) {
Expand Down Expand Up @@ -473,6 +473,7 @@ void GazeboMavlinkInterface::PublishRotorVelocities(
gz::sim::EntityComponentManager &_ecm,
const Eigen::VectorXd &_vels)
{
std::cout << "number of motors " << _vels.size() << std::endl;
if (_vels.size() != rotor_velocity_message_.velocity_size())
{
rotor_velocity_message_.mutable_velocity()->Resize(_vels.size(), 0);
Expand Down
1 change: 0 additions & 1 deletion src/mavlink_interface.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -483,7 +483,6 @@ void MavlinkInterface::handle_actuator_controls(mavlink_message_t *msg)
for (int i = 0; i < input_reference_.size(); i++) {
input_reference_[i] = controls.controls[i];
}
std::cout << "input_reference_ : " << input_reference_[0] << std::endl;
received_actuator_ = true;
received_first_actuator_ = true;
}
Expand Down

0 comments on commit bab4430

Please sign in to comment.