mirror of
https://github.com/ArduPilot/ardupilot
synced 2025-01-22 00:28:30 -04:00
APMControl: Cast type to uint8
* Clang requires that the type be explicitly cast to uint8
This commit is contained in:
parent
fabe235130
commit
8c98eb2b84
@ -337,7 +337,7 @@ void AP_AutoTune::write_log(float servo, float demanded, float achieved)
|
||||
struct log_ATRP pkt = {
|
||||
LOG_PACKET_HEADER_INIT(LOG_ATRP_MSG),
|
||||
time_us : AP_HAL::micros64(),
|
||||
type : type,
|
||||
type : static_cast<uint8_t>(type),
|
||||
state : (uint8_t)state,
|
||||
servo : (int16_t)(servo*100),
|
||||
demanded : demanded,
|
||||
|
Loading…
Reference in New Issue
Block a user