Skip to content

Commit

Permalink
ran clang-format -i comm_manager.cpp
Browse files Browse the repository at this point in the history
  • Loading branch information
avtoku authored and bsutherland333 committed Jul 10, 2024
1 parent 9f3187a commit 4485f7c
Showing 1 changed file with 22 additions and 25 deletions.
47 changes: 22 additions & 25 deletions src/comm_manager.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand All @@ -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)
Expand Down

0 comments on commit 4485f7c

Please sign in to comment.