Browse Source

Sub: Reword stale comment

mission-4.1.18
Jacob Walser 8 years ago
parent
commit
0ff8dcf58a
  1. 9
      ArduSub/flight_mode.cpp

9
ArduSub/flight_mode.cpp

@ -1,14 +1,7 @@
#include "Sub.h" #include "Sub.h"
/* // change flight mode and perform any necessary initialisation
* flight.pde - high level calls to set and update flight modes
* logic for individual flight modes is in control_acro.pde, control_stabilize.pde, etc
*/
// set_mode - change flight mode and perform any necessary initialisation
// optional force parameter used to force the flight mode change (used only first time mode is set)
// returns true if mode was succesfully set // returns true if mode was succesfully set
// ACRO, STABILIZE, ALTHOLD, LAND, DRIFT and SPORT can always be set successfully but the return state of other flight modes should be checked and the caller should deal with failures appropriately
bool Sub::set_mode(control_mode_t mode, mode_reason_t reason) bool Sub::set_mode(control_mode_t mode, mode_reason_t reason)
{ {
// boolean to record if flight mode could be set // boolean to record if flight mode could be set

Loading…
Cancel
Save