Commit Graph

7058 Commits

Author SHA1 Message Date
Andrew Tridgell
06e63d3167 HAL_PX4: use pthread_yield() in main loop
this lowers the latency of the main loop somewhat
2013-01-23 07:36:13 +11:00
Andrew Tridgell
6e8501603c HAL_PX4: avoid RCOutput ioctl unless values change
this lowers latency somewhat
2013-01-23 07:29:59 +11:00
Andrew Tridgell
89cb3fbd61 HAL_PX4: fixed blocking IO in UART driver 2013-01-22 21:52:21 +11:00
Andrew Tridgell
6ffa18fa61 HAL_PX4: rewrite UART driver to be much more efficient
this does the IO in the timer thread, and uses buffers in the main
task to avoid system call costs in the flight code.

The cost of PX4 read and write system calls is quite high - about 10
to 15 usec. We can't afford to pay that per byte
2013-01-22 21:22:01 +11:00
Andrew Tridgell
37be83994f SITL: allow motor multiplier to work on quad simulation 2013-01-22 21:22:01 +11:00
Andrew Tridgell
f0469a21f2 AP_Baro: fixed timestamp on baro for PX4
milliseconds not microseconds
2013-01-22 21:22:01 +11:00
Andrew Tridgell
80eaa52ed8 AP_Compass: use report timestamp on PX4 for accurate timing 2013-01-22 21:22:01 +11:00
rmackay9
ab1978ad50 Copter: Leonard Hall's inertial nav based loiter 2013-01-22 18:38:00 +09:00
rmackay9
6f1035debc InertialNav: added 300ms timeout after which error from gps heading will be set to zero 2013-01-22 18:37:54 +09:00
Jonathan Challinger
6565d83e73 InertialNav: Fixed signs, remove body-frame rotation, apply correction at 100hz. 2013-01-22 18:37:45 +09:00
Andrew Tridgell
546ed19ffc HAL_PX4: improved efficiency of serial writes
use buffer at a time writes when possible, and use O_NONBLOCKING to
avoid txspace()
2013-01-22 10:50:26 +11:00
Andrew Tridgell
18cfd29f2f HAL_PX4: added a read buffer to the UART driver
this lowers the average cost of reading bytes by a large amount, and
prevents the GPS driver from chewing lots of time.
2013-01-22 10:34:04 +11:00
Andrew Tridgell
f303554259 Copter: run serial0 at 57600 on PX4 2013-01-22 09:50:22 +11:00
Andrew Tridgell
0b03df4e69 Rover: run serial0 at 57600 on PX4 2013-01-22 09:50:12 +11:00
Andrew Tridgell
346f6cb903 build: fixed dependency generation for PX4 build 2013-01-22 09:49:57 +11:00
Andrew Tridgell
9efcdd7926 build: add CONFIG_APM=y to build
this allows us to disable some of the larger apps in the px4 build, to
save flash space
2013-01-22 07:49:12 +11:00
Andrew Tridgell
db0bd86317 HAL_PX4: name the eeprom file after the sketch
this makes it easier to switch between ArduPlane and ArduCopter
2013-01-21 22:04:17 +11:00
Andrew Tridgell
f60d657f72 AP_InertialSensor: added timer for accumulating samples for PX4
this makes the driver much more tolerant of sketch timing errors
2013-01-21 21:51:32 +11:00
Andrew Tridgell
3d0cb755d2 AP_InertialSensor: user a timer to drive data collection on PX4
this reduces the chance of missing a sample if the main sketch is a
bit slow
2013-01-21 19:44:01 +11:00
Andrew Tridgell
b9b3ef91a1 AP_Baro: added timer to PX4 driver
this gives us more samples when main sketch is reading slowly
2013-01-21 18:20:05 +11:00
Andrew Tridgell
1188c9e335 HAL_PX4: added Util instance
this fixes hal.util->vsnprintf_P()
2013-01-21 17:10:42 +11:00
Andrew Tridgell
9813468640 Plane: fixed mavlink fetch of 16 character parameter 2013-01-21 16:52:08 +11:00
Andrew Tridgell
ae5f46abc9 Copter: fixed mavlink fetch of 16 character parameter 2013-01-21 16:52:01 +11:00
Andrew Tridgell
6fa5837f71 Rover: fixed mavlink fetch of 16 character parameter 2013-01-21 16:51:50 +11:00
Andrew Tridgell
4d9a74d742 Plane: cleanup driver declaration
remove a lot of the #if nesting
2013-01-21 16:08:55 +11:00
Andrew Tridgell
52f560a4c2 HAL_PX4: enabled AnalogIn driver 2013-01-21 13:56:57 +11:00
Andrew Tridgell
4deee014d6 Plane: setup PX4 airspeed analog port 2013-01-21 13:56:28 +11:00
Andrew Tridgell
ed94292c25 HAL_PX4: start adc driver in rc.APM 2013-01-21 13:55:58 +11:00
Andrew Tridgell
e42cf918fd HAL_PX4: added AnalogIn driver
this allows airspeed to work on a PX4
2013-01-21 13:55:06 +11:00
Andrew Tridgell
39e28d48c2 HAL_PX4: switched scheduler to use a pthread
this allows the timer tasks to access file descriptors in the main APM
task, which makes writing PX4 device drivers much easier
2013-01-21 13:54:09 +11:00
Andrew Tridgell
4200593206 build: added EXTERNAL_SCRIPTS to PX4 build 2013-01-21 08:27:02 +11:00
Andrew Tridgell
ffb2924dd4 HAL_PX4: added APM startup script 2013-01-21 08:27:02 +11:00
Andrew Tridgell
6a5421a361 AP_Baro: ask for maximum poll rate for PX4 2013-01-21 08:27:02 +11:00
Robert Lefebvre
dde713aaa5 Arducopter: Backing out my changes for a new Loiter Repositioning mode. Leonard and Jonathan's work will trump this. 2013-01-20 21:32:00 +09:00
Andrew Tridgell
74f7b0f218 AP_Baro: added accumulate method to PX4 driver, and fixed scaling 2013-01-20 22:13:21 +11:00
Andrew Tridgell
96b87e3b44 Plane: fixed test baro printout 2013-01-20 22:13:21 +11:00
Andrew Tridgell
2e04d4827a Plane: run PX4 console at 57600 2013-01-20 22:13:21 +11:00
Andrew Tridgell
a341d59ed0 Copter: fixed test code warnings 2013-01-20 22:13:20 +11:00
Andrew Tridgell
33bcd50284 build: added configure_px4fmu to clean target 2013-01-20 22:13:20 +11:00
Andrew Tridgell
0655b1a925 HAL_PX4: fixed thread_running on failed startup 2013-01-20 22:13:20 +11:00
Andrew Tridgell
16d72ca160 AP_InertialSensor: update PX4 driver to use read() method 2013-01-20 22:13:20 +11:00
Andrew Tridgell
aff5b1559d Rover: added SERIAL0_BAUD parameter 2013-01-20 22:12:57 +11:00
Michael Oborne
74e3d64e62 AC Fix BATT_CURR_PIN number 2013-01-20 06:33:29 +08:00
Chris Gough
76ebcb9980 PX4 makefile: 'make configure_px4fmu' on px4 source before build
Pull Request #37
Ammended: squashed fixups down into a single commit

Signed-off-by: Pat Hickey <pat@moreproductive.org>
2013-01-19 11:13:40 -08:00
Andrew Tridgell
580abf1106 Copter: fixed PX4 mag orientation 2013-01-17 17:23:34 +11:00
Andrew Tridgell
583ec2b236 Rover: fixed PX4 mag orientation 2013-01-17 17:23:34 +11:00
Andrew Tridgell
f9cb9e08ae Plane: fixed orientation of PX4 compass 2013-01-17 17:23:34 +11:00
Andrew Tridgell
6119201307 AP_AHRS: ensure compass is non-NULL for set_board_orientation() 2013-01-17 17:23:34 +11:00
Randy Mackay
577bf865b3 Copter: update firmware version to 2.9-dev
The -dev extension indicates that we are post 2.9 release
2013-01-17 13:03:33 +09:00
Andrew Tridgell
7294d9ef35 AP_Menu: fixed build with older compilers
avoids relocation truncated to fit error
2013-01-17 07:26:26 +11:00