Commit Graph

8035 Commits

Author SHA1 Message Date
Andrew Tridgell 48cfdac6f0 AP_ADC_AnalogSource: added voltage_average_ratiometric() 2013-05-13 15:13:59 +10:00
Andrew Tridgell cec08be9cb AP_Rangefinder: use ratiometric analog input for analog sonar 2013-05-13 15:13:43 +10:00
Andrew Tridgell dfb98490f4 AP_Airspeed: use rationmetric analog input for airspeed sensor 2013-05-13 15:13:19 +10:00
Andrew Tridgell 589b8cdb58 AP_HAL: added voltage_average_ratiometric() call to AnalogIn
this is for ratiometric sensors such as the 3DR airspeed sensor and
the Maxbotix analog sonar
2013-05-13 15:12:43 +10:00
Andrew Tridgell dd0630dc16 PX4: fixed handling of nostart option 2013-05-13 11:27:55 +10:00
Andrew Tridgell a17b85c661 AP_AHRS: use vectors for ground vector complimentary filter 2013-05-13 11:27:55 +10:00
Paul Riseborough 9f309a2aa6 AP_L1_Control: Remove potential nan errors
If WP A and B were the same or ground speed was exactly zero, then the
previous code would produce a nan output.  Protection against these
two cases has been added.

