Skip to content
Snippets Groups Projects
UAS.cc 36.3 KiB
Newer Older
  • Learn to ignore specific revisions
  • lm's avatar
    lm committed
    void UAS::startLowBattAlarm()
    {
        if (!lowBattAlarm)
        {
            GAudioOutput::instance()->startEmergency("BATTERY");
            lowBattAlarm = true;
        }
    }
    
    void UAS::stopLowBattAlarm()
    {
        if (lowBattAlarm)
        {
            GAudioOutput::instance()->stopEmergency();
            lowBattAlarm = false;
        }
    }
    
    
    pixhawk's avatar
    pixhawk committed
    void UAS::clearWaypointList()
    {
        mavlink_message_t message;
        // FIXME
        //messagePackRemoveWaypoints(MG::SYSTEM::ID, &message);
        sendMessage(message);
        qDebug() << "UAS clears Waypoints!";
    }