File tree Expand file tree Collapse file tree
alliander_diagnostics/src/alliander_diagnostics Expand file tree Collapse file tree Original file line number Diff line number Diff 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
Original file line number Diff line number Diff 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 ;
Original file line number Diff line number Diff 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 ) {
You can’t perform that action at this time.
0 commit comments