Publishing esc_setpoint_raw from the UAVCAN driver

This commit is contained in:
Pavel Kirienko 2014-10-13 17:07:14 +04:00
parent 1bf4270e3e
commit ecd144b8b4

View File

@ -109,6 +109,8 @@ void UavcanEscController::update_outputs(float *outputs, unsigned num_outputs)
}
msg.cmd.push_back(static_cast<int>(scaled));
_esc_status.esc[i].esc_setpoint_raw = abs(static_cast<int>(scaled));
}
}