Skip to content

Commit

Permalink
review: apply suggestions
Browse files Browse the repository at this point in the history
  • Loading branch information
GuillaumeLaine committed May 15, 2024
1 parent 61dbceb commit 138d3a3
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ class DirectActuatorsSetpointType : public SetpointBase
~DirectActuatorsSetpointType() override = default;

Configuration getConfiguration() override;
float desiredUpdateRateHz() override {return 100.f;}
float desiredUpdateRateHz() override {return 200.f;}

/**
* Send servos setpoint
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ class RatesSetpointType : public SetpointBase
~RatesSetpointType() override = default;

Configuration getConfiguration() override;
float desiredUpdateRateHz() override {return 100.f;}
float desiredUpdateRateHz() override {return 200.f;}

void update(
const Eigen::Vector3f & rate_setpoints_ned_rad,
Expand Down
1 change: 1 addition & 0 deletions px4_ros2_cpp/src/components/mode.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -229,6 +229,7 @@ bool ModeBase::onRegistered()

activateSetpointType(*_setpoint_types[0]);
if (_setpoint_update_rate_hz < FLT_EPSILON) {
// Do not use default setpoint rate if rate was already set by user
setSetpointUpdateRateFromSetpointTypes();
}

Expand Down

0 comments on commit 138d3a3

Please sign in to comment.