/* * Authors (alphabetical order) * - Andre Bernet * - Andreas Weitl * - Bertrand Songis * - Bryan J. Rentoul (Gruvin) * - Cameron Weeks * - Erez Raviv * - Gabriel Birkus * - Gerard Valade * - Jean-Pierre Parisy * - Karl Szmutny * - Michael Blandford * - Michal Hlavinka * - Pat Mackenzie * - Philip Moss * - Rienk de Jong * - Rob Thomson * - Romolo Manfredini * - Thomas Husterer * * opentx is based on code named * gruvin9x by Bryan J. Rentoul: http://code.google.com/p/gruvin9x/, * er9x by Erez Raviv: http://code.google.com/p/er9x/, * and the original (and ongoing) project by * Thomas Husterer, th9x: http://code.google.com/p/th9x/ * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License version 2 as * published by the Free Software Foundation. * * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * */ /*! \file view_mavlink.h * Mavlink menu include file */ #ifndef _VIEW_MAVLINK_H_ #define _VIEW_MAVLINK_H_ #include "opentx.h" #include "telemetry/mavlink.h" #include "gui/menus.h" #include "serial.h" #define APSIZE (BSS | DBLSIZE) void menuTelemetryMavlink(uint8_t event); void displayScreenIndex(uint8_t index, uint8_t count, uint8_t attr); void lcd_outdezFloat(uint8_t x, uint8_t y, float val, uint8_t precis, uint8_t mode = 0); void mav_title(const pm_char * s, uint8_t index); void menuTelemetryMavlinkInfos(void); void menuTelemetryMavlinkFlightMode(void); void menuTelemetryMavlinkBattery(void); void menuTelemetryMavlinkNavigation(void); void menuTelemetryMavlinkGPS(void); #ifdef DUMP_RX_TX void lcd_outhex2(uint8_t x, uint8_t y, uint8_t val); void menuTelemetryMavlinkDump(uint8_t event); #endif void menuTelemetryMavlinkSetup(uint8_t event); /*! \brief Mavlink menu enumerator * \details Used to create a readable case statement for the * \link menuTelemetryMavlink menuTelemetryMavlink \endlink funtion. */ enum mavlink_menu_ { MENU_INFO = 0, // MENU_MODE, MENU_BATT, MENU_NAV, MENU_GPS, // #ifdef DUMP_RX_TX MENU_DUMP_RX, // MENU_DUMP_TX, // #endif MAX_MAVLINK_MENU }; //! \brief Pointer array to mavlink settings menus. const MenuFuncP_PROGMEM menuTabMav[] PROGMEM = { menuTelemetryMavlinkSetup }; //! \brief Mavlink setup menu configuration items list. enum menuMavlinkSetupItems { ITEM_MAVLINK_RC_RSSI_SCALE, ITEM_MAVLINK_PC_RSSI_EN, ITEM_MAVLINK_MAX }; //! \brief Menu index varible, initialized on info menu. uint8_t MAVLINK_menu = MENU_INFO; #endif