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 : simple tonealarm simulator class 17 : */ 18 : 19 : #include <GCS_MAVLink/GCS.h> 20 : #include <SITL/SITL.h> 21 : 22 : #include "SIM_ToneAlarm.h" 23 : 24 : using namespace SITL; 25 : 26 : // table of user settable parameters 27 : const AP_Param::GroupInfo ToneAlarm::var_info[] = { 28 : 29 : // @Param: ENABLE 30 : // @DisplayName: ToneAlarm enable/disable 31 : // @Description: Allows you to enable (1) or disable (0) the simulated tonealarm 32 : // @Values: 0:Disabled,1:Enabled 33 : // @User: Advanced 34 : AP_GROUPINFO("ENABLE", 0, ToneAlarm, _enable, 1), 35 : 36 : AP_GROUPEND 37 : }; 38 : 39 : /* 40 : update tonealarm state 41 : */ 42 0 : void ToneAlarm::update(const struct sitl_input &input) 43 : { 44 : // currently all of the simulated buzzer logic is within AP_HAL_SITL 45 0 : }