Skip to content

Commit c2c96bb

Browse files
committed
Minor documentation updates
Signed-off-by: Rosalie <[email protected]>
1 parent 2607d21 commit c2c96bb

3 files changed

Lines changed: 3 additions & 3 deletions

File tree

alliander_diagnostics/src/alliander_diagnostics/include/diagnostics_node.hpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ class DiagnosticsNode {
2121
public:
2222
/**
2323
* @brief Construct the diagnostics node.
24-
* @param node Shared pointer to the ROS2 node.
24+
* @param node The ROS2 node.
2525
*/
2626
DiagnosticsNode(rclcpp::Node::SharedPtr node);
2727

alliander_diagnostics/src/alliander_diagnostics/include/gps_diagnostics.hpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ class GpsDiagnostics : public BaseDiagnostics {
4646

4747
/// The number of seconds of having received no data until the GPS signal is
4848
/// deemed to be unstable
49-
double limit_no_data_received = 5.0;
49+
double no_data_received_limit = 5.0;
5050

5151
/// Indication of whether a high covariance is detected (true) or not (false)
5252
bool high_covariance_detected = false;

alliander_diagnostics/src/alliander_diagnostics/src/gps_diagnostics.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ void GpsDiagnostics::evaluate(rclcpp::Time now) {
5151

5252
rclcpp::Duration since_last = now - latest_msg_time;
5353

54-
if (since_last.seconds() > limit_no_data_received) {
54+
if (since_last.seconds() > no_data_received_limit) {
5555
status_.level = diagnostic_msgs::msg::DiagnosticStatus::ERROR;
5656
status_.message = "No GPS signal received anymore";
5757
} else if (latest_fix_status < 0) {

0 commit comments

Comments
 (0)