Commit Graph
57 Commits
Author SHA1 Message Date
Lorenz Meier ae5527fac7 FMUv2: Save 3KB of RAM 2016-06-01 17:12:34 +02:00
David Sidrane b54ec99d22 Move the DMA allocation to a common code and provide an instrumentation interface 2016-06-01 08:35:34 +02:00
Lorenz Meier 7398164fcc Updated PX4 use / API of low level GPIO and other hardware-centric system facilities 2016-05-28 14:56:17 +02:00
David Sidrane 1b77ec7f82 Decouple board name 2016-05-21 10:48:15 +02:00
Daniel Agar 7b0078a20d bosch bmi160 driver (#4469) 2016-05-06 21:07:34 +02:00
Lorenz Meier e250d12184 Board drivers: Shorten perf names 2016-05-05 20:06:42 +02:00
Robert Dickenson 45a601b9c1 New driver for the LIS3MDL magnetometer. 2016-04-22 10:30:19 +02:00
Lorenz Meier ef69f74977 Do not use low level debug output on USB resume 2016-04-21 10:35:57 +02:00
Lorenz Meier ed134da8e0 FMUv2: Initialize PWM pins to low state 2016-02-18 19:01:44 +01:00
Lorenz Meier f2a6645cc9 FMUv2: Do not mess with GPIO5 during startup 2016-02-01 10:10:35 +01:00
David Sidrane 2949578832 Renamed pwm_timers to more appropriate io timers for use in pwm in/out and capture 2016-02-01 10:10:34 +01:00
Andrew Tridgell b8a60f2501 pwm: change default_value for all boards from 1000 to 0
the value '1000' is not really magic, and it was resulting in sending
a single 1ms pulse on all IO channels for a brief instant on
startup. With some servos this led to the control surfaces being at
extremes (and straining) on startup. It may also contribute to making
ESC calibration harder on multi-rotors

In the worst case it could cause a IC motor with reverse throttle to
go full throttle on startup

A logic analyser shows the problem very clearly. Changing the
default_value fields to 0 from 1000 fixes the issue and no pulses are
generated until an explicit value suitable for the airframe is
provided via one of the many methods PWM output values can be
generated

Conflicts:
	src/drivers/boards/px4fmu-v4/px4fmu_pwm_servo.c
	src/lib/ecl
2016-01-29 08:57:20 +01:00
Lorenz Meier e663b60c69 FMUv2: Add baro SPI bus define 2016-01-15 22:34:09 +01:00
Lorenz Meier 9a1301dd96 FMUv2: Generalize board config 2015-12-24 09:47:29 +01:00
Lorenz Meier 57ce3cfd01 FMUv2: Remove unneeded code 2015-11-29 17:03:19 +01:00
David Sidrane f3b7585a89 Wip FMUV3 2015-11-28 09:13:15 +01:00
Karl Schwabe 48c467f602 Remove CONFIG_ARCH_BOARD #ifdef dependencies from mtd
Since mtd already checks whether CONFIG_MTD_RAMTRON is set in
defconfig use this define to check whether to call ramtron_attach()
or at24xxx_attach() in the main function, instead of checking
CONFIG_ARCH_BOARD_PX4FMU-V1.

Also instead of using #ifdef CONFIG_ARCH_BOARD_AEROCORE to determine
whether to start mtd on spi 2 or 4, rather use a new board define
PX4_SPI_BUS_RAMTRON in the board_config.h file.
2015-11-13 16:30:57 +01:00
Lorenz Meier 50ce08b3ee FMUv2: Fix formatting 2015-10-19 13:24:44 +02:00
Lorenz Meier fa5071b3c5 Remove module.mk files to prevent confusion of adopters upgrading 2015-10-06 11:23:20 +02:00
James Goppert e55af00222 Removed weak attributes. 2015-09-13 14:40:27 -04:00
James Goppert 34eeee9fa9 Added defautl config for nuttx, nuttx now works over usb. 2015-09-10 13:57:54 -04:00
James Goppert 1d6b31d196 Switch to cmake build system. 2015-09-07 20:37:45 -04:00
ksschwabe e1572d3942 Moved ADC channel defines for battery voltage, battery current, and airspeed voltage to board_config.h. This allows better portabilit of code from one board to another, since it removes the hardcoded #ifdef sections from the Px4 sensors code. 2015-07-17 14:09:52 +02:00
ksschwabe b528e1f593 Added ADC channel definitions to the board_config.h file. This way new boards with different ADC channel sets can still use the Px4 adc.c driver. 2015-07-10 17:03:22 +02:00
Ban Siesta bd48ef0386 Merge remote-tracking branch 'px4/pr/2196' into lidar_tests 2015-05-24 09:40:03 +01:00
Max Shvetsov dbe58d6165 [pwm_input] reset feature added
publication to range_finder topic added
2015-05-19 12:40:42 +03:00
Mark Charlebois 190814bc97 Merge remote-tracking branch 'upstream/master' into linux
Signed-off-by: Mark Charlebois <charlebm@gmail.com>

Conflicts:
	src/drivers/rgbled/rgbled.cpp
	src/modules/commander/PreflightCheck.cpp
	src/modules/commander/airspeed_calibration.cpp
	src/modules/commander/calibration_routines.cpp
	src/modules/commander/gyro_calibration.cpp
	src/modules/commander/mag_calibration.cpp
	src/modules/mc_att_control/mc_att_control_main.cpp
2015-04-28 11:48:26 -07:00
Lorenz Meier 3c76006541 Board drivers: Only print if init fails 2015-04-27 09:07:52 +02:00
Mark Charlebois 9758112e31 Use px4_config.h instead of nuttx/config.h
Modified code to use OS independent header file for config settings.

Signed-off-by: Mark Charlebois <charlebm@gmail.com>
2015-04-20 10:55:41 -07:00
Daniel Agar c2abb0f82a fix code style if trivial one line difference 2015-03-19 23:49:36 +01:00
Andrew Tridgell 322392d853 fmuv2: setup for PWM input on timer4, channel 2 2015-02-23 19:52:38 +01:00
Lorenz Meier da977bb39b Added HMC chip select support 2014-12-26 19:55:58 +01:00
Lorenz Meier 3d2a5bae51 Board drivers: Optimize for size 2014-11-15 13:51:16 +01:00
Lorenz Meier 4bfa30bfd6 FMUv2: Add missing declarations. 2014-10-09 11:14:13 +02:00
Andrew Tridgell e4e152a85b FMUv2: added define for PX4_I2C_BUS_ONBOARD
needed for hmc5883 on main bus (for FMUv3)
2014-07-08 11:45:11 +02:00
Andrew Tridgell 644d4bb3dc FMUv2: added defines for FMUv3 sensors
this enables EXT0 to EXT3 on external SPI bus, and gives correct names
for FMUv3 board
2014-07-08 11:43:37 +02:00
Don Gagne 92adbe9216 Fix compiler warnings 2014-06-29 17:47:24 -07:00
Lorenz Meier 65344133a4 Count devices on SPI4 / EXT from 1 as for the other buses 2014-05-28 10:49:43 +02:00
Lorenz Meier 2bfde311db Fix SPI select on port 4 to use the right defines 2014-05-28 10:49:34 +02:00
Lorenz Meier 096a4673e9 Add SPI4 init bits for FMUv2 2014-05-28 10:49:20 +02: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 a0bb6674da Fix FMUs B/E led pin config 2014-01-16 19:03:14 +01:00
Lorenz Meier 33b84186e3 Patching up MPU6K pin disable defines 2014-01-14 08:58:30 +01:00
Lorenz Meier 4fcbe806ce Cleaned up init config and picked a safe bet on FRAM clock speed 2014-01-09 18:05:17 +01:00
Lorenz Meier 72b9d3a0b1 Added unique ID location 2014-01-07 21:42:17 +01:00
Lorenz Meier c11e36ad3d Board config sweep / cleanup. No further functionality-relevant points found 2014-01-02 17:42:01 +01:00
Andrew Tridgell 70e56a3d54 px4fmu2: enable SPI sensor DRDY pins 2013-12-10 11:03:43 +01:00
Lorenz Meier 881cf61553 Added IOCTL and command for sensor rail reset (does not yet re-initialize sensor drivers) 2013-12-04 07:57:23 +01:00
Andrew Tridgell bdb462379a FMUv2: don't config ADC pins that are now used for MPU6k CS and other uses 2013-11-30 20:21:51 +11:00
Andrew Tridgell 19853f87a2 FMUv2: change CS pins to 2MHz
this gives cleaner traces
2013-11-30 20:21:44 +11:00