mirror of
https://github.com/ArduPilot/ardupilot
synced 2025-01-09 17:38:32 -04:00
Rover: minor style correction on log
This commit is contained in:
parent
2321cefdc2
commit
707b006f76
@ -329,13 +329,13 @@ void Rover::Log_Write_Rangefinder()
|
|||||||
struct log_Rangefinder pkt = {
|
struct log_Rangefinder pkt = {
|
||||||
LOG_PACKET_HEADER_INIT(LOG_RANGEFINDER_MSG),
|
LOG_PACKET_HEADER_INIT(LOG_RANGEFINDER_MSG),
|
||||||
time_us : AP_HAL::micros64(),
|
time_us : AP_HAL::micros64(),
|
||||||
lateral_accel : control_mode->lateral_acceleration,
|
lateral_accel : control_mode->lateral_acceleration,
|
||||||
rangefinder1_distance : rangefinder.distance_cm(0),
|
rangefinder1_distance : rangefinder.distance_cm(0),
|
||||||
rangefinder2_distance : rangefinder.distance_cm(1),
|
rangefinder2_distance : rangefinder.distance_cm(1),
|
||||||
detected_count : obstacle.detected_count,
|
detected_count : obstacle.detected_count,
|
||||||
turn_angle : static_cast<int8_t>(obstacle.turn_angle),
|
turn_angle : static_cast<int8_t>(obstacle.turn_angle),
|
||||||
turn_time : turn_time,
|
turn_time : turn_time,
|
||||||
ground_speed : static_cast<uint16_t>(fabsf(ground_speed * 100)),
|
ground_speed : static_cast<uint16_t>(fabsf(ground_speed * 100.0f)),
|
||||||
throttle : int8_t(SRV_Channels::get_output_scaled(SRV_Channel::k_throttle))
|
throttle : int8_t(SRV_Channels::get_output_scaled(SRV_Channel::k_throttle))
|
||||||
};
|
};
|
||||||
DataFlash.WriteBlock(&pkt, sizeof(pkt));
|
DataFlash.WriteBlock(&pkt, sizeof(pkt));
|
||||||
|
Loading…
Reference in New Issue
Block a user