Plane: Quadplane: only log TILT on tiltrotors

This commit is contained in:
Iampete1 2025-02-07 00:24:47 +00:00 committed by Randy Mackay
parent 77137844c3
commit c4cc7edece

View File

@ -400,6 +400,11 @@ void Tiltrotor::update(void)
// Write tiltrotor specific log // Write tiltrotor specific log
void Tiltrotor::write_log() void Tiltrotor::write_log()
{ {
// Only valid on a tiltrotor
if (!enabled()) {
return;
}
struct log_tiltrotor pkt { struct log_tiltrotor pkt {
LOG_PACKET_HEADER_INIT(LOG_TILT_MSG), LOG_PACKET_HEADER_INIT(LOG_TILT_MSG),
time_us : AP_HAL::micros64(), time_us : AP_HAL::micros64(),