Commit Graph

3340 Commits

Author SHA1 Message Date
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
TickTock- 269800b48c renamed EASY to POSHOLD and SEATBELT to ALTHOLD 2014-04-27 14:06:00 -07:00
Lorenz Meier c74248c8b1 Merged mpc_rc with master 2014-04-27 15:45:33 +02:00
Julian Oes 03d87c2660 Merge remote-tracking branch 'px4/ekf_params' into navigator_cleanup_ekf_home_init
Conflicts:
	src/drivers/gps/gps.cpp
2014-04-27 11:41:34 +02:00
Julian Oes e882824ee1 eph and epv renaming, make this compile again 2014-04-26 23:31:15 +02:00
Lorenz Meier 18a932fe94 Better fake / simulation values 2014-04-26 18:35:22 +02:00
Lorenz Meier 5ad3ff95bf Merged master into ekf_params 2014-04-26 15:19:21 +02:00
Lorenz Meier eb520e7dcd Merge pull request #849 from PX4/compile_pedantic
Compile pedantic
2014-04-26 12:22:13 +02:00
Anton Babushkin 0c1de81785 Merge branch 'master' into mpc_rc 2014-04-25 21:39:59 +02:00
Anton Babushkin 302233a34f Merge branch 'master' into mpc_local_pos 2014-04-22 11:13:11 +02:00
Lorenz Meier 267b78f072 Fix of errors triggered by more pedantic compile options 2014-04-21 21:31:30 +02:00
Lorenz Meier 6306644028 airspeed: Let the status check routine handle the initial state 2014-04-20 21:45:42 +02:00
Lorenz Meier 709d104de4 airspeed driver: Do not spam the console on error, report the system change only once 2014-04-20 21:43:18 +02:00
Lorenz Meier 071f9c648b HMC5883: Do not spam the console on error and make everything worse. 2014-04-20 21:42:10 +02:00
Lorenz Meier 2ea32b315f Merged master 2014-04-20 02:04:05 +02:00
eneadev e2989bc091 Update drv_hrt.c
TIM3 was not working properly with a custom application and I got it work changing TIM3 HRT_TIMER_POWER_BIT from RCC_APB2ENR_TIM3EN to RCC_APB1ENR_TIM3EN because on datasheet TIM3 is on APB1, I think that you should check also the others
2014-04-19 13:08:29 +02:00
TickTock- 967e9b6878 Fixed blinkm state indication (was not properly reporting flight mode). Added flashing orange safety disarmed state indicator and solid blue failsafe indicator. Changed safety on state to solid cyan. Increased LiPo cellcount support to 6. 2014-04-16 21:41:00 -07:00
Lorenz Meier 282f40d162 Hotfix to PX4IO uploader. There are no known mishaps due to it, but very clearly the IO firmware flashing process should be verified after an upload. 2014-04-15 19:25:07 +02:00