Line data Source code
1 : /* 2 : This program is free software: you can redistribute it and/or modify 3 : it under the terms of the GNU General Public License as published by 4 : the Free Software Foundation, either version 3 of the License, or 5 : (at your option) any later version. 6 : 7 : This program is distributed in the hope that it will be useful, 8 : but WITHOUT ANY WARRANTY; without even the implied warranty of 9 : MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 10 : GNU General Public License for more details. 11 : 12 : You should have received a copy of the GNU General Public License 13 : along with this program. If not, see <http://www.gnu.org/licenses/>. 14 : */ 15 : /* 16 : Base class for FrSky telemetry 17 : */ 18 : 19 : #include "SIM_Frsky.h" 20 : 21 : using namespace SITL; 22 : 23 0 : const char *Frsky::dataid_string(DataID id) 24 : { 25 0 : switch (id) { 26 0 : case DataID::GPS_ALT_BP: return "GPS_ALT_BP"; 27 0 : case DataID::TEMP1: return "TEMP1"; 28 0 : case DataID::FUEL: return "FUEL"; 29 0 : case DataID::TEMP2: return "TEMP2"; 30 0 : case DataID::GPS_ALT_AP: return "GPS_ALT_AP"; 31 0 : case DataID::BARO_ALT_BP: return "BARO_ALT_BP"; 32 0 : case DataID::GPS_SPEED_BP: return "GPS_SPEED_BP"; 33 0 : case DataID::GPS_LONG_BP: return "GPS_LONG_BP"; 34 0 : case DataID::GPS_LAT_BP: return "GPS_LAT_BP"; 35 0 : case DataID::GPS_COURS_BP: return "GPS_COURS_BP"; 36 0 : case DataID::GPS_SPEED_AP: return "GPS_SPEED_AP"; 37 0 : case DataID::GPS_LONG_AP: return "GPS_LONG_AP"; 38 0 : case DataID::GPS_LAT_AP: return "GPS_LAT_AP"; 39 0 : case DataID::BARO_ALT_AP: return "BARO_ALT_AP"; 40 0 : case DataID::GPS_LONG_EW: return "GPS_LONG_EW"; 41 0 : case DataID::GPS_LAT_NS: return "GPS_LAT_NS"; 42 0 : case DataID::CURRENT: return "CURRENT"; 43 0 : case DataID::VFAS: return "VFAS"; 44 : } 45 : 46 0 : return "UNKNOWN"; 47 : }