Michael du Breuil
ee96ec7f0d
Plane: Support new AP_Vehicle::set_mode
5 years ago
Andrew Tridgell
ff400243e0
Plane: added a new TAKEOFF flight mode
...
takeoff then circle in direction of takeoff
5 years ago
Tom Pittenger
0270c57530
Plane: massive refactor and creation of Mode class
6 years ago
Peter Barker
40856fef56
Plane: remove vestiges of old PX4_MIXER code
6 years ago
Peter Barker
b574f4c1fc
Plane: move support for inverted flight to rc-aux-switch
...
Functional change here; if someone de-configures the rc aux switch in
flight they will remain inverted
7 years ago
Michael du Breuil
3e4288d604
Plane: Use RC_Channels instead of hal.rcin
7 years ago
Michael du Breuil
d52f5155f0
Plane: Rename rc failsafe state members
7 years ago
Peter Barker
5a8f01c19c
Plane: use send_text method on the GCS singleton
8 years ago
Andrew Tridgell
b83f50be0f
Plane: use new SRV_Channels API
8 years ago
Mathieu OTHACEHE
152edf7189
Global: remove mode line from headers
...
Using a global .dir-locals.el file is a better alternative than
reincluding the same emacs header in every file of the project.
8 years ago
Andrew Tridgell
9b83781b4f
Plane: fixed mixer arming error with FMUv4
...
thanks to Tim Gold for reporting this
9 years ago
murata
0e17cff099
Plane: if statements is simple.
9 years ago
Tom Pittenger
b187e1f9a6
Plane: add reason to set_mode()
9 years ago
Michael du Breuil
bb9086b87f
Plane: setup mixer in the one second loop when disarmed
9 years ago
Michael du Breuil
fc3ab7b691
Plane: rename var to avoid a var with the name of a c++ keyword
9 years ago
Tom Pittenger
af1407a155
Plane: disable parachute code when not enabled via compile option
9 years ago
Andrew Tridgell
125af1b856
Plane: added OVERRIDE_SAFETY parameter
9 years ago
Luis Vale Gonçalves
b7f3782e4e
Plane: Text revisions
...
text revisions
9 years ago
Lucas De Marchi
84da1f5039
Rename gcs_send_text_P to gcs_send_text
9 years ago
Lucas De Marchi
2c38e31c93
Remove use of PSTR
...
The PSTR is already define as a NOP for all supported platforms. It's
only needed for AVR so here we remove all the uses throughout the
codebase.
This was automated with a simple python script so it also converts
places which spans to multiple lines, removing the matching parentheses.
AVR-specific places were not changed.
9 years ago
Andrew Tridgell
5d1d54a8cb
Plane: added CHUTE_CHAN parameter for manual release
9 years ago
squilter
583c087eca
Plane: update severities
10 years ago
Andrew Tridgell
f2c1010501
Plane: prevent mode switch changes changing WP tracking
...
this fixes a bug where a mode switch change during an AUTO mission
which does not change the flight mode would cause cross tracking to be
reset, so the plane will not correctly follow the desired track
Many thanks to Michael Du Breuil for the log that showed this bug
10 years ago
Andrew Tridgell
4aac2c5c96
Plane: trigger OVERRIDE_CHAN in px4io
...
setup the MODESWITCH channel as our OVERRIDE_CHAN, allowing for
instant manual passthru in px4io when OVERRIDE_CHAN goes above 1750
This makes for faster switching, and avoids bugs where a still enabled
FMU channel disables override
10 years ago
Andrew Tridgell
76c0293a85
Plane: added support for DO_AUTOTUNE_ENABLE
10 years ago
Andrew Tridgell
bc6a52f8db
Plane: fixed handling of OVERRIDE_CHAN on arming
...
When arming we need to ensure that we don't enable any channels
otherwise PX4IO will think that FMU is active and will stop running
the internal RC mixer
10 years ago
Andrew Tridgell
b92c2409e4
Plane: added local millis() and micros() to reduce code size a bit
10 years ago
Andrew Tridgell
18c37935c9
Plane: convert from .pde to .cpp files
10 years ago
Jonathan Challinger
4105edaa87
Plane: use hal.util soft_armed state
10 years ago
Andrew Tridgell
a0f69e06a7
Plane: prevent baro reset from OVERRIDE_CHAN
...
using OVERRIDE_CHAN would cause a baro reset as it would mean we are
temporarily disarmed, and the "reset baro and GPS when disarmed" check
would reset the baro
Now we only do the mixer update if disarmed
10 years ago
Andrew Tridgell
e30838a4ef
Plane: make OVERRIDE_CHAN behaviour exactly match FLTMODE6
...
this provides a convenient "real manual" flight mode
10 years ago
Andrew Tridgell
913004beb0
Plane: added OVERRIDE_CHAN parameter
...
this allows both for testing PX4IO override on the ground, and for
forced manual override while flying, including re-arming after in-air
reboot
10 years ago
Andrew Tridgell
ea086fa79c
Plane: added MAV_CMD_DO_INVERTED_FLIGHT support
...
allows for mission control over inverted flight
11 years ago
Andrew Tridgell
1bce4239a3
Plane: added AUTOTUNE flight mode
...
this is just like FBWA, but with automatic roll/pitch tuning
11 years ago
Andrew Tridgell
4bf140aeac
Plane: make next_WP and prev_WP be locations
...
having a command ID in them doesn't really make sense
Pair-Programmed-With: Randy Mackay <rmackay9@yahoo.com>
11 years ago
Andrew Tridgell
3277416aeb
Plane: fixed relative altitudes and resuming mission
...
Pair-Programmed-With: Randy Mackay <rmackay9@yahoo.com>
11 years ago
Randy Mackay
9446e9fd2e
Plane: integrate AP_Mission library
11 years ago
Andrew Tridgell
8574303a94
Plane: treat PWM below 900 as invalid for mode switch
...
the FrSky X8R receiver will briefly give a PWM of 874 on channel 5
when connection is lost to the transmitter. We need to ensure this
doesn't cause a mode switch
11 years ago
Andrew Tridgell
9282c8d0d9
Plane: allow for a wider range of values on the control switch
11 years ago
Andrew Tridgell
4f242aedec
Plane: fixed a bug where mode would not revert on geo-fence disable
...
the mode would not revert if the switch was in position 0
11 years ago
Andrew Tridgell
6ed78c89ac
Plane: don't read control switch when ch3 is in failsafe
...
use ch3_counter not just the final flag
12 years ago
Andrew Tridgell
51b9cf3e76
Plane: move failsafe variables into a structure
...
this makes the logic a bit easier to follow
12 years ago
Andrew Tridgell
139acc0530
Plane: ignore control mode changes when in throttle failsafe
...
this prevents the receiver causing a temporary mode change
12 years ago
Pat Hickey
92b0c302f2
ArduPlane: Ported to AP_HAL
12 years ago
Andrew Tridgell
1104287aa2
Plane: use enum FlightMode in more places
12 years ago
Andrew Tridgell
764d86216e
APM: fixed mission reset by setting waypoint to zero
...
this does a full mission reset (equivalent to rebooting)
13 years ago
Andrew Tridgell
d13d117e61
APM: removed reset_I() and instead auto-reset integrator in PID library
...
this prevents us resetting key integrators on waypoint change, while
still preventing old integrators being used when a PID starts to be
used again
13 years ago
uncrustify
c69772388b
uncrustify ArduPlane/control_modes.pde
13 years ago
Andrew Tridgell
5498d347f3
APM: Added RST_MISSION_CH option
...
this allows a pilot to reset the mission using a transmitter
switch. Very useful for repeating a mission during testing
13 years ago
Andrew Tridgell
a823c9ceae
APM: removed cli slider and dipswitch options
...
use mavlink/eeprom for all config
13 years ago