-
Notifications
You must be signed in to change notification settings - Fork 1.1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Rotorcraft arming #174
Rotorcraft arming #174
Conversation
flixr
commented
Apr 5, 2012
- moved arming sequences to separate files
- never start the motors if AHRS is not aligned (disable it with AUTOPILOT_DISABLE_AHRS_KILL)
- if USE_KILL_SWITCH_FOR_MOTOR_ARMING is defined (to 1):
- switch kill switch off to arm the motors
- if kill switch is off during startup, you need to kill again first, then unkill to start
- throttle needs to be down, other sticks centered to start motors
- need to be in manual mode to start the motors
- if USE_THROTTLE_FOR_MOTOR_ARMING is defined (to 1):
- automatically start motors when applying throttle
- if throttle was not down at startup, you need to put throttle down again first
- other sticks need to be centered to start motors
- need to be in manual mode to start the motors
- else the "default" arming sequence with the yaw-stick-to-the-corner is used
* moved arming sequences to separate files * removed kill_throttle variable, use provided functions to turn motors on/off, was only used in settings anyway... * if AUTOPILOT_KILL_WITHOUT_AHRS is defined, never start the motors if AHRS is not aligned * if AUTOPILOT_ARMING_KILL_SWITCH is defined: * switch kill switch off to arm the motors * if kill switch is off during startup, you need to kill again first, then unkill to start * throttle needs to be down, other sticks centered to start motors * need to be in manual mode to start the motors * if AUTOPILOT_ARMING_THROTTLE is defined: * automatically unkill when applying throttle * if throttle was not down at startup, you need to put throttle down again first * other sticks need to be centered to start motors * need to be in manual mode to start the motors * else the "default" arming sequence with the yaw-stick-to-the-corner is used
…RESHOLD in airframe file
…lid RC frame anyway
kill_throttle was needed to kill the autopilot from the GCS by connecting the button to the setting |
I just connected autopilot_motors_on to it... |
ah damn.. it's still needed for the button in the stip, right? Any better way to do this? |
…CS is connected to the kill_throttle setting
…igned to be able to change the mode via RC if the AHRS is not yet aligned, define AUTOPILOT_DISABLE_AHRS_KILL
… arming/unarming via throttle
ok, kill_throttle is really only needed for the kill button in the strip... this is a bit annoying, but well... I have tested the new modes and they worked the way I expected... anything else before we merge it into dev? |
…if AHRS is not aligned (unless AUTOPILOT_DISABLE_AHRS_KILL is defined)
I can see two solutions to handle motors_on/kill_throttle. |
AUTOPILOT_ARMING_THROTTLE maybe AIRCRAFT_ARMING_THROTTLE etc., using autopilot for manual stuff somewhat confusing IMHO and "other sticks need to be centered to start motors" forced but not explanation why this would be better by default. |
Sure, we could rename the defines. It's just that we already have a few
It's just an additional measure to ensure the motors won't immediately spin |
ok, changed the names of the defines to USE_KILL_SWITCH_FOR_MOTOR_ARMING and USE_THROTTLE_FOR_MOTOR_ARMING |
* never start the motors if AHRS is not aligned (disable it with AUTOPILOT_DISABLE_AHRS_KILL) * if USE_KILL_SWITCH_FOR_MOTOR_ARMING is defined (to 1): * switch kill switch off to arm the motors * if kill switch is off during startup, you need to kill again first, then unkill to start * throttle needs to be down, other sticks centered to start motors * need to be in manual mode to start the motors * if USE_THROTTLE_FOR_MOTOR_ARMING is defined (to 1): * automatically start motors when applying throttle * if throttle was not down at startup, you need to put throttle down again first * other sticks need to be centered to start motors * need to be in manual mode to start the motors * else the "default" arming sequence with the yaw-stick-to-the-corner is used * if you have a RADIO_KILL_SWITCH defined, it it will be used to go into kill mode, regardless of what motor arming option is used
* rotorcrafts: additional motor arming options: #174 * rotorcrafts: easier setting/tuning of nominal hover throttle if adaptive filter is not used: #177 * rotorcrafts: some more fixed when changing vertical guidance modes * bat_checker module * updated some ADC stuff for lisa/m: #159 You should now be able to use ADC_1, ADC_2, ADC_3 for the ADCs on the ANALOG1
* rotorcrafts: additional motor arming options: #174 * rotorcrafts: easier setting/tuning of nominal hover throttle if adaptive filter is not used: #177 * rotorcrafts: some more fixed when changing vertical guidance modes * updated some ADC stuff for lisa/m: #159 You should now be able to use ADC_1, ADC_2, ADC_3 for the ADCs on the ANALOG1 * luftboot support * fix the NMEA parser, now it at least works for some basic things