Real-time collaboration for Jupyter Notebooks, Linux Terminals, LaTeX, VS Code, R IDE, and more,
all in one place. Commercial Alternative to JupyterHub.
Real-time collaboration for Jupyter Notebooks, Linux Terminals, LaTeX, VS Code, R IDE, and more,
all in one place. Commercial Alternative to JupyterHub.
Path: blob/master/Rover/afs_rover.h
Views: 1798
/*1This program is free software: you can redistribute it and/or modify2it under the terms of the GNU General Public License as published by3the Free Software Foundation, either version 3 of the License, or4(at your option) any later version.56This program is distributed in the hope that it will be useful,7but WITHOUT ANY WARRANTY; without even the implied warranty of8MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the9GNU General Public License for more details.1011You should have received a copy of the GNU General Public License12along with this program. If not, see <http://www.gnu.org/licenses/>.13*/14#pragma once1516/*17advanced failsafe support for rover18*/1920#if AP_ROVER_ADVANCED_FAILSAFE_ENABLED21#include <AP_AdvancedFailsafe/AP_AdvancedFailsafe.h>2223/*24a rover specific AP_AdvancedFailsafe class25*/26class AP_AdvancedFailsafe_Rover : public AP_AdvancedFailsafe27{28public:29using AP_AdvancedFailsafe::AP_AdvancedFailsafe;3031// called to set all outputs to termination state32void terminate_vehicle(void) override;3334protected:35// setup failsafe values - this is handled by motors library36void setup_IO_failsafe(void) override {}3738// return the AFS mapped control mode39enum control_mode afs_mode(void) override;4041//to force entering auto mode when datalink loss42void set_mode_auto(void) override;43};4445#endif // ADVANCED_FAILSAFE464748