Commit Graph
998 Commits
Author SHA1 Message Date
Lorenz Meier a72015c260 Merge pull request #965 from PX4/stack_fixes
Stack fixes
2014-05-16 03:14:42 -07:00
Lorenz Meier 8630d82ea2 gps driver: Use correct spawn command, use a smaller start tool size 2014-05-16 10:46:10 +02:00
Lorenz Meier f66cd1a814 frsky telem: reduce stack, fix missing header 2014-05-16 10:44:44 +02:00
Lorenz Meier 4fe0027e7a px4io driver: Only try to upload if we have a non-zero failsafe throttle value 2014-05-16 09:51:23 +02:00
Lorenz Meier f892a7278a Merge pull request #956 from PX4/task_spawn_cmd_io
px4io driver: Use modern-days syntax to start task
2014-05-15 22:17:03 -07:00
Lorenz Meier ba51ab2545 Merge branch 'ekf_params' of github.com:PX4/Firmware 2014-05-15 13:14:25 +02:00
Lorenz Meier 97e6090700 Merge pull request #937 from gumstix/aerocore
Aerocore
2014-05-15 01:31:24 -07:00
Lorenz Meier 899998e58f px4io driver: Use modern-days syntax to start task 2014-05-15 10:28:48 +02:00
Lorenz Meier 19d798addc px4io driver: init stack only twice as big as really needed and not four times as big 2014-05-14 21:52:25 +02:00
Lorenz Meier b216cc3cac px4fmu: Give the FMU driver only the stack for init it needs 2014-05-14 21:31:29 +02:00
Ash Charles cbc559b6d6 [l3gd20] Make gyro orientation board-overridable
As discussed [1], provide a default SENSOR_BOARD_ROTATION
(270 degrees as this seems most common) and let boards override it
as necessary.

[1] https://github.com/gumstix/m4-firmware/commit/7d0850a710b3ac9e9e165beb36389577d0e5adcb#commitcomment-6315550

Signed-off-by: Ash Charles <ashcharles@gmail.com>
2014-05-14 09:19:30 -07:00
Lorenz Meier 332e08b44a px4io driver: Deallocate perf counters in destructor properly 2014-05-14 14:00:31 +02:00
Lorenz Meier c2f825647e px4io driver: Small fix 2014-05-14 13:06:20 +02:00
Lorenz Meier a62ac72b2e px4io: Hotfix for IO driver, do not rely on the reported channel count to limit array lengths 2014-05-14 12:48:54 +02:00
Lorenz Meier 8deb1c9160 Read out the RC status at the same transfer as the channels to ensure we got synchronized data 2014-05-14 08:00:41 +02:00
Ash Charles 2d29c5bd72 [aerocore] Remove commented code for GPIO2
GPIO2 is currently used for the tone alarm, not an arbitrary GPIO.

Signed-off-by: Ash Charles <ashcharles@gmail.com>
2014-05-13 14:06:59 -07:00
Ash Charles 7d0850a710 [l3gd20] Style fixes for l3g4200d integration
As requested here [1], this fixes some of the style errors
introduced with the addition of l3g4200d support to the l3gd20
driver.  Gyro orientation is set conditionally for the aerocore
board.

[1] https://github.com/PX4/Firmware/pull/937

Signed-off-by: Ash Charles <ashcharles@gmail.com>
2014-05-13 14:00:44 -07:00
Ash Charles 9db966e058 [gps] Conditionally set default GPS port
AeroCore uses ttyS0 not ttyS3 as the serial port connected to the GPS.
Now, a board can set GPS_DEFAULT_UART_PORT to override the default setting
in a board-specific fashion.

Signed-off-by: Ash Charles <ashcharles@gmail.com>
2014-05-13 13:47:40 -07:00
Ash Charles 3b72e31e83 [l3gd20] Add support for L3G4200D chip
The L3G4200D chip is very similar to the L3GD20[H] parts and can use
the same driver with minor adjustments.  There are four differences:
 * WHO_AM_I register is 0xD3 (not 0xD4 or 0xD7):
   - added an extra case to the driver probe
 * Sampling rates are marginally different:
   - setting sampling rate now depends on the detected chip
 * I2C address range is different:
   - no changes as the driver doesn't support i2c access
 * the L3G4200D has a self-test function:
   - no changes---chose not to implement feature in driver

Signed-off-by: Ash Charles <ashcharles@gmail.com>
2014-05-13 10:01:17 -07:00
Ash Charles e5508a1aa0 Add Gumstix AeroCore device
Based on the work of Andrew Smith [1], add board configuration and device
drivers to support the Gumstix AeroCore (previously Aerodroid) board [2]. The
AeroCore is an autopilot board based on a STM32F427 similar to the FMUv2.

[1] https://github.com/smithandrewc/Firmware
[2] https://store.gumstix.com/index.php/products/585/

