Skip to content

Commit

Permalink
Fix up Follow Me code implementations
Browse files Browse the repository at this point in the history
- Residue of wrong commits I guess
  • Loading branch information
junwoo091400 committed May 27, 2022
1 parent d1f89fa commit 46bf5ea
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion examples/follow_me/follow_me.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -132,7 +132,7 @@ int main(int argc, char** argv)
// And Follow direction as "Behind" (180 degrees)
FollowMe::Config config;
config.follow_height_m = 10.0;
config.follow_angle_deg = 180.0f
config.follow_angle_deg = 180.0f;
FollowMe::Result follow_me_result = follow_me.set_config(config);

if (follow_me_result != FollowMe::Result::Success) {
Expand Down
4 changes: 2 additions & 2 deletions src/integration_tests/follow_me.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -154,7 +154,7 @@ TEST_F(SitlTest, PX4FollowMeMultiLocationWithConfig)
FollowMe::Config config;
config.follow_height_m = 12.f; // increase min height
config.follow_distance_m = 20.f; // set distance b/w system and target during FollowMe mode
config.responsiveness = 0.2f; // set to higher responsiveness
config.responsiveness = 0.2f; // Make it less responsive (higher value for the setting)
config.follow_angle_deg = 0.0; // System follows target from FRONT side

// Apply configuration
Expand Down Expand Up @@ -192,7 +192,7 @@ void print(const FollowMe::Config& config)
std::cout << "---------------------------" << '\n';
std::cout << "Height: " << config.follow_height_m << "m" << '\n';
std::cout << "Distance: " << config.follow_distance_m << "m" << '\n';
std::cout << "Following from: " << config.follow_angle_deg << "[deg]" << '\n';
std::cout << "Following angle: " << config.follow_angle_deg << "[deg]" << '\n';
std::cout << "Responsiveness: " << config.responsiveness << '\n';
std::cout << "---------------------------" << '\n';
}
Expand Down

0 comments on commit 46bf5ea

Please sign in to comment.