Andrew Tridgell
71d786187e
Plane: make auto takeoff independent of compass
...
this solves a problem of poor initial yaw due to poor compass offsets
causing a takeoff to not be in the direction the plane is pointing. A
summed gyro is used until the GPS speed is above 5m/s for 2 seconds,
then the GPS heading corrected by the summed gyro error is used for L1
based navigation for the rest of the takeoff
10 years ago
Andrew Tridgell
c4b17b74e2
Plane: use handle_set_mode()
11 years ago
Andrew Tridgell
b6319a9d19
Plane: keep an estimate of the rangefinder altitude
...
only accept data when we have had 10 samples in a row in range at 50Hz
11 years ago
Andrew Tridgell
daa32f9b62
Plane: reset steering integrator on mode change and when not moving
...
this prevents an old integrator from causing problems on takeoff
11 years ago
Andrew Tridgell
f2f730ba9b
Plane: added FBWA_TDRAG_CHAN parameter
...
this allows for testing taildragger takeoffs in FBWA mode
11 years ago
Andrew Tridgell
15a7f63d7e
Plane: set GPS non-blocking
...
the new GPS driver only ever needs a non-blocking port
11 years ago
Randy Mackay
7d7272520e
Plane: use baro healthy()
...
Use baro last update time in place of healthy to determine whether HIL
sensor updates have started
11 years ago
Andrew Tridgell
5e997b20f6
Plane: move battery init to after parameter load
11 years ago
Andrew Tridgell
d54bb68270
Plane: prevent cross-track on some WP types
...
when finishing a takeoff or when a user forces a WP change don't do
any cross-tracking. This avoids a problem where the plane tries to
line up with a track completely unrelated to the track currently being
flown
11 years ago
Andrew Tridgell
b64ab07ca4
Plane: added STAB_PITCH_DN_CD parameter
...
this adds some down trim when at throttle levels below the trim
throttle in FBWA mode.
defaults to 200 centi-degrees. I may adjust based on flight tests
11 years ago
Matthias Badaire
57253fc2ee
Rover: Add SERIAL2_PROTOCOL for GCS and FRSky telemtry
...
This allows selection of protocol type on telem2. The default is MAVLink, but can be selected as FrSky protocol
11 years ago
Andrew Tridgell
d18c00d6fc
Plane: split up altitude handling
...
this creates altitude.pde for altitude handling, getting ready to add
terrain following
11 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
1e2b644b1b
Plane: fix for HAL_GPIO_*
11 years ago
Andrew Tridgell
286479ee93
Plane: prevent stalled takeoff with bad TKOFF_TDRAG_SPD1
...
go to level pitch if pitch rises by 10 degrees
11 years ago
Andrew Tridgell
d87619c2f1
Plane: added 4 new parameters to control takeoff
...
this gives flexible control for taildragger takeoff
11 years ago
Andrew Tridgell
511e8beaed
Plane: updates for new GCS_MAVLink API
11 years ago
Andrew Tridgell
69b5f352f6
Plane: prevent a bad glide slope when first entering auto
...
we need to ensure that prev_WP_loc is not used as it could be
completely different from current_loc. As a precuation, this also sets
up next_WP_loc so that when the set_next_WP() is first called that
prev_WP_loc is set to current_loc
11 years ago
Andrew Tridgell
bd09d8551d
Plane: use setup_uart()
11 years ago
Andrew Tridgell
ccc8a6a6ed
Plane: use MIS_AUTORESET when entering AUTO mode
11 years ago
Andrew Tridgell
0de41f0ce1
Plane: set AHRS vehicle class
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
e19341ca32
Plane: convert to new GPS driver API
11 years ago
Michael Day
25f23cf16c
Plane: Sends MAV_SYS_STATUS_GEOFENCE and also allows GCS to enable/disable fence.
11 years ago
Andrew Tridgell
e8b9f22b01
Plane: updates for GPS changes
11 years ago
Andrew Tridgell
0d39f354b0
Plane: use new common MAVLink code
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
Randy Mackay
982ce56d2b
Plane: bug fix to set_current_cmd
...
When set_current_cmd mavlink message is received, resume mission only if
the mission has completed.
Stop mission when vehicle leaves AUTO mode.
11 years ago
Andrew Tridgell
4992e2e2cf
Plane: use mission.resume() not mission.start()
11 years ago
Randy Mackay
36a5287de5
Plane: call mission.init during startup
11 years ago
Randy Mackay
9446e9fd2e
Plane: integrate AP_Mission library
11 years ago
Andrew Tridgell
65ae9663d4
Plane: set 2nd GPS as secondary
11 years ago
Andrew Tridgell
07826096a2
Plane: support a 2nd GPS
11 years ago
Andrew Tridgell
8a4289b56f
Plane: remove unused variables
...
thanks to Mike McCauley
11 years ago
Andrew Tridgell
33851030a4
Plane: use ahrs.get_armed()
11 years ago
Andrew Tridgell
11337ab2df
Plane: updates for AHRS holding home position
11 years ago
Andrew Tridgell
043c80dbe6
Plane: use new board_voltage() method
11 years ago
Andrew Tridgell
e42a10a764
Plane: allow printing of GUIDED mode in logs
11 years ago
Andrew Tridgell
cdd36b2c41
Plane: use AP_ServoRelayEvents library
11 years ago
Andrew Tridgell
d3adf4c32c
Plane: enable AP_BoardConfig
11 years ago
Andrew Tridgell
cf09fef1db
Plane: prevent log corruption when new log started
11 years ago
Andrew Tridgell
a15336079e
Plane: start logging when first needed
11 years ago
Andrew Tridgell
8755747da0
Plane: only log when armed by default
...
use safety switch if arming not enabled
11 years ago
Andrew Tridgell
72473e4317
Plane: use AP_HAL available_memory() call
11 years ago
Andrew Tridgell
7ffbed24cc
Plane: initialise scheduler callback after logging
...
this could cause log corruption otherwise
11 years ago
Andrew Tridgell
263f3b116b
Plane: added FS_GCS_ENABL==2 option
...
this allows GCS failsafe when the GCS isn't getting updates from the
aircraft
11 years ago
Andrew Tridgell
8b7fe3cf50
Plane: changes for new DataFlash API
11 years ago
Andrew Tridgell
5a0cb5dea4
Plane: added sonar logging to dataflash
11 years ago
Andrew Tridgell
8383abc1fe
Plane: added SERIAL2_BAUD and rename SERIAL3_BAUD to SERIAL1_BAUD
11 years ago
Andrew Tridgell
457183b6f5
Plane: cope with uartD being NULL
11 years ago