Commit f28e5544 authored by Léo-Paul Géneau's avatar Léo-Paul Géneau 👾

trim whitespaces in logs

parent 6dd2502f
......@@ -146,11 +146,11 @@ int mavsdk_start(const char * url, const char * log_file, int timeout) {
Telemetry::FixedwingMetrics metrics = telemetry->fixedwing_metrics();
Telemetry::Position position = telemetry->position();
oss << gps.timestamp_us << "; "
<< gps.latitude_deg << "; " << gps.longitude_deg << "; "
<< gps.absolute_altitude_m << "; " << position.relative_altitude_m << "; "
<< euler_angle.pitch_deg << "; " << euler_angle.roll_deg << "; " << euler_angle.yaw_deg << "; "
<< metrics.airspeed_m_s << "; " << metrics.throttle_percentage << "; " << metrics.climb_rate_m_s;
oss << gps.timestamp_us << ";"
<< gps.latitude_deg << ";" << gps.longitude_deg << ";"
<< gps.absolute_altitude_m << ";" << position.relative_altitude_m << ";"
<< euler_angle.pitch_deg << ";" << euler_angle.roll_deg << ";" << euler_angle.yaw_deg << ";"
<< metrics.airspeed_m_s << ";" << metrics.throttle_percentage << ";" << metrics.climb_rate_m_s;
log(oss.str());
});
......@@ -164,7 +164,7 @@ int mavsdk_start(const char * url, const char * log_file, int timeout) {
log("MAVSDK started...");
mavsdk_started = 1;
log("timestamp; latitude; longitude; AMSL (m); rel altitude (m); pitch (°); roll(°); yaw(°); air speed (m/s); throttle(%); climb rate(m/s)");
log("timestamp;latitude;longitude;AMSL (m);rel altitude (m);pitch (°);roll(°);yaw(°);air speed (m/s);throttle(%);climb rate(m/s)");
return 0;
}
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment