Andrew Tridgell
70ca87c4e6
AP_RangeFinder: handle all I2C rangefinder types on PX4 in PX4Firmware
2014-10-09 11:06:16 +11:00
Andrew Tridgell
cebfef3ead
HAL_Linux: don't accept less than 5 input channels
2014-10-09 09:19:35 +11:00
Andrew Tridgell
a3fee16604
HAL_Linux: added DSM/Spektrum RCInput support
...
this decodes DSM using the RCIN pulses from the PRU
2014-10-08 12:50:50 +11:00
Andrew Tridgell
3e3f87188b
HAL_Linux: enable DSM power pin
2014-10-08 12:50:50 +11:00
Andrew Tridgell
50e5ae6f7a
HAL_Linux: added low level DSM decoder
...
based on dsm.c from PX4 project
2014-10-08 12:50:50 +11:00
Andrew Tridgell
9b207d029d
HAL_Linux: change ring buffer to 300 entries
2014-10-07 14:57:34 +11:00
Andrew Tridgell
b1845ed00d
HAL_Linux: initial support for parallel SBUS and PPM-SUM decoding
2014-10-07 14:57:34 +11:00
Andrew Tridgell
42e9dc3c31
HAL_Linux: added SBUS decoder from PX4 project
...
thanks Lorenz!
2014-10-07 14:57:34 +11:00
Andrew Tridgell
809b6cc855
AP_AHRS: added get_yaw_rate_earth()
...
used to estimate course correction on takeoff
2014-10-07 07:17:46 +11:00
Craig Elder
be352e9471
AP_GPS: Removed CFG-DAT message from 3DR-Ublox-NEO7
...
CFG-DAT is generated by U-Center but no longer used by the receiver.
2014-10-06 11:21:42 -07:00
Andrew Tridgell
e0e534628b
HAL_Linux: support direct UDP output from UART drivers
...
this allows safe operation over WiFi links without MAVProxy
2014-10-06 15:13:03 +11:00
Randy Mackay
1754cacf3c
AC_PosControl: remove completed to-do comments
2014-10-04 23:49:24 +09:00
Randy Mackay
f65e81cb07
AC_AttControl: remove some old comments
2014-10-04 23:49:21 +09:00
Randy Mackay
793ed20534
CoaxCopter: set throttle upper and lower flags
2014-10-04 23:49:19 +09:00
Randy Mackay
57f6d0ff60
SingleCopter: set throttle upper and lower flags
2014-10-04 23:49:16 +09:00
Randy Mackay
85fb4b122a
MotorsMatrix: _min_throttle interpreted as 0 ~ 1000 range for throttle_lower flag
...
Also trigger throttle_upper flag when throttle in reaches 1000
2014-10-04 23:49:14 +09:00
Randy Mackay
91e5201439
Tri: _min_throttle interpreted as 0~1000 range for throttle_lower flag
...
limit.throttle_lower flag becomes true when the throttle passed into the
motors lib (which is in the 0 ~ 1000 range) is below _min throttle.
This makes the interpretation of the THR_MIN parameter consistent
between the main code (which uses 0 ~ 1000 range) and the motors lib
(which previously used the RC3_MIN ~ RC3_MAX range).
The remaining problem however is that the output of the motors continues
to use THR_MIN as if it were a pwm. I don't believe this is a dangerous
problem however.
2014-10-04 23:49:11 +09:00
Craig Elder
7367ea04a7
AP_GPS: Adding support for the NEO7 GPS
2014-10-03 03:21:28 -07:00
priseborough
8aa267f75f
AP_NavEKF : Fix bug in reset of GPS glitch offset
...
The GPS glitch offset was being zeroed during position resets. This caused the filter to reject subsequent GPS measurements if the GPS error persisted long enough to invoke a timeout and a position reset.
2014-10-03 09:17:03 +10:00
Randy Mackay
b3bbec24e4
RangeFinder: TYPE param description to PX4-I2C
2014-10-02 20:24:14 +09:00
Randy Mackay
8ce4893180
RangeFinder: TYPE param description to PX4-MaxbotixI2C
...
This hopefully reduces confusion for PX4/Pixhawk users with MaxBotix I2C
sonar
2014-10-02 16:49:15 +09:00
Randy Mackay
85eee31510
AHRS: rename ekfNotStarted method to initialised
...
Also created default implementation in AP_AHRS class so AP_AHRS_DCM does
not need to implement it.
2014-10-02 14:40:54 +09:00
priseborough
7cea7c6a18
AP_AHRS : add method to report if EKF is waiting to start
2014-10-02 14:38:29 +09:00
Andrew Tridgell
60aa017e11
GCS_MAVLink: added handle_set_mode() function
2014-10-01 14:19:04 +10:00
Randy Mackay
7caa611eb1
Compass_HIL: use instance specific orient and external
2014-10-01 13:02:03 +10:00
Randy Mackay
86aac4f40c
Compass_HMC5843: use instance specific orient and external
2014-10-01 13:02:03 +10:00
Randy Mackay
900896977c
Compass_VRBrain: use instance specific orient and external
2014-10-01 13:02:03 +10:00
Randy Mackay
85e82a0399
Compass_PX4: use instance specific orient and external
2014-10-01 13:02:03 +10:00
Randy Mackay
023b6afe8b
Compass: add ORIENT2 and EXTERNAL2 params
2014-10-01 13:02:03 +10:00
Randy Mackay
16058cb730
Compass_VRBrain: primary compass based on use_for_yaw
2014-10-01 13:02:02 +10:00
Randy Mackay
01fa4ba619
Compass_PX4: primary compass based on use_for_yaw
2014-10-01 13:02:02 +10:00
Randy Mackay
798cc36e64
Compass: use_for_yaw for each compass
2014-10-01 13:02:02 +10:00
Randy Mackay
84d792216e
Compass: use_for_yaw to use primary compass health
...
This allows the internal compass to be used if the external compass
fails.
2014-10-01 13:02:02 +10:00
Andrew Tridgell
d6c56b8f7a
AP_NavEKF: make it clear that all sat counts are covered
2014-10-01 12:55:29 +10:00
Andrew Tridgell
a1f5be5b9e
AP_NavEKF: simplify variable handling in EKF
...
use named state variables instead of states[] array where possible.
2014-10-01 12:55:29 +10:00
priseborough
8223a0d193
AP_NavEKF : Explicitly initialise gpsNoiseScaler to default value
2014-10-01 12:55:29 +10:00
priseborough
b61a6c64d7
AP_NavEKF : Reduce weighting on GPS when not enough satellites
...
GPS measurement variance is doubled if only 5 satellites, and quadrupled if 4 or less.
The GPS glitch rejection thresholds remain the same
This will reduce the impact of GPS glitches on attitude.
2014-10-01 12:55:29 +10:00
priseborough
7370e07c8d
AP_AHRS : Prevent EKF starting if GPS sats less than AHRS_GPS_MINSATS
2014-10-01 12:55:29 +10:00
priseborough
f99f5759f5
AP_NavEKF : Fix bug in GPS innovation variance growth calculation
...
The uncertainty in acceleration is currently only scaled using horizontal accelerations, however during vertical plane aerobatics and high g pullups, misalignment in angles can cause significant horizontal acceleration error.
The scaling now uses the 3D acceleration vector length to better work during vertical plane high g maneouvres.
This error was found during flight testing with 8g pullups
2014-10-01 12:55:29 +10:00
priseborough
f0ee11e951
AP_NavEKF : Fix bug in reset of position, height and velocity states
...
If the inertial solution velocity or position needs to be reset to the GPS or baro, the stored state history for the corresponding states should also be reset.
Otherwise the next GPS or baro measurement will be compared to an invalid previous state and will be rejected. This is particularly a problem if IMU saturation or timeout has occurred because the previous states could be out by a large amount
The position state should be reset to a GPS position corrected for velocity and measurement latency. This will make a noticeable difference for high speed flight vehicles, eg 11m at 50m/s.
2014-10-01 12:55:28 +10:00
Randy Mackay
e7b4a02d26
GPS: fix SIRF set-binary message
...
This fixes an issue in which the the update rate for the mediatek, which
uses a similar protocol, was not being set correctly
2014-10-01 11:42:31 +09:00
Andrew Tridgell
f6cc8ce5bc
GCS_MAVLink: fixed log erase and log request end
2014-10-01 11:45:51 +10:00
Randy Mackay
47c135c4e1
GCS_MAVLink: add comments around checking target
2014-09-30 15:18:35 +10:00
Randy Mackay
0322a876eb
GCS_MAVLink: check target before erasing log
2014-09-30 15:18:31 +10:00
Randy Mackay
dbe1c55666
AC_WPNav: add shift_wp_origin_to_current_pos for takeoff
...
This shifts the origin to the vehicle's current position and should be
called just before take-off to ensure there are no sudden roll or pitch
moves on takeoff.
2014-09-29 15:26:18 +09:00
Randy Mackay
0803d79701
INS: param descriptions for ACC2, GYR2
2014-09-27 21:05:33 +09:00
Randy Mackay
e14ae0c0b1
Compass: param descriptions for OFS2, MOT2
2014-09-27 17:59:26 +09:00
Randy Mackay
5ca3c4baf6
Mission: fix CHANGE_ALT to store climb rate in lat param
...
The slightly confusing storage of climb rate in the lat field led to a
bug fix a few months ago that actually created a bug.
2014-09-26 23:23:04 +09:00
Andrew Tridgell
5eee51b5a4
APM_OBC: added heartbeat() method
...
this is used for when the plane is calibrating sensors, to ensure
heartbeat is continued to the failsafe board
2014-09-24 12:02:38 +10:00
Randy Mackay
c2c5807ec7
Compass: always default devid to zero
2014-09-23 20:35:18 +09:00
Randy Mackay
cf3b2be99c
AC_PosControl: 4hz filter on z-axis velocity error
2014-09-22 13:40:01 +09:00
Randy Mackay
665f353416
AC_PosControl: 2hz filter on accel error
...
Replaced hard-coded filter with LowPassFilter class allowing the
filter's to be 2hz on both APM and Pixhawk
2014-09-21 17:53:55 +09:00
Randy Mackay
cf35bd3f42
LowPassFilter: add div by zero check
2014-09-21 17:33:59 +09:00
Jason Short
b57539a9ad
AP_Motors: throttle_pass_through accepts pwm
2014-09-19 22:21:45 +09:00
Randy Mackay
765420ee04
AC_WPNav: add loiter_soften_for_landing method
...
This resets the position target to the current location.
2014-09-19 16:43:10 +09:00
Randy Mackay
ad37fc0408
AC_WPNav: WP_SPEED_DN parameter range to 0~500
...
Previous permissible descent speed of 10m/s was unnecessarily lenient.
Users can still bypass the suggested range through the MP's full
parameter list if they really want a very high descent speed.
2014-09-18 10:44:33 +09:00
Randy Mackay
6da1420541
HAL_VRBrain: implement force_safety_on
2014-09-18 09:58:48 +09:00
Randy Mackay
ffcd259b4e
HAL_PX4: implement force_safety_on
2014-09-18 09:58:46 +09:00
Randy Mackay
033b14db16
AP_HAL: add force_safety_on method
2014-09-18 09:58:44 +09:00
Randy Mackay
1ce8e453c2
Mission: add support for DO_GRIPPER
2014-09-17 21:14:17 +09:00
Randy Mackay
1de89804e5
GCS_MAVLink: version update after adding DO_GRIPPER
2014-09-17 21:14:14 +09:00
Randy Mackay
064e214992
GCS_MAVLink: generate after adding DO_GRIPPER
2014-09-17 21:14:12 +09:00
Randy Mackay
b3bce13bdf
GCS_MAVLink: add MAV_CMD_DO_GRIPPER
2014-09-17 21:14:09 +09:00
Randy Mackay
cffc904671
GCS_MAVLink: version update after generate
2014-09-17 21:14:06 +09:00
Randy Mackay
6b38547fc2
GCS_MAVLink: generate after move of PARACHUTE_ACTION
2014-09-17 21:13:54 +09:00
Randy Mackay
868f1a777d
GCS_MAVLink: version updates after generate
2014-09-17 21:13:52 +09:00
Randy Mackay
69fd7b80aa
GCS_MAVLink: generate run on master
2014-09-17 21:13:50 +09:00
Randy Mackay
d09bbd1d91
EPM: add params for pwm levels add re-grab feature
...
Also include some minor commenting changes
2014-09-17 21:13:37 +09:00
Randy Mackay
1401ee4077
EPM: add support for ver2, remove support ver 1
2014-09-17 21:13:32 +09:00
Randy Mackay
79f95efb71
RC_Channel_aux: add epm to servo function enum
2014-09-17 21:13:30 +09:00
priseborough
f71aeea61d
AP_NavEKF : Reduce sensitivity on filter divergence check
...
Flying aerobatics with Trad Heli has shown that the divergence check can be false triggered when large magnetometer errors and GPS dropouts are present.
This can also happen with multi rotors if large yaw rates are present.
This was an unintended consequence of the ekfsmoothing patch which improved filter stability during high rate manoeuvres, but made the divergence test more sensitive.
2014-09-17 10:22:55 +09:00
priseborough
36bf304f29
AP_NavEKF : Reduce ripple in estimates that can cause copter motor 'pulsing'
...
This patch reduces the level of 5Hz and 10Hz 'pulsing' heard in motors due to GPS and altimeter fusion which cause a small 5Hz and 10Hz ripple on the output under some conditions. Attitude, velocity and position state corrections from GPS, altimeter and magnetometer measurements are applied incrementally in the interval from receiving the measurement to the predicted time of receipt of the next measurement. Averaging of attitude state corrections is not performed during periods of rapid rotation.
2014-09-17 10:22:49 +09:00
priseborough
5b72cb7610
AP_NavEKF : Clean up time stamps
...
Time stamps are now explicitly initialised to the current IMU time to avoid unwanted activation of timeout logic on filter start and various calls to the hal.scheduler->millis() object have been consolidated.
2014-09-17 10:22:45 +09:00
Andrew Tridgell
b69262b054
GCS_MAVLink: rebuild MAVLink headers
2014-09-11 20:16:27 +10:00
Andrew Tridgell
25f6dc2549
GCS_MAVLink: mavlink XML updates from upstream
2014-09-11 20:15:44 +10:00
Andrew Tridgell
593a97afd6
HAL_VRBRAIN: fixed storage bug in VRBRAIN too
2014-09-11 18:58:54 +10:00
Andrew Tridgell
d238ff7c5d
HAL_Linux: fixed storage bug in Linux too
2014-09-11 18:58:54 +10:00
Andrew Tridgell
74525cad89
HAL_PX4: fixed dirty_mask calculation in FRAM storage
...
this could lead to a number of bytes on 512 byte boundaries not being
written when changed in ram, so they would revert on next boot
2014-09-11 18:58:54 +10:00
Andrew Tridgell
9d846d5f2a
DataFlash: allow use of a smaller writebuf for PX4v1
...
this fixes logging on PX4v1
2014-09-09 17:32:44 +10:00
Randy Mackay
3e1bd04c94
TradHeli: update AttControl params to match multicopters
2014-09-09 14:41:57 +09:00
Andrew Tridgell
d3347e528d
AP_Relay: added RELAY_DEFAULT parameter
...
this is useful when using a Pixhawk with an external relay, as it
allows you to cope with the pullup on the PWM pins
2014-09-04 16:48:33 +10:00
Andrew Tridgell
15470bd81b
AP_GPS: added GPS_MIN_ELEV parameter
...
allows setting of satellite elevation mask in degrees
2014-09-04 14:46:10 +10:00
Andrew Tridgell
840a4dee1e
AP_GPS: added GPS_SBAS_MODE parameter
...
allows SBAS to be enabled/disabled
2014-09-04 14:46:10 +10:00
Andrew Tridgell
cd50fe82b6
AP_GPS: fixed GPS time in HIL
...
account for 10 year difference in epoch between unix time and GPS time
2014-09-04 06:37:42 +10:00
Andrew Tridgell
effccacf46
AP_Mission: fixed acceptance radius outgoing
...
this needs to match incoming
2014-09-03 21:15:56 +10:00
Andrew Tridgell
3a5e960fe5
AP_Mission: revert APM_BUILD_TYPE change
2014-09-03 13:28:17 +10:00
Andrew Tridgell
c09c86868f
AP_Vehicle: make APM_BUILD_TYPE() valid under arduino IDE
2014-09-03 13:28:04 +10:00
Andrew Tridgell
36b854fa98
AP_Mission: fixed build for arduino IDE
2014-09-03 13:20:31 +10:00
Andrew Tridgell
c4f84232e2
AP_Mission: make cmd.p1 be radius on plane for NAV_WAYPOINT
2014-09-03 12:38:30 +10:00
Randy Mackay
74553e523d
INS: add get_accel_health_all and get_gyro_health_all
...
Returns true only if all available accels or gyros are healthy
2014-09-03 11:22:46 +09:00
Randy Mackay
50ae5b2519
InertialSensor: reorder .cpp file to match .h
...
No functional changes
2014-09-03 11:19:36 +09:00
Randy Mackay
102b71cde3
InertialNav: add credit to Tony Lambregts
2014-08-31 13:23:03 +09:00
Emile Castelnuovo
25d2ec1dea
AP_HAL_VRBRAIN: enable 2nd GPS for VRBRAIN 5
2014-08-31 10:56:58 +09:00
Emile Castelnuovo
7a70c0132d
AP_HAL: VRBRAIN corrected EEPROM size and added terrain folder on MicroSD
2014-08-31 10:56:56 +09:00
Emile Castelnuovo
4a5c31fe74
AP_relay: added default relay pin for VRBRAIN
2014-08-31 10:56:52 +09:00
Emile Castelnuovo
8e42b21bab
AP_HAL_VRBRAIN: added management for external relay 1 and 2
2014-08-31 10:56:48 +09:00
Andrew Tridgell
a6ca11facf
AP_TECS: allow zero throttle in flare for landing
2014-08-30 05:14:57 +10:00
Andrew Tridgell
6c1eed0a20
AP_TECS: bring in flare sink rate more slowly
...
this should reduce pitch overshoot in the flare
2014-08-30 05:13:18 +10:00
Randy Mackay
1c6606cc58
AC_WPNav: resolve twitch when passing spline waypoints
...
The target positions target velocity was being reset to zero as we
passed through a spline waypoint.
2014-08-28 11:00:51 +09:00
Andrew Tridgell
7547cd45f5
AP_TECS: bring the flare height rate demand in slowly
...
bring it in over 0.5s to give less of a bounce
2014-08-27 20:13:01 +10:00
Andrew Tridgell
500e20b08d
AP_TECS: make TECS aware of LAND_PITCH_CD
...
this makes the flare a bit smoother
2014-08-27 20:11:48 +10:00
Andrew Tridgell
fb4ef0b5c6
AP_Vehicle: added land_pitch_cd for fixed wing
2014-08-27 20:11:03 +10:00
Andrew Tridgell
46ac52bccc
HAL_Linux: removed retry loop on UART open
...
this was there for HAL_PX4 only, and makes no sense on Linux
2014-08-27 18:31:38 +10:00
Randy Mackay
d6aa868cac
Mission: start next nav cmd immediately after prev completes
2014-08-27 18:05:49 +10:00
Andrew Tridgell
68dd61c7c7
AP_TECS: added TECS_LAND_TCONST
...
this allows control of the time constant for landing in TECS. A lower
time constant gives tighter altitude control on landing approach
2014-08-27 17:14:19 +10:00
Andrew Tridgell
5da5360dde
HAL_SITL: fixed sonar correction for attitude
2014-08-27 17:14:19 +10:00
Andrew Tridgell
6b893a5865
GCS_MAVLink: slow down parameter send a lot with no flow control
2014-08-25 22:19:30 +10:00
priseborough
0f62dbf6ed
AP_NavEKF : Clear compass fail on transition between armed and disarmed
...
This allows a compass that has been declared failed, possibly because of
external disturbances (eg movement of hatches, proximity of tools, etc)
to be given a second chance when the vehicle is armed.
2014-08-25 19:29:07 +10:00
Ju1ien
1c96bf0b1d
AP_Mount.cpp - correct units in description
...
That should be corrected also in MP as the current code is expecting
degrees, not centidegrees.
2014-08-25 15:55:07 +09:00
Andrew Tridgell
eeb04ba1b8
AP_Terrain: fetch more terrain data around waypoints
...
this ensures we have data for a wide region (1km) around each waypoint
2014-08-25 14:55:15 +10:00
Andrew Tridgell
e9a9e33280
AP_AHRS: use EKF use_compass() if EKF enabled
...
this allows magfailed status to show on console via SYS_STATUS health
bits
2014-08-24 21:00:56 +10:00
Andrew Tridgell
5d40ec8014
AP_NavEKF: make use_compass() public
2014-08-24 21:00:24 +10:00
Randy Mackay
5a66ff1ef9
AC_AttControl: bug fix for ef target during acro
2014-08-23 22:17:54 +09:00
Randy Mackay
3e0b573dfe
AC_AttControl: remove debug message
2014-08-22 22:58:48 +09:00
Randy Mackay
f6e12bda06
AC_AttControlHeli: integrate div-by-zero check for bf-to-ef conversion
2014-08-22 22:56:18 +09:00
Randy Mackay
c45338f080
AC_AttControl: div-by-zero check for bf-to-ef conversion
2014-08-22 22:56:15 +09:00
Andrew Tridgell
024d3b71e7
HAL_Linux: use a semaphore in suspend_timer_procs()
...
this is the start of multi-core aware code
2014-08-22 21:13:11 +10:00
Andrew Tridgell
dcdb53584b
AP_InertialSensor: use lockless structures in MPU9250 driver
...
this avoids suspending timers when transferring data between main
thread and SPI read thread
2014-08-22 21:13:11 +10:00
Andrew Tridgell
7343de2893
AP_Notify: avoid suspend_timer_procs() by using atomic updates in ToshibaLED_PX4
2014-08-22 21:13:11 +10:00
Randy Mackay
691a3d8126
AC_AttControlHeli: add passthrough_bf_roll_pitch_rate_yaw
2014-08-22 16:28:57 +09:00
Robert Lefebvre
7d3e22af59
AC_AttitudeControl_Heli: Add use_flybar_passthrough accessor function.
2014-08-22 16:28:45 +09:00
Robert Lefebvre
9b1d9e3cf0
AC_AttitudeControl_Heli: Add passthrough_to_motor_roll_pitch function.
2014-08-22 16:28:42 +09:00
Robert Lefebvre
5c04af6d20
AC_AttitudeControl_Heli: Create Flybar Passthrough flag which will be used for control pass-through.
2014-08-22 16:28:38 +09:00
Andrew Tridgell
43e8b36e5b
AP_RangeFinder: removed use of hrt_absolute_time()
2014-08-20 09:10:25 +10:00
Andrew Tridgell
5c9e5fbc11
AP_InertialSensor: removed use of hrt_absolute_time()
2014-08-20 09:10:24 +10:00
Andrew Tridgell
e143acd8bf
HAL_VRBRAIN: minimise use of hrt_absolute_time()
2014-08-20 09:10:24 +10:00
Andrew Tridgell
48247b6adc
HAL_PX4: minimise usage of hrt_absolute_time()
2014-08-20 09:10:24 +10:00
Andrew Tridgell
9f6d1f987b
AP_Compass: removed use of hrt_absolute_time()
2014-08-20 08:41:28 +10:00
Andrew Tridgell
5280d8936d
AP_Baro: remove usage of hrt_absolute_time()
...
use a single time base in all code
2014-08-20 08:41:15 +10:00
Andrew Tridgell
a14f8dbd0a
AP_InertialSensor_MPU9250: use micros64() and millis64()
2014-08-20 08:02:34 +10:00
Andrew Tridgell
071323a736
HAL_VRBRAIN: added millis64() and micros64()
2014-08-20 08:01:44 +10:00
Andrew Tridgell
1241da466b
HAL_PX4: added millis64() and micros64()
2014-08-20 08:01:06 +10:00
Andrew Tridgell
ead82ee581
HAL_Linux: implement millis64() and micros64()
2014-08-20 08:00:21 +10:00
Andrew Tridgell
6450c84987
HAL_Empty: added dummy millis64() and micros64()
2014-08-20 07:59:21 +10:00
Andrew Tridgell
5a55101703
HAL_SITL: added millis64() and micros64()
2014-08-20 07:57:45 +10:00
Andrew Tridgell
7439d34a5d
AP_HAL: add millis64() and micros64() on faster boards
...
this can be used for much simpler scheduling, without any wrap
handling
2014-08-20 07:55:19 +10:00
Andrew Tridgell
d01fa3bfbd
AP_Baro: prevent reading the MS5611 too fast
...
setup the timer start after we've started the conversion to prevent
reading faster than the MS5611 is able to produce values
2014-08-19 21:16:13 +10:00
Andrew Tridgell
b9dc2335ee
HAL_Linux: run timer thread at average 1kHz without drift
...
this avoids drift in the 1kHz timer, to avoid bias in the IMU
filtering
2014-08-19 20:03:34 +10:00
Andrew Tridgell
3c2ab31415
AP_InertialSensor: get rid of data_ready for MPU9250
...
when running off a 1kHz timer and reading at 1kHz it is better to
double sample than it is to skip a sample, as skipping samples will
throw the filter off, whereas a double sample will have minimal effect
2014-08-19 20:03:33 +10:00
Andrew Tridgell
9e01c657e5
AP_InertialSensor: update MPU9250 driver for 1kHz operation
...
use a time base sample wait, with 1kHz sampling
2014-08-19 20:03:33 +10:00
Andrew Tridgell
532e9aace4
AP_InertialSensor: fixed timer bug in HIL sensors
2014-08-19 20:03:33 +10:00
Andrew Tridgell
8f280d212b
HAL_Linux: don't use usleep() in suspend_timer_procs()
...
usleep can cause a large delay with PREEMPT kernel
2014-08-19 20:03:33 +10:00
Andrew Tridgell
94e14f5dcb
HAL_Linux: split off RCOutput class to be specific to PXF and ERLE
...
this fixes the Replay tool
2014-08-19 20:03:33 +10:00
Andrew Tridgell
2ce219aeb8
HAL_Linux: split RCInput class into generic and PRU implementations
...
this will make it easier for other boards (such as NAVIO) to implement
their own RCInput mechanism
2014-08-19 20:03:33 +10:00
Andrew Tridgell
12239de00d
AP_InertialSensor: fix data_ready return for L3GD20
2014-08-19 10:14:20 +10:00
Andrew Tridgell
21ff578cb0
HAL_VRBrain: prevent read past end of buffer
2014-08-19 10:08:17 +10:00
Andrew Tridgell
0a20d0db60
HAL_PX4: prevent read past end of buffer
2014-08-19 10:08:17 +10:00
Andrew Tridgell
b4be93113c
HAL_Linux: prevent read past end of buffer
2014-08-19 10:08:17 +10:00
Andrew Tridgell
7286e7acd2
AP_InertialSensor: fixed build errors on APM2
2014-08-19 10:08:17 +10:00
Andrew Tridgell
b40bd479c4
HAL_Linux: moved FRAM vs FS choice into HAL_Linux headers
2014-08-19 10:08:17 +10:00
Andrew Tridgell
9fccb5f5ed
HAL_Linux: clear more UART flags
...
this fixes a major timing issue caused by bad UART flags (I suspect
the echo flags) and the GPS auto detection code
2014-08-19 10:08:17 +10:00
Andrew Tridgell
c87b0adc29
HAL_Linux: the MS5611 seems to be a bit happier at higher speed
...
still getting some bogus data, but less
2014-08-19 10:08:17 +10:00
Andrew Tridgell
41e65c2415
AP_Compass: fixed default orientation for PXF
2014-08-19 10:08:17 +10:00
Andrew Tridgell
50068a7c6a
AP_InertialSensor: fixed default orientation for PXF board MPU9250
2014-08-19 10:08:16 +10:00
Andrew Tridgell
226b67d357
AP_HAL: make PXf default to MPU9250
2014-08-19 10:08:16 +10:00
Andrew Tridgell
6cc304e486
HAL_Linux: RCOutput should default to 50Hz on all boards
2014-08-19 10:08:16 +10:00
Andrew Tridgell
9d948d5a26
HAL_Linux: fixed name space collision in RCOutput
2014-08-19 10:08:16 +10:00
Andrew Tridgell
721d349922
HAL_Linux: fixed build of BusTest
2014-08-19 10:08:16 +10:00
Andrew Tridgell
a4ef512f10
SPIDriver: fixed handling of 0 based SPI bus numbers
2014-08-19 10:08:16 +10:00
Andrew Tridgell
5fb2ad0068
HAL_Linux: fixed safety of RCInput code
...
don't loop forever waiting for pulses
2014-08-19 10:08:16 +10:00
Víctor Mayoral Vilches
5e5319e23b
AP_InertialSensor: MPU9250 cleaning
2014-08-19 10:08:16 +10:00
bugobliterator
ac11d282b5
HAL_Linux: Add support for PPM input to HAL_Linux
...
rcin thread continuously scans for values inside ring buffer maintained by pru with rcinpru0 firmware.
2014-08-19 10:08:16 +10:00
bugobliterator
072c39ea6a
AP_HAL: Add option to select Storage type AP_HAL_Boards.h
...
user can set HAL_STORAGE as USE_FS or USE_FRAM inside AP_HAL_Boards.h as per his/her choice or board setup
2014-08-19 10:08:16 +10:00
bugobliterator
4b2f7cd163
HAL_Linux: Add FRAM HAL driver support for non-volatile storage
...
Support for File System starage mode is retained, appropriate Storage
mode can be set by defining USE_FS_STORAGE for File System storage
aand US_FRAM_STORAGE for FRAM storage. Note: FS storage and FRAM
storage are never synced as of now.
2014-08-19 10:08:16 +10:00
Victor Mayoral Vilches
8a71fdf092
HAL_Linux: minor syntax fix in UARTDriver
...
Typo noticed by @hcervino.
2014-08-19 10:08:16 +10:00
Silvia
b6baf78e73
HAL_Linux:duplicate `#include <sys/types<`deleted
2014-08-19 10:08:16 +10:00
Silvia
7fd0e8345d
HAL_Linux: Duplicate `#include <unistd.h>`deleted
2014-08-19 10:08:16 +10:00
Víctor Mayoral Vilches
37793cd7fa
AP_HAL_Namespace: Change LSM9DS0 into two different devices.
2014-08-19 10:08:15 +10:00
Víctor Mayoral Vilches
df1de4efd6
AP_InertialSensor: Driver added for the LSM303D
2014-08-19 10:08:15 +10:00
Víctor Mayoral Vilches
8968647873
AP_InertialSensor: INS_generic example, add support L3GD20
2014-08-19 10:08:15 +10:00
Víctor Mayoral Vilches
0f908a8ccd
HAL_Linux: Add L3GD20 to the AP_InertialSensor header
2014-08-19 10:08:15 +10:00
Víctor Mayoral Vilches
e272ed8d96
AP_HAL: Add support for L3GD20
2014-08-19 10:08:15 +10:00
Víctor Mayoral Vilches
556d46a4ef
AP_InertialSensor: L3GD20 driver added
...
L3GD20 gyro userspace sensor added. The driver constructs
over the implementation of the PX4 Dev Team at
https://github.com/diydrones/PX4Firmware .
2014-08-19 10:08:15 +10:00
Víctor Mayoral Vilches
bfacf08c30
HAL_Linux: LSM9DS0 legacy driver moved to AP_InertialSensor/LSM9DS0/
...
The new LSM9DS0 driver will consist of the AP_InertialSensor_L3GD20 and
the AP_InertialSensor_LSM303D. For that reason the old LSM9DS0
(consisting of gyro and accel+mag implemented on a single class) has
been moved to a folder.
Legacy LSM9DS0 didn't probe to receive "correct" data.
2014-08-19 10:08:15 +10:00
Víctor Mayoral Vilches
82186a3961
HAL: Add two new SPI devices
...
SPIDevice_LSM303D and SPIDevice_L3GD20 added to the enum.
The code has also been formated.
2014-08-19 10:08:15 +10:00
Andrew Tridgell
60e501d5ab
AP_GPS: moved UBX log headers to DataFlash
...
headers were not always being written
2014-08-19 10:08:15 +10:00
Andrew Tridgell
2b02fdbbc9
DataFlash: moved UBX logging headers to DataFlash
2014-08-19 10:08:15 +10:00
NullVoxPopuli
c672b3e324
Copter: Added support for V-Shaped and A-Shaped VTail Quadcopter frames
...
Signed-off-by: NullVoxPopuli <LPSego3+dev@gmail.com>
2014-08-18 14:31:01 +09:00
Andrew Tridgell
d8fe4f366d
APM_OBC: added AFS_RC_FAIL_MS, AFS_MAX_GPS_LOSS and AFS_MAX_COM_LOSS
2014-08-17 18:06:42 +10:00
Andrew Tridgell
4e97c98fa1
APM_OBC: removed use of extern function
2014-08-17 09:13:29 +10:00
Randy Mackay
de747d215a
Revert "GCS_MAVLink: send radio_in using rcmap"
...
This reverts commit 0881ccbee0
.
2014-08-16 20:31:14 +09:00
Emile Castelnuovo
0d62b15292
AP_HAL: added missing CONFIG_HAL_BOARD_SUBTYPE #define for HAL_BOARD_VRBRAIN
2014-08-16 20:28:57 +10:00
Emile Castelnuovo
3b53c167a0
AP_Compass: VRBRAIN. Deal with external mag connected on internal I2C on VRBRAIN 4.5
...
This enables user to set the external parameter to true even if only one compass is connected
2014-08-16 20:28:50 +10:00
Emile Castelnuovo
bbb9925c47
DataFlash: Added four more channels for logging
2014-08-16 20:28:46 +10:00
Andrew Tridgell
8f3dad0d1c
APM_Control: increase available range for roll and pitch
2014-08-16 18:07:22 +10:00
Randy Mackay
0881ccbee0
GCS_MAVLink: send radio_in using rcmap
2014-08-16 15:27:03 +09:00
Randy Mackay
d6890ce878
Notify: remove ToshibaLED support from APM
...
This saves about 1k of precious flash
2014-08-16 10:30:30 +09:00
Andrew Tridgell
b38c9544f9
AP_RangeFinder: make values clearer for APM2
2014-08-15 20:28:22 +10:00
Randy Mackay
0c4ee422a4
Rally: fix comment to clarify altitudes are absolute
2014-08-14 21:10:21 +09:00
Randy Mackay
fd5dee96e4
BaroGlitch: check baro health after alt calculation
...
Also correct type of distance_cm internal variable
2014-08-14 16:03:33 +09:00
Randy Mackay
424a65663a
Baro: init members to resolve compiler warning
2014-08-14 16:03:30 +09:00
Randy Mackay
53b073148b
BaroGlitch: use baro healthy()
2014-08-14 16:03:21 +09:00
Randy Mackay
280db8725a
Arming: use baro healthy() function
2014-08-14 16:03:18 +09:00
Randy Mackay
78b1bf8282
Baro: example sketch to use healthy() function
2014-08-14 16:03:15 +09:00
Randy Mackay
76634ee8c3
Baro_PX4: use healthy flag
2014-08-14 16:03:12 +09:00
Randy Mackay
d29fe51cb3
Baro_VRBrain: use healthy flag
2014-08-14 16:03:09 +09:00
Randy Mackay
24db492131
Baro_MS5611: use healthy flag
2014-08-14 16:03:06 +09:00
Randy Mackay
72f6985bd8
Baro_HIL: use healthy flag
2014-08-14 16:03:04 +09:00
Randy Mackay
fdb38dec5f
Baro_BMP085: use healthy flag
2014-08-14 16:03:02 +09:00
Randy Mackay
330d883f97
Baro: add altitude sanity check
...
healthy flag made protected
healthy accessor fn added which also check latest calculated altitude
was ok
2014-08-14 16:02:59 +09:00
Randy Mackay
e9fbea9497
Baro: make get_altitude_difference const
2014-08-14 16:02:55 +09:00
Andrew Tridgell
df3c565cd8
AP_L1_Control: prevent another NaN in L1
2014-08-14 14:10:03 +10:00
Randy Mackay
58257e3858
AC_AttControl: set rate D term filter from ins filter
2014-08-14 11:47:35 +09:00
Randy Mackay
51f40fe3d6
INS: add accessor for mpu6k filter
2014-08-14 11:47:23 +09:00
lthall
329118b7c9
Copter: AC_ATT correct yaw error calculation
2014-08-14 11:47:13 +09:00
lthall
90dc9411a5
Copter: ACRO Error calculation fix
2014-08-14 11:47:08 +09:00
Randy Mackay
46369badb3
ServoRelayEvents: init members to resolve compiler warning
2014-08-14 11:27:35 +09:00
Randy Mackay
d026749f1b
Notify: add break to resolve compiler warning
2014-08-14 11:27:34 +09:00
Randy Mackay
039f4740ce
Mount: correct comment on set_mode_to_default time
2014-08-14 11:27:34 +09:00
Randy Mackay
5614e42063
Mount: init members to resolve compiler warnings
2014-08-14 11:27:33 +09:00
Randy Mackay
9b9f6cd47a
AC_MotorsHeli: init member to resolve compiler warning
2014-08-14 11:27:33 +09:00
Randy Mackay
0e7cbd28c8
INS_HIL: init members to resolve compiler warnings
2014-08-14 11:27:32 +09:00
Randy Mackay
534922adc3
GPSGlitch: init members to resolve compiler warnings
2014-08-14 11:27:31 +09:00
Randy Mackay
a6de3283b6
AHRS_DCM: init members to resolve compiler warnings
2014-08-14 11:27:31 +09:00
Randy Mackay
3fd2b3b4a1
AC_WPNav: init members to resolve compiler warnings
2014-08-14 11:27:30 +09:00
Randy Mackay
af28b74944
Baro_BMP085: init members to resolve compiler warnings
2014-08-14 11:27:29 +09:00
Andrew Tridgell
adb9d462aa
GCS_MAVLink: regenerated MAVLink headers
2014-08-14 11:01:59 +10:00
Andrew Tridgell
f9d5715754
GCS_MAVLink: merged latest upstream common.xml
2014-08-14 11:01:41 +10:00
Andrew Tridgell
3357df9529
AP_Mission: fixed example sketch
2014-08-14 10:48:31 +10:00
Andrew Tridgell
e1a13edf3d
RC_Channel: fixed example build
2014-08-13 22:12:30 +10:00
Andrew Tridgell
184420355d
PID: fixed example build
2014-08-13 22:12:24 +10:00
Andrew Tridgell
b16d84023e
Filter: fixed example build
2014-08-13 22:12:20 +10:00
Andrew Tridgell
5025f04cb1
AP_OpticalFlow: fixed example build
2014-08-13 22:12:14 +10:00
Andrew Tridgell
c76c3457fd
AP_Menu: fixed example build
2014-08-13 22:12:08 +10:00
Andrew Tridgell
184c4c8ac5
AP_Math: fixed example build
2014-08-13 22:12:04 +10:00
Andrew Tridgell
8e15b4db0d
HAL_Empty: fixed example build
2014-08-13 22:12:00 +10:00
Andrew Tridgell
928024854e
HAL_AVR: fixed example build
2014-08-13 22:11:53 +10:00
Andrew Tridgell
b61ecb47af
AP_HAL: fixed example build
2014-08-13 22:11:46 +10:00
Andrew Tridgell
2502ca3ec7
AP_Declination: fixed example build
2014-08-13 22:11:30 +10:00
Andrew Tridgell
c49981c03d
AP_Compass: fixed example build
2014-08-13 22:11:25 +10:00
Andrew Tridgell
1c94b39d6e
AP_ADC: fixed example build
2014-08-13 22:11:21 +10:00
Andrew Tridgell
83dc9bf5b3
AC_PID: fixed example build
2014-08-13 22:11:16 +10:00
Andrew Tridgell
ea26f15e5e
GCS_Console: fixed example build
2014-08-13 21:48:36 +10:00
Andrew Tridgell
6c19f23ace
DataFlash: fixed example build
2014-08-13 21:48:36 +10:00
Andrew Tridgell
8540174854
AP_Rangefinder: fixed example build
2014-08-13 21:48:36 +10:00
Andrew Tridgell
e43cac1b26
AP_Notify: fixed example build
2014-08-13 21:48:36 +10:00
Andrew Tridgell
fddf895d66
AP_Mount: fixed example build
2014-08-13 21:48:36 +10:00
Andrew Tridgell
2e83555892
AP_Motors: fixed example build
2014-08-13 21:48:35 +10:00
Andrew Tridgell
ce193f5c5c
AP_Mission: fixed example build
2014-08-13 21:48:35 +10:00
Andrew Tridgell
917c9f7865
AP_Math: fixed example build
2014-08-13 21:48:35 +10:00
Andrew Tridgell
24251a7e12
AP_InertialSensor: fixed example build
2014-08-13 21:48:35 +10:00
Andrew Tridgell
f0f25eb1d7
AP_InertialNav: fixed example build
2014-08-13 21:48:35 +10:00
Andrew Tridgell
41f7ad42d4
HAL_PX4: fixed example build
2014-08-13 21:48:35 +10:00
Andrew Tridgell
baa5aeea81
HAL_FLYMAPLE: fixed example build
2014-08-13 21:48:35 +10:00
Andrew Tridgell
4bb72f8d85
HAL_AVR: fixed example build
2014-08-13 21:48:35 +10:00
Andrew Tridgell
5cca163b1f
AP_HAL: fixed example build
2014-08-13 21:48:35 +10:00
Andrew Tridgell
b08b76b8ff
AP_GPS: fixed example build
2014-08-13 21:48:35 +10:00
Andrew Tridgell
40709f655e
AP_BattMonitor: fixed example build
2014-08-13 21:46:22 +10:00
Andrew Tridgell
a400cbc922
AP_Baro: fixed example build
2014-08-13 21:46:14 +10:00
Andrew Tridgell
f6f51ceebe
AP_Airspeed: fixed example build
2014-08-13 21:46:09 +10:00
Andrew Tridgell
0f5b65e40e
AP_AHRS: fixed example build
2014-08-13 21:46:04 +10:00
Andrew Tridgell
759a55d633
AC_WPNav: fixed example build
2014-08-13 21:45:56 +10:00
Andrew Tridgell
e2b813480f
AC_Sprayer: fixed example build
2014-08-13 21:45:49 +10:00
Andrew Tridgell
f721e020f5
AC_Fence: fixed example build
2014-08-13 21:45:43 +10:00
Andrew Tridgell
a9153519dc
AC_AttitudeControl: fixed example build
2014-08-13 21:45:38 +10:00
Andrew Tridgell
2297c6bcd2
AP_TECS: added TECS_LAND_SINK parameter
...
this controls the sink rate for the final stage of landing
2014-08-13 21:38:05 +10:00
Andrew Tridgell
52cdd6394f
StorageManager: cope with a wider range of storage sizes
2014-08-13 21:35:26 +10:00
Andrew Tridgell
c864f3eed5
HAL_PX4: enable full storage size on PX4
2014-08-13 18:46:45 +10:00
Andrew Tridgell
e34463a4bb
AP_HAL: flymaple build fix
2014-08-13 18:46:44 +10:00
Andrew Tridgell
a70b195a4a
SITL: fixed limits on storage
2014-08-13 18:46:44 +10:00
Andrew Tridgell
984064f3d3
AP_InertialSensor: fixed example build
2014-08-13 18:46:44 +10:00
Andrew Tridgell
d40d0f6aec
AP_HAL: removed old storage type read/write functions
...
not needed any more
2014-08-13 18:46:44 +10:00
Andrew Tridgell
2d9e9879a2
AP_Limits: convert to using StorageManager
2014-08-13 18:46:43 +10:00
Andrew Tridgell
7a12ff0271
AP_Mission: convert to using StorageManager
2014-08-13 18:46:43 +10:00
Andrew Tridgell
7cbb326405
AP_Rally: convert to using StorageManager
2014-08-13 18:46:43 +10:00
Andrew Tridgell
f133f45c3c
AP_Param: convert to using StorageManager
2014-08-13 18:46:43 +10:00
Andrew Tridgell
f748e07ecf
AP_HAL: ensure we have subtypes for all boards
2014-08-13 18:46:43 +10:00
Andrew Tridgell
3640ae9cdf
SITL: allow for different storage sizes
2014-08-13 18:46:43 +10:00
Andrew Tridgell
e53c872e1f
StorageManager: added example sketch
...
note: this destroys the data
2014-08-13 18:46:43 +10:00
Andrew Tridgell
66a21c4c33
StorageManager: first version of storage management library
...
used to divvy up eeprom/fram and allow for expandable storage
2014-08-13 18:29:04 +10:00
Mikhail Avkhimenia
c42cc12f23
AP_Notify: Add dummy LED configuration for Navio
2014-08-12 22:13:00 +10:00
Mikhail Avkhimenia
34da221c3d
AP_InertialSensor: Use MPU9250 DRDY pin only on boards that support it
2014-08-12 22:13:00 +10:00
Mikhail Avkhimenia
a09fbb4171
HAL_Linux: Add SPI configuration for Navio
...
This changes the SPI bus number to be zero based on Linux
2014-08-12 22:13:00 +10:00
Mikhail Avkhimenia
83bbee491c
AP_Baro_MS5611: add address switch for Navio board
2014-08-12 22:09:29 +10:00
Mikhail Avkhimenia
784533e9c8
AP_HAL: add configuration for HAL_BOARD_SUBTYPE_LINUX_NAVIO
2014-08-12 22:09:17 +10:00
Andrew Tridgell
bc95e746ce
GCS_MAVLink: fixed example sketch builds
2014-08-11 11:06:17 +10:00
Andrew Tridgell
778b5e8a16
AP_PerfMon: removed unusued commented code
2014-08-11 09:39:02 +10:00
Andrew Tridgell
47655ee78e
DataFlash: removed more unusued BufferRead functions
2014-08-11 09:39:02 +10:00
Daniel Frenzel
74460cd526
DataFlash: Delete unused BufferRead function
...
Signed-off-by: Daniel Frenzel <dgdanielf@gmail.com>
2014-08-11 09:24:42 +10:00
Daniel Frenzel
dd705e3fdb
AP_Param: signed/unsigned conversion
...
Signed-off-by: Daniel Frenzel <dgdanielf@gmail.com>
2014-08-11 09:24:34 +10:00
Daniel Frenzel
1c7e8f8fb2
AP_Mission: Consecutive return, break, continue, goto or throw statements are unnecessary.
...
Signed-off-by: Daniel Frenzel <dgdanielf@gmail.com>
2014-08-11 09:24:26 +10:00
Daniel Frenzel
c97b460a6b
AP_GPS: removed wrong reassignment of msec
...
Signed-off-by: Daniel Frenzel <dgdanielf@gmail.com>
2014-08-11 09:24:19 +10:00
Daniel Frenzel
df075b8f63
AP_PerfMon: removed unused blocking_writes
...
Signed-off-by: Daniel Frenzel <dgdanielf@gmail.com>
2014-08-11 09:24:11 +10:00
Daniel Frenzel
b1a9d6bbcc
AP_Math: Using const references in matrix3
...
Signed-off-by: Daniel Frenzel <dgdanielf@gmail.com>
2014-08-11 09:24:05 +10:00
Andrew Tridgell
b559e9d331
SITL: better rangefinder simulation
...
able to handle a wider range, and takes account of attitude
2014-08-10 22:37:07 +10:00
Andrew Tridgell
ef98eba722
SITL: added SIM_SONAR_SCALE parameter
...
used for simulating different kinds of rangefinders
2014-08-10 22:36:38 +10:00
Andrew Tridgell
a4cd9c4bd7
AP_Airspeed: added HIL support
2014-08-10 18:16:53 +10:00
Andrew Tridgell
b296508da4
AP_GPS: make setHIL take const references
2014-08-09 22:50:15 +10:00
Andrew Tridgell
bf0ce79176
SITL: make it possible to use SITL-HIL
...
strangely enough, using HIL in SITL is a great way to debug HIL!
2014-08-09 22:50:15 +10:00
Andrew Tridgell
f8ceccce32
AP_InertialSensor: improved HIL timing consistancy
...
try to keep the average time for each sample right
2014-08-09 22:50:15 +10:00
Andrew Tridgell
2e5913df93
RC_Channel: fixed k_manual for set_servo_limit()
...
this allows for failsafe takeover of k_manual channels, which fixes
the behaviour for ignition failsafe
2014-08-09 22:50:14 +10:00
Andrew Tridgell
d1a75874a1
HAL_PX4: don't report power status change if in first 5 seconds
2014-08-09 22:50:14 +10:00
Andrew Tridgell
9a1bac06d4
GCS_MAVLink: added send_battery2()
2014-08-09 22:50:14 +10:00
Andrew Tridgell
ab6302540d
AP_BattMonitor: added 2nd battery voltage monitoring
2014-08-09 22:50:14 +10:00
Andrew Tridgell
11025c8da9
GCS_MAVLink: rebuild MAVLink headers
2014-08-09 22:50:14 +10:00
Andrew Tridgell
67e1b66757
GCS_MAVLink: added battery2 message
2014-08-09 22:50:14 +10:00
Randy Mackay
5d4e019397
BaroGlitch: increase max accel to 15m/s/s
2014-08-09 15:47:52 +09:00
Andrew Tridgell
3ee3a71644
AP_NavEKF: prevent a possible numerical error on startup
...
fixes issue #1294
2014-08-08 15:55:20 +10:00
Andrew Tridgell
144dcb4552
APM_OBC: use send_statustext_all()
2014-08-08 13:54:21 +10:00
Andrew Tridgell
f49258eb31
GCS_MAVLink: added send_statustext_all() method
...
used for sending text messages from libraries
2014-08-08 13:54:21 +10:00
Andrew Tridgell
1d4d848300
AP_InertialSensor: fixed a build warning
2014-08-08 13:48:03 +10:00
Andrew Tridgell
a812bf621f
APM_OBC: added AFS_ENABLE parameter
...
AFS system is disabled by default
2014-08-08 13:48:03 +10:00
priseborough
bc3c85be20
AP_L1_Control : Fix potential divide by zero error
2014-08-07 19:04:42 +10:00
Andrew Tridgell
ed6ab5f1d3
AP_InertialSensor: use bool for blocking_read()
...
uint8_t return was confusing
2014-08-07 13:09:17 +10:00
Michael Carpenter
b4c0e1215b
AP_InertialSensor: Use return value of blocking_read to handle calibration timeouts
2014-08-07 13:04:18 +10:00
Andrew Tridgell
786661ca2b
GCS_MAVLink: better handling of high severity STATUSTEXT messages
2014-08-07 12:55:52 +10:00
Przemek Lekston
ae4814a773
AP_AHRS_DCM.cpp: changed the direction of position projection to ensure correct behavious in crosswind
2014-08-07 12:34:30 +10:00
Andrew Tridgell
bc560b466e
GCS_MAVLink: regenerate MAVLink headers
2014-08-07 12:34:30 +10:00
Andrew Tridgell
5ed24557b3
GCS_MAVLink: import latest MAVLink XML
2014-08-07 12:34:30 +10:00
Andrew Tridgell
af4dee39d8
AP_Terrain: added note on CPU cost of height_amsl()
2014-08-07 09:51:14 +10:00
Andrew Tridgell
dc72dfb70a
AP_Terrain: added terrain lookahead API
...
this allows for predicting altitude needed to climb over upcoming
terrain
2014-08-07 09:30:35 +10:00
Andrew Tridgell
b92873cab1
AP_Math: prevent negative longitude scaling
...
for crazy locations
2014-08-07 09:30:02 +10:00
Andrew Tridgell
7752196628
AP_SpdHgtControl: added get_max_climbrate()
2014-08-07 09:29:40 +10:00
Andrew Tridgell
c990714377
AP_TECS: added get_max_climbrate()
2014-08-07 09:29:31 +10:00
Andrew Tridgell
f0f46a77d7
AP_Terrain: don't request data at 0/0
2014-08-06 22:13:37 +10:00
Andrew Tridgell
642a07b6bd
AP_Terrain: enable the terrain database by default
...
MissionPlanner now supports terrain data, and having terrain data in
logs is useful even if users don't fly terrain missions
2014-08-06 20:53:34 +10:00
Andrew Tridgell
efa1d370fa
AP_Terrain: added missing TerrainMission.cpp
2014-08-06 19:32:53 +10:00
Andrew Tridgell
88bc1fb4d3
AP_Rally: fixed build for non-standard vehicle types
2014-08-06 17:59:20 +10:00
Andrew Tridgell
a701fa2098
AP_Terrain: added automatic rally point checking
2014-08-06 17:59:19 +10:00
Andrew Tridgell
723aa7e336
AP_Rally: added last_change_time_ms() call
2014-08-06 17:59:19 +10:00
Andrew Tridgell
7da939047f
AP_Terrain: added automatic waypoint checking
...
check we have terrain data for all waypoints
2014-08-06 17:59:19 +10:00
Andrew Tridgell
df55ae86c4
AP_Mission: added last_change_time_ms() call
...
will be used by terrain lib for scanning waypoints
2014-08-06 17:59:19 +10:00
Andrew Tridgell
9ca65602c6
AP_Terrain: added dataflash logging
2014-08-06 17:59:19 +10:00
Andrew Tridgell
cd8fca40fb
DataFlash: added TERR log message for terrain data
2014-08-06 17:59:19 +10:00
Andrew Tridgell
7c4d31c481
AP_TECS: added TECS_PITCH_MAX and TECS_PITCH_MIN
...
this allows the TECS controlled pitch limits to be smaller than the
FBWA limits. It is common for a human pilot to want a bit more
discretion over pitch than you want the automatic controller to use
2014-08-06 17:59:18 +10:00
Andrew Tridgell
147a7b8b69
AP_Terrain: added extrapolation based on last available data
...
if we run out of terrain data then extrapolate using the last
available terrain height at the AHRS position. This can be used to
cope with GCS outages over long distances where the terrain data isn't
preloaded
2014-08-06 17:59:18 +10:00
Randy Mackay
e0fc2dd50e
AC_PosControl: remove 20cm on takeoff
2014-08-05 09:11:57 +09:00
akdslr
a404404806
AP_RangeFinder: Added a call to sonar.update in RFIND_test
2014-08-04 22:13:16 +10:00
Randy Mackay
1362bdc338
AC_PosControl: smooth take-off with accel PID's I term
...
This avoids an instantaneous jump in throttle during take-off by loading
the accel PID's I term with the expected change in throttle level
2014-08-04 21:04:09 +09:00
Randy Mackay
5596001d39
AC_Motors: make get_throttle_out const
2014-08-04 21:04:09 +09:00
Randy Mackay
e550c1e9a3
AC_PosControl: add set_alt_target_to_current_alt method
2014-08-04 16:54:04 +09:00
Randy Mackay
009f42b2e1
InertialNav: do not reset velocity after glitch clears
2014-08-04 11:31:46 +09:00
Andrew Tridgell
6ebff35fe2
AP_Baro: don't include I2C MS5611 on APM1 either
2014-08-03 17:17:20 +10:00
Randy Mackay
fe24721218
BaroGlitch: increase default ok distance to 5m
...
When taking off some copters hove a sudden baro altitude dip of 4m
2014-08-02 11:43:06 +09:00
Randy Mackay
f12d06d76b
DataFlash: typo fix in ListAvailableLogs
2014-08-01 15:14:44 +09:00
Randy Mackay
538372c02c
InertialNav: remove accessor to set time_constants
2014-08-01 15:14:43 +09:00
Andrew Tridgell
3fa30f91db
DataFlash: avoid CLI functions on APM2 for copter
2014-08-01 15:57:15 +10:00
Randy Mackay
c68d4fdfcb
BaroGlitch: init members to resolve compiler warning
2014-08-01 14:07:34 +09:00
Randy Mackay
621cc2b953
Mission: bug fix to condition-change-alt
...
Fix contributed by oniondream, thanks!
2014-08-01 12:51:50 +09:00
priseborough
d5442fe64e
AP_NavEKF : Modified compass fail logic
...
If the vehicle can fly without a compass (a fly forward vehicle)
then if the compass times out (large errors for more than 10 seconds,
then it will be declared permanently failed and will not be
used until the filter is reset
2014-07-31 21:12:11 +10:00
Andrew Tridgell
cc735a4200
AP_InertialSensor: some more debug info for VibTest
2014-07-31 12:48:30 +10:00
Matthias Badaire
c7cd1c9fde
AP_Frsky_Telem: added initial Frsky telemetry library
...
based on work from the PX4Firmware tree, this adds a library which can
create and send Frsky telemetry packets
2014-07-29 17:08:19 -07:00
Randy Mackay
728da12441
BaroGlitch: remove debug
2014-07-29 22:05:09 +09:00
Andrew Tridgell
c538cc0665
AP_Baro: fixed example build
2014-07-29 21:04:26 +10:00
Andrew Tridgell
03dc27147e
AP_Math: port examples to Linux
2014-07-29 15:49:38 +10:00
Randy Mackay
053a45e9cf
AC_WPNav: fix example sketch
2014-07-29 12:01:09 +09:00
Randy Mackay
6a6482fb03
AC_Sprayer: fix example sketch
2014-07-29 12:00:59 +09:00
Randy Mackay
71df1eb94f
AC_Fence: fix example sketch
2014-07-29 12:00:46 +09:00
Randy Mackay
424cb1aeca
AC_AttControl: fix example sketch
2014-07-29 12:00:33 +09:00
Randy Mackay
2951fb50e9
InertialNav: fix example sketch
2014-07-29 11:51:49 +09:00
Randy Mackay
4d6588a479
Notify: APM2 buzzer for arming, ekf and baro failures
2014-07-28 22:16:24 +09:00
Randy Mackay
dcc74be4aa
Notify: baro warning tone alarm
2014-07-28 22:16:23 +09:00
Randy Mackay
cd9e786935
Notify: RGB led flashes yellow-purple for baro warning
2014-07-28 22:16:22 +09:00
Randy Mackay
5f1f619829
HAL_AVR_SITL: integrate ACC_BIAS and BARO_GLITCH
...
Adjust simulated accelerometer values and barometer altitude
2014-07-28 22:16:21 +09:00
Randy Mackay
79291f25a0
SITL: add ACC_BIAS and BARO_GLITCH parameters
...
These allow testing accelerometer bias which often comes from vibration
and sudden changes in baro altitude.
2014-07-28 22:16:21 +09:00
Randy Mackay
4db4471f49
INav_EKF: accept baro_glitch in constructor
...
Required so it can create an InertialNav object
2014-07-28 22:16:19 +09:00
Randy Mackay
322f527c4f
InertialNav: skip baro updates when glitching
...
Also resets inertial nav alt estimate once glitch clears
2014-07-28 22:16:19 +09:00
Randy Mackay
ee6d4d570a
Notify: add baro_glitch flag
2014-07-28 22:16:18 +09:00
Randy Mackay
2289b98d34
Baro_Glitch: initial version of baro glitch protection
...
Based on GPS Glitch protection library
2014-07-28 22:16:12 +09:00
Andrew Tridgell
2ebdfce4ea
GCS_MAVLink: avoid integer underflow in mavlink txspace check
2014-07-27 22:18:52 +10:00
Andrew Tridgell
f7b01a6f3f
AP_InertialSensor: avoid integer underflow in mavlink txspace check
2014-07-27 22:18:52 +10:00
Andrew Tridgell
a21998aece
GCS_MAVLink: prevent integer underflow with comm_get_txspace()
2014-07-27 22:12:08 +10:00
Randy Mackay
b665ebd7a0
MotorsMatrix: implement get_motor_mask
2014-07-26 16:33:24 +09:00
Randy Mackay
d73605ece8
MotorsCoax: implement get_motor_mask
2014-07-26 16:33:22 +09:00
Randy Mackay
72c3e9cc72
TradHeli: implement get_motor_mask
2014-07-26 16:33:20 +09:00
Randy Mackay
6d99524e56
MotorsSingle: implement get_motor_mask
2014-07-26 16:33:18 +09:00
Randy Mackay
6ae855c1cf
MotorsTri: implement get_motor_mask
2014-07-26 16:33:16 +09:00
Randy Mackay
7749bfe82c
Motors: add get_motor_mask method
...
This returns a bitmask of output channels that are used by the motors
library. This allows removing the chance of a do-set-servo interfering
with a motor or control surface used to control the vehicle.
2014-07-26 16:33:14 +09:00
Andrew Tridgell
b4a441620f
AP_Notify: fixed example build
2014-07-25 18:38:15 +10:00
Andrew Tridgell
a6db247f82
GCS_Console: fixed example build
2014-07-25 17:55:22 +10:00
Andrew Tridgell
e67c468e2d
DataFlash: fixed example build
2014-07-25 17:55:16 +10:00
Andrew Tridgell
7bf72d1c2b
AP_RangeFinder: fixed example build
2014-07-25 17:55:11 +10:00
Andrew Tridgell
f2c636250b
AP_Notify: fixed example build
2014-07-25 17:55:04 +10:00
Andrew Tridgell
6ea68b318e
AP_Mount: fixed example build
2014-07-25 17:54:58 +10:00
Andrew Tridgell
d9f20c6785
AP_Motors: fixed example build
2014-07-25 17:54:51 +10:00
Andrew Tridgell
50f67dd57d
AP_Mission: fixed example build
2014-07-25 17:54:45 +10:00
Andrew Tridgell
c1650eed7a
AP_InertialNav: fixed example build
2014-07-25 17:54:37 +10:00
Andrew Tridgell
db1479b46b
AP_GPS: fixed example build
2014-07-25 17:54:25 +10:00
Andrew Tridgell
93f2d81ff4
AP_BattMonitor: fixed example build
2014-07-25 17:54:19 +10:00
Andrew Tridgell
c1646fec73
AP_Airspeed: fixed example build
2014-07-25 17:54:11 +10:00
Andrew Tridgell
82d0666501
AP_AHRS: fixed example build
2014-07-25 17:54:04 +10:00
Andrew Tridgell
7f7a0db2d3
AC_WPNav: fixed example build
2014-07-25 17:53:58 +10:00
Andrew Tridgell
f75318ee0a
AC_Sprayer: fixed example build
2014-07-25 17:53:43 +10:00
Andrew Tridgell
2b3becd252
AC_Fence: fixed example build
2014-07-25 17:53:27 +10:00
Andrew Tridgell
6df2890fd8
AC_AttitudeControl: fixed example build
2014-07-25 17:52:53 +10:00
Andrew Tridgell
662276597a
AP_InertialSensor: fixed example build
2014-07-25 17:52:14 +10:00
Andrew Tridgell
02dec5634f
AP_HAL: fixed example builds
2014-07-25 17:52:01 +10:00
Andrew Tridgell
aa5940c378
AP_Math: fixed example build
2014-07-25 17:51:30 +10:00
Andrew Tridgell
0f7e78e418
Airspeed: fixed example to setup pin
2014-07-25 17:15:00 +10:00
Andrew Tridgell
ffd6fa1366
GCS_MAVLink: ignore alignment warnings in MAVLink headers
2014-07-25 17:14:48 +10:00
Randy Mackay
46e5fa2c0b
Notify: APM2 arming buzzer to long tone
...
Arming tone is a solid 3 second tone so it is consistent with Pixhawk
arming tone
2014-07-25 13:09:04 +09:00
Andrew Tridgell
37b357f282
AP_Terrain: prevent valgrind error when terrain not available
2014-07-25 13:44:36 +10:00
Andrew Tridgell
bb31a45596
AP_Terrain: expand parameter docs
2014-07-25 13:18:48 +10:00
Andrew Tridgell
e578044661
GCS_MAVLink: added missing generated MAVLink headers
2014-07-25 13:09:31 +10:00
Andrew Tridgell
ab9785d3ad
AP_Terrain: added current_height to TERRAIN_REPORT
...
and send TERRAIN_REPORT even when downloading TERRAIN_DATA
2014-07-25 11:40:56 +10:00
Andrew Tridgell
383070b9c0
AP_NavEKF: ensure get_position() fills in flags
2014-07-25 11:40:26 +10:00
Andrew Tridgell
6a275372dd
AP_AHRS: ensure get_position() fills in flags
2014-07-25 11:40:16 +10:00
Andrew Tridgell
8a838e6b3d
GCS_MAVLink: regenerate headers
2014-07-25 11:40:01 +10:00
Andrew Tridgell
4e39f97d7a
GCS_MAVLink: merged with upstream
2014-07-25 11:39:48 +10:00
Andrew Tridgell
c4047f6f11
AP_Terrain: rename find_grid() to find_grid_cache()
...
thanks Randy!
2014-07-25 09:52:20 +10:00
Andrew Tridgell
1fcf35333f
AP_Terrain: fixed init order and init more vars
...
thanks to Randy for spotting this
2014-07-25 09:45:47 +10:00
Andrew Tridgell
679b32b76c
AP_Terrain: make parameter variables private
2014-07-25 09:45:28 +10:00
Andrew Tridgell
34cbaa6f17
AP_Mission: added support for MAV_FRAME_GLOBAL_TERRAIN_ALT
2014-07-25 08:33:44 +10:00
Andrew Tridgell
3faafc9644
AP_Terrain: replace HAVE_AP_TERRAIN with AP_TERRAIN_AVAILABLE
2014-07-25 07:59:48 +10:00
Andrew Tridgell
ce60bf8d3f
AP_Terrain: removed incorrect ASSERT
2014-07-25 07:56:33 +10:00
Andrew Tridgell
7bc6561f2a
AP_Terrain: fixed comment on function
2014-07-25 07:56:22 +10:00
Andrew Tridgell
b8b235c33c
GCS_MAVLink: regenerate MAVLink headers
2014-07-24 21:50:20 +10:00
Andrew Tridgell
c32595e6ed
AP_Terrain: added status() interface for reporting
2014-07-24 21:50:19 +10:00
Andrew Tridgell
e2e41d5da7
AP_Terrain: added location_to_relative_home() function
2014-07-24 21:50:19 +10:00
Andrew Tridgell
8a48f06d18
AP_Common: added terrain_alt flag to Location
...
signifies that the altitude is a above terrain altitude
2014-07-24 21:50:19 +10:00
Andrew Tridgell
5e2077185b
AP_Terrain: fixed cm conversion error
2014-07-24 21:50:19 +10:00
Andrew Tridgell
18974363d5
AP_Terrain: added some helper functions
...
this adds easier to use helper functions for terrain handling
2014-07-24 21:50:19 +10:00
Andrew Tridgell
8ea2133c4b
AP_Terrain: provide more height_*() convenience functions
...
these provide functions that are more convenient for the vehicle code
to use
2014-07-24 21:50:19 +10:00
Andrew Tridgell
db506b76fa
AP_Terrain: split up code into separate cpp files
...
this should make it a bit easier to review
2014-07-24 21:50:19 +10:00
Andrew Tridgell
6b53f473d9
GCS_MAVLink: added a new TERRAIN_ALT frame type for missions
2014-07-24 21:50:18 +10:00
Andrew Tridgell
2d9637c156
AP_Terrain: re-arrange disk IO code
...
add some comments explaining split between IO thread and main code
2014-07-24 21:46:07 +10:00
Andrew Tridgell
ee04c7de96
AP_Terrain: hold home location as a special location
...
this ensures home altitude is always available
2014-07-24 21:46:06 +10:00
Andrew Tridgell
0a3aa23619
AP_Terrain: fixed build on APM2
2014-07-24 21:46:06 +10:00
Andrew Tridgell
2f0279659a
AP_Terrain: prevent disk blocks getting stuck
...
we need to match first on the expected state to ensure we don't get an
invalid block
2014-07-24 21:46:06 +10:00
Andrew Tridgell
28d6e39c4c
AP_Terrain: added checking of block CRCs on disk
...
this allows us to cope with SD card data corruption
2014-07-24 21:46:06 +10:00
Andrew Tridgell
a458f1bf5f
AP_Baro: minor improvements to Baro HIL code health check
2014-07-24 21:46:06 +10:00
Andrew Tridgell
0df2dd9092
GCS_MAVLink: added TERRAIN_CHECK and TERRAIN_REPORT messages
2014-07-24 21:45:57 +10:00
Andrew Tridgell
eeb4ad56bc
AP_Terrain: added checking and reporting messages
...
this allows the GCS to check the status of the terrain system
2014-07-24 21:45:56 +10:00
Andrew Tridgell
9f76f0276f
AP_Terrain: added disk IO for terrain data
2014-07-24 21:45:56 +10:00
Andrew Tridgell
63b5811a7c
AP_HAL: added HAL_BOARD_TERRAIN_DIRECTORY
2014-07-24 21:45:56 +10:00
Andrew Tridgell
09214680fe
AP_Terrain: request grids around current grid
...
this ensures we have grids ahead of time
2014-07-24 21:45:56 +10:00
Andrew Tridgell
18e09c2f3e
AP_Terrain: added debug code
2014-07-24 21:45:56 +10:00
Andrew Tridgell
09518d2d91
AP_Terrain: added mavlink transport of terrain data
2014-07-24 21:45:46 +10:00
Andrew Tridgell
e23ee34d95
GCS_MAVLink: added MSG_TERRAIN
2014-07-24 21:45:46 +10:00
Andrew Tridgell
1ecd4b7fb2
GCS_MAVLink: updated terrain messages
2014-07-24 21:45:46 +10:00
Andrew Tridgell
3020d91dcd
GCS_MAVLink: keep a bitmap of what mavlink channels are active
...
- this will allow for looping over active channels in libraries
- expose active channel mask
2014-07-24 21:45:46 +10:00
Andrew Tridgell
1d42eda4da
AP_Terrain: started on update() logic
2014-07-24 21:45:46 +10:00
Andrew Tridgell
a7eb2ac28c
AP_Terrain: implement height_amsl()
2014-07-24 21:45:46 +10:00
Andrew Tridgell
f26bbb6ddb
GCS_MAVLink: added terrain mavlink messages
2014-07-24 21:45:46 +10:00
Andrew Tridgell
ee7fc984f0
AP_Terrain: initial structure
2014-07-24 21:44:50 +10:00
Andrew Tridgell
8ef9aa0300
GCS_MAVLink: rebuild MAVLink headers
2014-07-24 21:40:16 +10:00
Andrew Tridgell
3d2460bd42
XML: resolved conflicts in MAV_CMD_ enum
...
this moves a couple of commands to be MAV_CMD_DO_ commands, after
discussions with Lorenz and Randy
2014-07-24 21:40:16 +10:00
Andrew Tridgell
feaf9751cc
AP_Mission: removed use of MAV_CMD_NAV_VELOCITY and MAV_CMD_NAV_GUIDED
2014-07-24 21:38:31 +10:00
Andrew Tridgell
0f24c43b0c
GCS_MAVLink: merged latest changes from upstream
2014-07-24 21:38:31 +10:00
akdslr
2c86f5df94
AP_RangeFinder: Updated RFIND_test example to not use Auto and added more device details
2014-07-24 14:41:55 +10:00
akdslr
a1861125e6
AP_RangeFinder_PulsedLightLRF: Modified to do a 2 byte transfer for the distance read
2014-07-24 14:41:54 +10:00
akdslr
b08e3d0ee4
AP_RangeFinder_PX4: Added the destructor to close the file descriptor
2014-07-24 14:41:54 +10:00
akdslr
54d0db863b
AP_RangeFinder: Changed sonar to rangefinder in the parameter descriptions
2014-07-24 14:41:54 +10:00
akdslr
8c6718fe2d
AP_RangeFinder: Removed the use of type Auto
2014-07-24 14:41:54 +10:00
Emile Castelnuovo
1092447360
AP_Compass_VRBrain: add support for two compasses
2014-07-23 20:51:12 +09:00
Emile Castelnuovo
4deafffb3e
AP_Compass: VRBRAIN corrected function definition
...
Add support for two compasses.
2014-07-23 20:47:19 +09:00
Randy Mackay
f24960f4c0
AP_Notify: add EKF failure warning
2014-07-22 23:13:27 +09:00
Randy Mackay
a6c29ba1c3
Compass_PX4: get_primary made public
2014-07-22 22:01:23 +09:00
Randy Mackay
c16672a529
Compass_VRBrain: get_primary made public
2014-07-22 22:01:22 +09:00
Randy Mackay
d291594d7c
Compass: get_primary method made public
2014-07-22 22:01:09 +09:00
Randy Mackay
1f579563e6
Compass: set_motor_compensation takes instance as first parameter
...
Also get_motor_compensation uses primary compass
2014-07-22 21:59:04 +09:00
Andrew Tridgell
c45f1961f6
AP_RangeFinder: removed old test code
2014-07-21 09:39:48 +10:00
Andrew Tridgell
fe92ef5c32
AP_RangeFinder: added an example program
2014-07-21 09:39:12 +10:00
Andrew Tridgell
3474da6c97
AP_Param: added a method for example programs to set parameters in objects
2014-07-21 09:37:41 +10:00
Andrew Tridgell
79f453dfd3
AP_InertialSensor: use LSM9DSO_AM device
2014-07-19 13:23:54 +10:00
Andrew Tridgell
03e8e5f2b9
HAL_Linux: setup for all 6 SPI devices for PXF cape
2014-07-19 13:23:37 +10:00
Andrew Tridgell
9b23921626
AP_HAL: added LSM9DSO_G SPI device
2014-07-19 13:22:24 +10:00
Andrew Tridgell
05f5d91709
HAL_Linux: fixed BusTest build
2014-07-19 12:22:06 +10:00
Randy Mackay
517732a34d
AP_Motors: add get_throttle_out accessor
2014-07-18 11:39:27 +09:00
Randy Mackay
c2f8571f37
AC_AttControl: FF and accel limiting off by default
...
Also adjust parameter ranges used by GCSs
2014-07-17 16:22:32 +09:00
Randy Mackay
eebd32f306
AC_AttControl: remove duplicate rate_ef_desired to resolve compiler warning
2014-07-16 21:50:31 +09:00
Randy Mackay
0a46afa6c4
AC_PID: init members to reduce compiler warnings
2014-07-16 17:46:14 +09:00
lthall
fb55658c91
Copter: Acro use same error limit in all three axis
2014-07-16 17:46:13 +09:00
lthall
2889f5abc4
AC_AttControl: Fix feedforward behavior
2014-07-16 17:46:06 +09:00
Randy Mackay
581838b271
AC_AttControl: initialise _acro_angle_switch
...
Resolves a compiler warning
2014-07-16 15:11:12 +09:00
Randy Mackay
6baedbda1d
AP_InertialSensor: add empty virtual destructor
2014-07-16 14:56:56 +09:00
Randy Mackay
d23b685023
AP_AHRS: add empty virtual destructor
2014-07-16 14:56:54 +09:00
Randy Mackay
83a84c7b90
AC_AttControl: add empty virtual destructor
...
This resolves pixhawk bricking and reduces one compiler warning
2014-07-16 14:56:52 +09:00
Jonathan Challinger
6e66cf43cb
AC_AttitudeControl: Use bias-corrected angular rates instead of raw gyro measurements
2014-07-16 14:40:56 +09:00
Randy Mackay
a09f7b9198
AP_InertialSensor_MPU6k: init members to reduce compiler warnings
2014-07-16 14:40:55 +09:00
Randy Mackay
c5a03ea18e
AP_InertialSensor: init members to reduce compiler warnings
2014-07-16 14:40:53 +09:00
Randy Mackay
d530fe1806
Camera: remove unused reference to hal
...
Resolves one compiler warning
2014-07-16 14:40:52 +09:00
Randy Mackay
4cf7f01694
AP_Airspeed: init members to reduce compiler warnings
2014-07-16 14:40:50 +09:00
Randy Mackay
4c76c77239
AP_Airspeed: use 'no break' to resolve compiler warning re switch
2014-07-16 14:40:49 +09:00
Randy Mackay
10588d6d36
AC_Sprayer: append f to floating point constants
...
Reduces some compiler warnings
2014-07-16 14:40:47 +09:00
Randy Mackay
6f60ce3d6e
Inav_EKF: init member and remove hal reference to reduce compiler warnings
2014-07-16 14:40:39 +09:00
Randy Mackay
e27ff75a71
AP_InertialNav: remove virtual qualifier from error_count
2014-07-16 14:38:50 +09:00
Randy Mackay
0c0521a555
AC_Fence: append f to floating point constants
2014-07-16 14:38:48 +09:00
Randy Mackay
9e2cd93b2d
AP_InertialNav: init members to reduce compiler warnings
2014-07-16 14:38:46 +09:00
Randy Mackay
1e888e5c34
AP_InertialNav: append f to floating point constants
...
Reduces some compiler warnings
2014-07-16 14:38:43 +09:00
Randy Mackay
70568225a6
AC_PosControl: init members to resolve compiler warnings
2014-07-16 14:38:40 +09:00
Randy Mackay
9233bbab14
AC_PosControl: cast fabs to float to resolve compiler warnings
2014-07-16 14:38:38 +09:00
Randy Mackay
52d5109a6c
AC_Circle: initialise members to reduce compiler warnings
2014-07-16 14:38:34 +09:00
Randy Mackay
76507a9e67
AC_AttControlHeli: remove hal declaration to clear compiler warning
2014-07-16 14:38:32 +09:00
Randy Mackay
5128991a84
AC_AttControlHeli: cast fabs to float to resolve compiler warning
2014-07-16 14:38:29 +09:00
Randy Mackay
1f2e38ed28
AHRS: initalise members to reduce compiler warnings
2014-07-16 14:38:26 +09:00
Randy Mackay
0f7178e447
AC_AttControl: cast fabs to float to resolve compiler warning
2014-07-16 14:38:20 +09:00
Randy Mackay
47801a6c4d
Compass: bug fix to init of device id
...
Also init members to reduce compiler warnings
2014-07-16 14:29:10 +09:00
LukeMike
85fc72c57c
AP_InertialSensor: VRBRAIN added 3th inertial sensor
2014-07-15 20:42:15 +10:00
LukeMike
dd1cab3ab8
HAL_VRBRAIN: updated analog drivers and scheduler driver to latest official version
2014-07-15 20:42:11 +10:00
Andrew Tridgell
9e921719ca
HAL_Linux: added bus scanning test
2014-07-15 19:06:11 +10:00
Andrew Tridgell
bcc8768358
HAL_Linux: fixed a build warning
2014-07-15 13:56:50 +10:00
Andrew Tridgell
1b85b12738
HAL_Linux: made I2C driver more portable
...
this uses a typeof() to cope with different kernel data types for I2C
messages
2014-07-15 13:56:50 +10:00
Markus Koetter
1edf7ef05f
AP_HAL: use VRBRAIN INS/BARO/COMPASS for VRBRAIN boards
2014-07-15 11:43:00 +10:00
Markus Koetter
701aa9ac4c
AP_Compass: DEVIOCGDEVICEID is (currently) not defined in VRNuttX
2014-07-15 11:42:37 +10:00
Randy Mackay
cc9c3bb5aa
AC_Fence: increase default radius to 300m
...
300m is still within line of sight and this should reduce the number of
false breaches due to bad GPS positions
2014-07-14 11:25:04 +09:00
Andrew Tridgell
224515f3eb
HAL_Linux: fixed indexing of device array for SPI
2014-07-14 11:31:55 +10:00
Andrew Tridgell
3292055af2
HAL_Linux: fixed dataflash SPI
2014-07-14 11:07:41 +10:00
Andrew Tridgell
fe475a3561
AP_RangeFinder: removed old PulsedLightLRF example
2014-07-14 10:43:17 +10:00
Andrew Tridgell
5d6ef45662
AP_RangeFinder: removed old MaxSonarXL example
2014-07-14 10:42:20 +10:00
Andrew Tridgell
c425e7e060
AP_RangeFinder: fixed example build
2014-07-14 10:41:28 +10:00
Andrew Tridgell
e448168ba6
AP_Motors: fixed example build
2014-07-14 10:41:16 +10:00
Andrew Tridgell
2b3d17d955
AP_Baro: fixed APM1 build
2014-07-14 09:50:17 +10:00
Andrew Tridgell
6312b9f8c0
HAL_Linux: allow different SPI and GPIO devices on different boards
...
this fixes the Replay utility, which uses subtype NONE, and will make
it easier to port to new boards
2014-07-14 09:44:37 +10:00
bugobliterator
003806fcc1
HAL_Linux: pwmpru,HAL_Linux_RCOut code doesn't wait for magic flag to send data
...
change pwmpru code to remove frequent wrong PWM outputs
Replace pru firmware with new modified pru firmware
2014-07-14 09:44:37 +10:00
bugobliterator
8cf628e780
HAL_Linux_RCoutput:Add handler to catch SIGBUS error
2014-07-14 09:44:37 +10:00
bugobliterator
25e670d0cc
HAL_LINUX_RCOutput: Change to reading hilo_read instead of periodhi
...
use uint instead of int
2014-07-14 09:44:36 +10:00
Andrew Tridgell
a46d8dbd51
HAL_Linux: make the spi driver fd part of the manager, not device
...
it should be one connection to the kernel per bus, not one per device
2014-07-14 09:44:36 +10:00
Andrew Tridgell
be02f0c34f
AP_Baro: work around occasional 0 values from MS5611
...
this was seen on the PXF board. It isn't yet known why it happens
2014-07-14 09:44:36 +10:00
Andrew Tridgell
1e20f89f90
AP_Compass: use HAL_COMPASS_DEFAULT in example code
2014-07-14 09:44:36 +10:00
Andrew Tridgell
9f8f27090a
HAL_Linux: MPU9250 is restricted to 1MHz for setup
...
(see datasheet)
2014-07-14 09:44:36 +10:00
Andrew Tridgell
0f724c1d7a
AP_InertialSensor: removed per-device example code
...
now can use a single generic test for all boards
2014-07-14 09:44:36 +10:00
Andrew Tridgell
b0ab2671cd
AP_Baro: removed old device specific example code
...
not needed any more
2014-07-14 09:44:36 +10:00
Andrew Tridgell
028e2e34f1
AP_Baro: added generic baro test sketch
2014-07-14 09:44:36 +10:00
Andrew Tridgell
563f516f6b
HAL_FLYMAPLE: rename flash_stm32.c to .cpp
...
this avoids a compiler hang on Ubuntu when not building for flymaple
2014-07-14 09:44:36 +10:00
Andrew Tridgell
273bc230e6
HAL_AVR: renamed pins_arduino_mega.c to .cpp
...
this fixes a compiler hang on at least one Ubuntu platform. May be a
problem building empty C files?
It also makes our build more consistent
2014-07-14 09:44:36 +10:00
Andrew Tridgell
5a170c6343
AP_InertialSensor: added INS_generic test
2014-07-14 09:44:36 +10:00
Andrew Tridgell
d1ba78002d
AP_InertialSensor: added paranoid check for DRDY pin
2014-07-14 09:44:36 +10:00
Andrew Tridgell
549e08446a
HAL_Linux: use BBB pin names in SPIDriver
...
easier to find the pins on the board
2014-07-14 09:44:36 +10:00
Andrew Tridgell
6f9965cc22
AP_InertialSensor: fixed setup of DRDY pin on MPU9250
2014-07-14 09:44:36 +10:00
Andrew Tridgell
6a6dbe5790
AP_InertialSensor: added check for WHOAMI on MPU9250
2014-07-14 09:44:35 +10:00
Andrew Tridgell
e24febec1b
AP_TECS: avoid a valgrind bug
2014-07-14 09:44:35 +10:00
Andrew Tridgell
8e5915ef7d
HAL_Linux: fixed some valgrind errors
2014-07-14 09:44:35 +10:00
Andrew Tridgell
130f831c1c
HAL_Linux: use MODE_3 for MPU9250
...
this fixes the MS5611 (probably due to idle state?)
2014-07-14 09:44:35 +10:00
Andrew Tridgell
f73ec95c39
AP_Baro_MS5611: added PROM CRC checking
...
disabled on APM2 to save flash space
2014-07-14 09:44:35 +10:00
Andrew Tridgell
6c3197cb43
AP_Notify: fixed SITL build
2014-07-14 09:44:35 +10:00
Andrew Tridgell
52c53e55f8
AP_Airspeed: use board subtypes
2014-07-14 09:44:35 +10:00
Andrew Tridgell
252052d723
AP_Notify: use HAL board subtypes
2014-07-14 09:44:35 +10:00
Andrew Tridgell
abb53eb9a2
AP_InertialSensor: simplify using HAL board subtypes
2014-07-14 09:44:35 +10:00
Andrew Tridgell
fc8068adfe
HAL_Linux: use board subtypes
2014-07-14 09:44:35 +10:00
Andrew Tridgell
7195e38585
AP_HAL: fixed I2C build on APM2
2014-07-14 09:44:35 +10:00
Andrew Tridgell
5693392838
AP_HAL: added the concept of a board subtype, and default sensor types
...
this will make the vehicle code much more generic
2014-07-14 09:44:34 +10:00
Andrew Tridgell
1bf0c4c67d
HAL_Linux: cope with different I2C headers for data
2014-07-14 09:44:34 +10:00
Andrew Tridgell
848b563fc3
AP_InertialSensor: rotate acccel/gyro for PXF
2014-07-14 09:44:34 +10:00
Andrew Tridgell
ea188528fc
AP_InertialSensor: fixed build errors for LSM9DSO
2014-07-14 09:44:34 +10:00
Andrew Tridgell
fa2a1c495e
HAL_Linux: fixed I2C driver build errors
2014-07-14 09:44:34 +10:00
Andrew Tridgell
8c4565c741
HAL_Linux: fixed a build warning
2014-07-14 09:44:34 +10:00
Víctor Mayoral Vilches
2982fc029c
AP_InertialSensor_LSM9DS0: Fix _dump_registers method
2014-07-14 09:44:34 +10:00
Víctor Mayoral Vilches
feedc40f72
AP_InertialSensor_LSM9DS0: Move LSM9DS0_DEBUG flag to the header
2014-07-14 09:44:34 +10:00
Andrew Tridgell
297bb52ced
AP_InertialSensor: added MPU9250 header
2014-07-14 09:44:34 +10:00
Víctor Mayoral Vilches
f213f01983
AP_InertialSensor_LSM9DS0: Remove previous CS handling.
...
CS is now being automatically handled by the SPI Driver.
2014-07-14 09:44:33 +10:00
Andrew Tridgell
5b438471a7
HAL_Linux: added set_bus_speed() support to SPI driver
...
used by MPU6000 driver for setup registers
2014-07-14 09:44:33 +10:00
Andrew Tridgell
3ed4f82cb0
AP_InertialSensor: fixed DRDY include for Linux
2014-07-14 09:44:33 +10:00
Andrew Tridgell
0b64d834c3
HAL_Linux: MS5611 and MPU6000 should be MODE3
...
this doesn't solve the MPU6000 problem, but is correct
2014-07-14 09:44:33 +10:00
Andrew Tridgell
06b6d7aaf0
AP_InertialSensor: fixeup DRDY pin for different boards
2014-07-14 09:44:33 +10:00
Andrew Tridgell
1c89f54934
HAL_Linux: fixed SPI mode handling per-device
...
the mode must be set per-device, not per bus.
2014-07-14 09:44:33 +10:00
Víctor Mayoral Vilches
145c71c4af
HAL_Linux: Storage: Change storage folder in Linux to `/var/APM`
2014-07-14 09:44:33 +10:00
Víctor Mayoral Vilches
3379ddd51f
AP_InertialSensor_MPU6000: Add _register_write_check method.
...
This private method allows to check whether the value written and
the posterior value readed are the same.
Should be used only for debuging purposes, for release versions use
_register_write instead.
2014-07-14 09:44:33 +10:00
Víctor Mayoral Vilches
0fff8df491
AP_InertialSensor: fix LSM9DS0 test code
2014-07-14 09:32:30 +10:00
bugobliterator
ca163c292c
HAL_Linux: PRU: remove obsolete libraries/AP_HAL_Linux/PRU
2014-07-14 09:32:29 +10:00