From 4485f7cb19a8f49c0e19b90069edd5bdc55aba60 Mon Sep 17 00:00:00 2001 From: Phil Tokumaru Date: Wed, 10 Jul 2024 09:58:50 -0700 Subject: [PATCH] ran clang-format -i comm_manager.cpp --- src/comm_manager.cpp | 47 +++++++++++++++++++++----------------------- 1 file changed, 22 insertions(+), 25 deletions(-) diff --git a/src/comm_manager.cpp b/src/comm_manager.cpp index 7ebefa72..557c92c4 100644 --- a/src/comm_manager.cpp +++ b/src/comm_manager.cpp @@ -397,32 +397,29 @@ void CommManager::send_rc_raw(void) void CommManager::send_diff_pressure(void) { - comm_link_.send_diff_pressure(sysid_, RF_.sensors_.data().diff_pressure_velocity, - RF_.sensors_.data().diff_pressure, - RF_.sensors_.data().diff_pressure_temp); - } + comm_link_.send_diff_pressure(sysid_, RF_.sensors_.data().diff_pressure_velocity, + RF_.sensors_.data().diff_pressure, + RF_.sensors_.data().diff_pressure_temp); +} void CommManager::send_baro(void) { - comm_link_.send_baro(sysid_, RF_.sensors_.data().baro_altitude, - RF_.sensors_.data().baro_pressure, RF_.sensors_.data().baro_temperature); - } + comm_link_.send_baro(sysid_, RF_.sensors_.data().baro_altitude, RF_.sensors_.data().baro_pressure, + RF_.sensors_.data().baro_temperature); +} void CommManager::send_sonar(void) { - comm_link_.send_sonar(sysid_, - 0, // TODO set sensor type (sonar/lidar), use enum - RF_.sensors_.data().sonar_range, 8.0, 0.25); - } - -void CommManager::send_mag(void) -{ - comm_link_.send_mag(sysid_, RF_.sensors_.data().mag); + comm_link_.send_sonar(sysid_, + 0, // TODO set sensor type (sonar/lidar), use enum + RF_.sensors_.data().sonar_range, 8.0, 0.25); } + +void CommManager::send_mag(void) { comm_link_.send_mag(sysid_, RF_.sensors_.data().mag); } void CommManager::send_battery_status(void) { - comm_link_.send_battery_status(sysid_, RF_.sensors_.data().battery_voltage, - RF_.sensors_.data().battery_current); + comm_link_.send_battery_status(sysid_, RF_.sensors_.data().battery_voltage, + RF_.sensors_.data().battery_current); } void CommManager::send_backup_data(const StateManager::BackupData & backup_data) @@ -439,20 +436,20 @@ void CommManager::send_gnss(void) { const GNSSData & gnss_data = RF_.sensors_.data().gnss_data; - if (gnss_data.time_of_week != last_sent_gnss_tow_) { - comm_link_.send_gnss(sysid_, gnss_data); - last_sent_gnss_tow_ = gnss_data.time_of_week; - } + if (gnss_data.time_of_week != last_sent_gnss_tow_) { + comm_link_.send_gnss(sysid_, gnss_data); + last_sent_gnss_tow_ = gnss_data.time_of_week; } +} void CommManager::send_gnss_full() { const GNSSFull & gnss_full = RF_.sensors_.data().gnss_full; - if (gnss_full.time_of_week != last_sent_gnss_full_tow_) { - comm_link_.send_gnss_full(sysid_, RF_.sensors_.data().gnss_full); - last_sent_gnss_full_tow_ = gnss_full.time_of_week; - } + if (gnss_full.time_of_week != last_sent_gnss_full_tow_) { + comm_link_.send_gnss_full(sysid_, RF_.sensors_.data().gnss_full); + last_sent_gnss_full_tow_ = gnss_full.time_of_week; + } } void CommManager::send_low_priority(void)