If WP A and B are equal, we track directly to the target waypoint
2013-05-13 11:27:51 +10:00
Randy Mackay 55235630b6 Copter: bug fix for slow loiter repositioning 2013-05-12 14:51:02 +09:00
Andrew Tridgell 01da926f04 PX4: don't start px4io twice 2013-05-11 21:07:27 +10:00
Andrew Tridgell 9bdbd6bfbd MAVLink: update to latest common.xml from upstream 2013-05-11 21:07:27 +10:00
Randy Mackay 429f900460 Copter: bug fix for RTL bearing
Also smooth RTL's initial climb stage by projecting stopping point
2013-05-11 16:21:25 +09:00
Randy Mackay 61288fcb90 WPNav: make get_stopping_point method public 2013-05-11 16:05:42 +09:00
Randy Mackay 80bd458f29 Compass: update parameter description
We do not want people modifying the COMPASS_MOTCT manually
2013-05-11 14:50:36 +09:00
Randy Mackay ad656c7e8a Copter: allow lat/lon to be specified for land 2013-05-10 22:37:15 +09:00
Randy Mackay b3bca271d4 Copter: rename verify_must to verify_nav_command
Perhaps easier to understand if we use the "nav" and "conditional"
command labels
2013-05-10 12:06:29 +09:00
Randy Mackay b65d714675 Copter: set yaw-mode in do_loiter mission command 2013-05-10 10:51:46 +09:00
Randy Mackay 98732ae4e8 Copter: remove redundant init of controllers when auto is started
individual do_* commands are responsible for setting roll-pitch, yaw and
throttle modes.  Removing this redundant setting of the controllers
removes the short period (10th second max) where loiter and waypoint
controller's desired roll and pitch were used even before the
controllers have been run once.
2013-05-10 10:51:13 +09:00
Randy Mackay 870b9b0fbb Copter: only run nav controllers when auto-armed
This stops run-up in target position and nav controller I terms ahead of
throttle being raised
2013-05-10 10:46:17 +09:00
Andrew Tridgell 5296e858b6 build: fixed build_all_px4.sh for new PX4 build 2013-05-10 09:40:29 +10:00
Andrew Tridgell ad9d3360da PX4: fixed px4io build in build_binaries.sh 2013-05-10 06:43:29 +10:00
Andrew Tridgell 1248a49284 PX4: need led driver in build for latest upstream changes 2013-05-10 06:16:54 +10:00
Andrew Tridgell 3a66d304af PX4: changed EXTRAFLAGS to EXTRADEFINES for PX4 2013-05-10 06:16:54 +10:00
Andrew Tridgell 0acceb04ff build: added px4-archives target 2013-05-10 06:16:54 +10:00
Andrew Tridgell 06cf9def98 PX4: auto-build the archives if needed 2013-05-10 06:16:54 +10:00
Andrew Tridgell 2b8ea4db43 build: fixed build_binaries.sh for new PX4 build 2013-05-10 06:16:54 +10:00
Andrew Tridgell 73250efc01 build: added support for the new PX4 build system 2013-05-10 06:16:54 +10:00
Andrew Tridgell 9b752f5d2a PX4: added in remaining example mixers 2013-05-10 06:16:54 +10:00
Andrew Tridgell 947297f0cd PX4: added base ROMFS files from upstream 2013-05-10 06:16:54 +10:00
Andrew Tridgell 172faeea26 HAL_PX4: moved rc.APM to new ROMFS directory 2013-05-10 06:16:54 +10:00
Andrew Tridgell b3e21c6add HAL_PX4: include visibility.h
needed for new nuttx structure
2013-05-10 06:16:53 +10:00
Randy Mackay 1b52ee211a Copter: bug fix for RTL yaw control
Nose was only pointing home if your initial altitude was above the
RTL_ALT
2013-05-09 21:44:46 +09:00
Andrew Tridgell 220e7b019c SITL: use PACKED attribute in fdm structure 2013-05-09 20:10:31 +10:00
Andrew Tridgell 416fef73a8 AP_Param: use PACKED attribute in examples 2013-05-09 20:10:31 +10:00
Andrew Tridgell ed918dc6bc SITL: use PACKED attribute instead of pragma pack 2013-05-09 20:10:31 +10:00
Andrew Tridgell 06b6f4b04e AP_GPS: use PACKED attribute instead of pragma pack 2013-05-09 20:10:31 +10:00
Andrew Tridgell 62b9a580e8 AP_Common: make PACKED depend on architecture
this will remove lots of warnings when building with arduino
2013-05-09 20:10:31 +10:00
Randy Mackay ed5ddfd9db WPNav: initialise desired roll, pitch
bug-fix to resolve 1/10th second twitch when loiter or waypoint
controller are first engaged
2013-05-09 18:32:02 +09:00
Randy Mackay d0fb332e9f Copter: init_rc_out in cli's compassmot setup
Bug fix to allow cli's compass motor compensation to be run from the
mission planner's terminal window
2013-05-09 13:30:08 +09:00
Andrew Tridgell 6269b8029c VARTest: fixed build 2013-05-09 09:29:27 +10:00
Andrew Tridgell b940c4b28e Plane: use library gcs_severity 2013-05-09 09:28:57 +10:00
Andrew Tridgell 95120ed43d Copter: use library gcs_severity 2013-05-09 09:28:49 +10:00
Andrew Tridgell 3438316288 Rover: use library gcs_severity 2013-05-09 09:28:42 +10:00
Andrew Tridgell fefbeacf86 AP_InertialSensor: use SEVERITY_USER_RESPONSE for accel cal messages
thanks to the suggestion from Kevin
2013-05-09 09:28:25 +10:00
Andrew Tridgell 11bf6f40f7 GCS_MAVLink: moved gcs_severity to library header 2013-05-09 09:27:58 +10:00
Andrew Tridgell 9a87b3f3c1 AP_Compass: use const on more functions and remove old calculate_heading()
the calculate_heading() based on roll/pitch is not needed anywhere
2013-05-09 09:24:06 +10:00
Andrew Tridgell f78de63a09 AP_Compass: more efficient calculate_heading() implementation
Thanks to piersh for this improvement. See

b5f0635455 (commitcomment-3171806)
2013-05-09 09:24:06 +10:00
Randy Mackay 1b2d8636ca Copter: set wp to "fast" if they have no delay 2013-05-09 00:18:36 +09:00
Randy Mackay 9f735c8d03 WPNav: add fast waypoints flag
Waypoint is considered "reached" when the intermediate point reaches the
destination
2013-05-09 00:18:02 +09:00
Randy Mackay 4704b729c2 WPNav: reduce max acceleration to 2.5m/s
Also includes bug fix to ramp up of speed of intermediate point
2013-05-08 23:20:29 +09:00
Andrew Tridgell 635b3fabda Plane: fixed APM1-1280 build 2013-05-08 21:44:45 +10:00