forked from USC-ACTLab/crazyswarm
-
Notifications
You must be signed in to change notification settings - Fork 62
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
1 changed file
with
7 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -142,7 +142,11 @@ class CrazyflieROS | |
subscription_cmd_position_ = node->create_subscription<crazyflie_interfaces::msg::Position>(name + "/cmd_position", rclcpp::SystemDefaultsQoS(), std::bind(&CrazyflieROS::cmd_position_changed, this, _1), sub_opt_cf_cmd); | ||
|
||
// spinning timer | ||
spin_timer_ = node->create_wall_timer(std::chrono::milliseconds(100), std::bind(&CrazyflieROS::spin_once, this), callback_group_cf_srv); | ||
// used to process all incoming radio messages | ||
spin_timer_ = | ||
node->create_wall_timer( | ||
std::chrono::milliseconds(1), | ||
std::bind(&CrazyflieROS::spin_once, this), callback_group_cf_srv); | ||
|
||
// link statistics | ||
warning_freq_ = node->get_parameter("warnings.frequency").get_parameter_value().get<float>(); | ||
|
@@ -380,7 +384,8 @@ class CrazyflieROS | |
|
||
void spin_once() | ||
{ | ||
cf_.spin_once(); | ||
// process all packets from the receive queue | ||
cf_.processAllPackets(); | ||
This comment has been minimized.
Sorry, something went wrong.
This comment has been minimized.
Sorry, something went wrong.
whoenig
Author
|
||
} | ||
|
||
std::string broadcastUri() const | ||
|
@whoenig I ran into an error while building because of this.
I have my own fork of crazyswarm2.
Is there something else I forgot to update?