From 707b006f762375ff76e478de6e1a6b65dfadb97f Mon Sep 17 00:00:00 2001 From: khancyr Date: Tue, 18 Jul 2017 12:34:59 +0200 Subject: [PATCH] Rover: minor style correction on log --- APMrover2/Log.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/APMrover2/Log.cpp b/APMrover2/Log.cpp index 608c9bf4f9..3d26dda4be 100644 --- a/APMrover2/Log.cpp +++ b/APMrover2/Log.cpp @@ -329,13 +329,13 @@ void Rover::Log_Write_Rangefinder() struct log_Rangefinder pkt = { LOG_PACKET_HEADER_INIT(LOG_RANGEFINDER_MSG), time_us : AP_HAL::micros64(), - lateral_accel : control_mode->lateral_acceleration, + lateral_accel : control_mode->lateral_acceleration, rangefinder1_distance : rangefinder.distance_cm(0), rangefinder2_distance : rangefinder.distance_cm(1), detected_count : obstacle.detected_count, turn_angle : static_cast(obstacle.turn_angle), turn_time : turn_time, - ground_speed : static_cast(fabsf(ground_speed * 100)), + ground_speed : static_cast(fabsf(ground_speed * 100.0f)), throttle : int8_t(SRV_Channels::get_output_scaled(SRV_Channel::k_throttle)) }; DataFlash.WriteBlock(&pkt, sizeof(pkt));