Signed-off-by: Ash Charles <ashcharles@gmail.com>
2014-05-13 09:41:41 -07:00
Lorenz Meier f10395e05a HoTT driver: Add timestamp, rename function-level variable from _esc to esc to match conventions 2014-05-13 08:38:07 +02:00
Lorenz Meier 37970c5828 hrt driver: Make a debug data array compiling condiditional on PPM debug, we are never accessing it in normal operation 2014-05-13 08:06:33 +02:00
Lorenz Meier be6b9a1b36 hmc5883: Change static topic publication to the class member it should be, initialize collect phase (linter find) 2014-05-13 08:05:36 +02:00
Lorenz Meier 227d52b02c blinkm: Remove the barrage of static variables in mainloop, eating up RAM for everybody 2014-05-13 08:04:53 +02:00
Lorenz Meier e09c0dd8b9 Reduce RAM footprint of HoTT driver, fix publication to contain ESC data 2014-05-12 22:57:07 +02:00
Lorenz Meier 29ffb3bad3 mkblctrl: Moved motor data struct into class 2014-05-12 22:11:28 +02:00
Lorenz Meier dc19f16dee Merge branch 'master' of github.com:PX4/Firmware into ekf_params 2014-05-11 13:53:58 +02:00
Anton Babushkin 88b18bbad1 ALTCTRL/POSCTRL renamed to ALTCTL/POSCTL 2014-05-11 13:35:05 +02:00
Lorenz Meier 3e3a64f0ed Merge branch 'master' of github.com:PX4/Firmware into ekf_params 2014-05-09 21:36:43 +02:00
Lorenz Meier df7d595999 Remove noreturn attribute from all drivers that actually can return 2014-05-09 09:19:44 +02:00
Lorenz Meier e18bdfdf65 Merge pull request #858 from TickTock-/rc_merged
Rc merged
2014-05-08 23:21:22 -07:00
Lorenz Meier fc54cc2d1f Merge pull request #839 from eneadev/patch-1
Update drv_hrt.c
2014-05-08 21:45:05 -07:00
Lorenz Meier 45be38c333 Removing an unwanted usleep on poll errors 2014-05-08 14:24:10 +02:00
Julian Oes 26f5e550c4 Merge remote-tracking branch 'px4/ekf_params' into navigator_cleanup_ekf_params
Conflicts:
	src/modules/ekf_att_pos_estimator/fw_att_pos_estimator_main.cpp
2014-05-07 21:11:21 +02:00
Lorenz Meier 6a6feaf96c Merged master 2014-05-07 14:14:31 +02:00
Lorenz Meier 2569338919 Merge pull request #891 from Kynos/master
Reset MS5611 baro sensor after an error
2014-05-07 04:18:50 -07:00
Lorenz Meier ab2a85a153 Merge pull request #782 from PX4/fmu_mixer
px4fmu: support all actuator control groups
2014-05-07 04:17:27 -07:00
Lorenz Meier 1d6b9fae03 Fix in-air restarts, protect against an external MAVLink sender exploiting the restart mechanism 2014-05-06 14:57:06 +02:00
Lorenz Meier 5199dea2b3 Merge pull request #876 from PX4/autodeclination
Added automatic declination lookup
2014-05-03 03:41:30 -07:00
Kynos 2de01964e2 Reset MS5611 baro sensor after an error
Reset MS5611 baro sensor after an error in order to avoid endless error
loops
2014-05-02 22:00:34 +02:00
Lorenz Meier 81525f6d8a Merge branch 'master' of github.com:PX4/Firmware into ekf_params 2014-04-30 08:08:14 +02:00
Lorenz Meier af1af1e22d Port expander driver first hacky version 2014-04-29 18:38:30 +02:00
Lorenz Meier 2ee02e5e4b Merge pull request #874 from jean-m-cyr/master
Proper data manager restart handling
2014-04-29 07:53:30 +02:00
TickTock- 31089a290b Replaces poshold/althold with posctrl/altctrl 2014-04-28 21:47:45 -07:00
Lorenz Meier 86d9fb5636 Merge branch 'autodeclination' into ekf_params 2014-04-28 22:39:02 +02:00
Lorenz Meier 002ff7da7e Add missing header in HRT 2014-04-28 19:21:37 +02:00
Lorenz Meier 2c37ec16dc Merge branch 'autodeclination' into ekf_params 2014-04-28 17:48:27 +02:00
Andrew Tridgell ab1939c6a3 pwm: added PWM_SERVO_SET_FORCE_SAFETY_OFF ioctl
this allows the safety switch on px4io to be forced off
2014-04-28 11:45:45 +02:00
Randy Mackay 9f2c4b7513 tone_alarm: add PARACHUTE_RELEASE_TUNE 2014-04-28 11:43:25 +02:00
Jean Cyr ab257ebcce Proper data manager restart handling
Introduce SYS_RESTART_TYPE parameter having one of 3 values: boot
restart, inflight restart, or unknown restart, and defaulting to unknown
restart.

px4io.cpp sets this parameter according to the type of restart detected.

dataman.c retrieves this parameter and clears data entries according to
their persistence level. Does nothing if unknown restart.
2014-04-28 00:52:19 -04:00