Skip to content
UAS.cc 73.5 KiB
Newer Older
                                  &message,
                                  this->uasId,
                                  0,
                                  -1,
                                  param_rc_channel_index,
                                  value0,
                                  scale,
                                  valueMin,
                                  valueMax);
    _vehicle->sendMessage(message);
dogmaphobic's avatar
dogmaphobic committed
    //qDebug() << "Mavlink message sent";
void UAS::unsetRCToParameterMap()
{
dogmaphobic's avatar
dogmaphobic committed

    char param_id_cstr[MAVLINK_MSG_PARAM_MAP_RC_FIELD_PARAM_ID_LEN] = {};

    for (int i = 0; i < 3; i++) {
        mavlink_message_t message;
        mavlink_msg_param_map_rc_pack(mavlink->getSystemId(),
                                      mavlink->getComponentId(),
                                      &message,
                                      this->uasId,
                                      0,
                                      0.0f,
                                      0.0f,
        _vehicle->sendMessage(message);

void UAS::_say(const QString& text, int severity)
{
    Q_UNUSED(severity);
    qgcApp()->toolbox()->audioOutput()->say(text);
Don Gagne's avatar
Don Gagne committed

void UAS::shutdownVehicle(void)
{
#ifndef __mobile__
    stopHil();
    if (simulation) {
        // wait for the simulator to exit
        simulation->wait();
        simulation->disconnectSimulation();
        simulation->deleteLater();
    }
#endif
    _vehicle = NULL;
}