Commit Graph

3285 Commits

Author SHA1 Message Date
David Sidrane 15460ade77 Fixed 'test' function causes register checking to find a false faults
Added hold off of testing for register faults from the duration
  of the test.
2017-04-14 09:58:14 +02:00
Julian Oes bb168287da gps: just use termios on QURT
QURT has added support for termios calls a while back that we can now
use.
2017-04-14 09:56:42 +02:00
ChristophTobler 12505177b6 add killswitch to snapdragon pwm driver 2017-04-14 00:16:50 +02:00
Mohammed Kabir 5fc20bea5d camera_trigger : add support for resetting trigger sequence 2017-04-13 20:21:40 +02:00
Mohammed Kabir 7fcb3b4f93 camera_trigger : add support for sending ACKs for trigger commands 2017-04-13 20:21:40 +02:00
Mohammed Kabir 2c0d1c013a camera_trigger : digicam control command should only shoot once 2017-04-13 20:21:40 +02:00
Mohammed Kabir e4896a5972 camera_trigger : remove unnecessary constrains for constant values 2017-04-13 20:21:40 +02:00
Mohammed Kabir ae35bf524d camera_trigger : enforce a minimum activation time in PWM modes 2017-04-13 20:21:40 +02:00
Mohammed Kabir 24f57b00a6 camera_trigger : consolidate camera power control and fix camelCase 2017-04-13 20:21:40 +02:00
Mohammed Kabir 164e200d8e camera_trigger : consolidate handling of pins 2017-04-13 20:21:40 +02:00
Mohammed Kabir 0a5ada9e02 stm32 : formatting 2017-04-13 20:21:40 +02:00
Mohammed Kabir f9862ec5a8 camera_trigger : add default mode for generic PWM triggering 2017-04-13 20:21:40 +02:00
Mohammed Kabir 9be7ad5805 camera_trigger : clean up iterators 2017-04-13 20:21:40 +02:00
Mohammed Kabir c97226b9da camera_trigger : add generic pwm interface for servo-like trigger systems (e.g IR trigger) 2017-04-13 20:21:40 +02:00
Mohammed Kabir c06d1a9dbe camera_trigger : rename Seagull MAP2 interface 2017-04-13 20:21:40 +02:00
Mohammed Kabir 3dee42b5ca stm32 : deconflict pwm_get_rate_group from all other timer modes 2017-04-13 20:21:40 +02:00
Mohammed Kabir 3b3e2b275e px4fmu : consolidate usage of output mode 2017-04-13 20:21:40 +02:00
Mohammed Kabir 6d3c16a35b camera_trigger : cleanup pwm interface 2017-04-13 20:21:40 +02:00
Mohammed Kabir ea890ecdd3 camera_trigger : clean up console output 2017-04-13 20:21:40 +02:00
Mohammed Kabir 704de4f88f stm32 : deinit trigger pins properly 2017-04-13 20:21:40 +02:00
Mohammed Kabir 82a1bd83bc stm32 : add new interface for PWM-based camera_trigger 2017-04-13 20:21:40 +02:00
Mohammed Kabir 2b838f5704 camera_trigger : rename relay to gpio 2017-04-13 20:21:40 +02:00
Daniel Agar 827725fbe0 cmake remove -Weffc++ (#7044)
- closes #7040
2017-04-13 13:30:22 -04:00
Kevin Lopez Alvarez cff20ee51e FMUv4pro : updates (#6983)
* FMUv4pro : allow power monitoring for hipower rail

* FMUv4pro : init temperare calibration EEPROM CS

* FMUv4pro : workaround for safety switch

* FMUv4pro : remove useless and conflicting defines

* FMUv4pro : disable internal pull-up for OC sensing

/FAULT won't achieve VinputLow with internal pull-up resistor so it must
be turned off for both /VDD_5V_PERIPH_OC and /VDD_5V_HIPOWER_OC.
Replaced by external pull-up.

* FMUv4pro : correct safety switch handling

RC02 has a hardware pull-down on this signal

* Revert "FMUv4pro : workaround for safety switch"

This reverts commit 9528ae29b68700fa7c6604c1ac2756c7dac2819c.
2017-04-07 06:14:04 -10:00
David Sidrane 8e217b0287 bugfix:drv_io_timer properly initialize non-contiguous timer channels
This fixes the issue with initializing channels 5,6 without
  channels 1-4.

  The code assumed all timers actions were in order to be
  initialized. This is not the case. This commit fixes that
  bad assumption by not stopping the configuration on the
  first action entry with a base == 0, but processing all
  entries with non-zero base.
2017-04-06 12:20:45 +02:00
Lucas De Marchi 260b8ea940 aerofc: remove USB
There's no USB, don't bring it in.
2017-04-06 12:18:30 +02:00
Lucas De Marchi 366ff1f3e9 ist8310: remove undef
Use PX4_ERROR instead.
2017-04-06 12:18:30 +02:00
Lucas De Marchi 04dac46eaf ist8310: be resilient to bad data coming from sensor
It doesn't hurt to test if the sensor is outputing data in the expected
range and it should help with elimination of spikes in case of errors.
2017-04-06 12:18:30 +02:00
Lucas De Marchi e40209ead9 ist8310: remove commented out and dead code
This code just makes it harder to grok the driver. When support for this
feature is available we can bring it back.
2017-04-06 12:18:30 +02:00
Lucas De Marchi ade6336fd0 ist8310: lower sample rate 2017-04-06 12:18:30 +02:00
Lucas De Marchi 3200b032c0 mpu9250: add support to MPU6500
MPU9250 is mostly an MPU6500 with a mag (AK8963) in the same package.
Support driving MPU6500 with the MPU9250 driver. The id of the driver
isn't set differently since this way it allows to force a recalibration.

Ideally MPU9250 driver could even not exist and the support for these
sensors be merged back in the MPU6000 that's more complete. This is an
intermediate step in that direction.
2017-04-06 12:18:30 +02:00
Lucas De Marchi 2805bffe52 ms5611: reduce macro scope
Move the addresses to .cpp where they are used. This should help
noticing discrepancies like the OSR we are using and the sampling
interval.
2017-04-06 12:18:30 +02:00
Lucas De Marchi 47d4c75214 ms5611: poll sensor at 100Hz 2017-04-06 12:18:30 +02:00
Lucas De Marchi c5108cafff aerofc: fix documentation about pins
- There's no I2C2, so remove it
  - Fix alignments everywhere in board_config.h
  - Clarify STM32 ADC (not available) and the ADC on the FGPA
  - Fix format on some comments
2017-04-06 12:18:30 +02:00
Lucas De Marchi 11d419161b mpu6500: switch driver to 16G range
All the other drivers use 16G, do the same for MPU6500.
2017-04-06 12:18:30 +02:00
Lucas De Marchi 16cd710251 aerofc: set tap esc mode 2017-04-06 12:18:30 +02:00
Lucas De Marchi 6b8c0f7db2 tap_esc: enable closed loop control if supported by board 2017-04-06 12:18:30 +02:00
Lucas De Marchi 173001e73a aerofc: add BOARD_ prefix to define and update description 2017-04-06 12:18:30 +02:00
Lucas De Marchi 41e51a7c85 tap_esc: change define to use BOARD_ prefix 2017-04-06 12:18:30 +02:00
Beat Küng 58f42c19ad mpu6000: use MPU6000_ACCEL_DEFAULT_RANGE_G define for accel range 2017-04-06 11:50:35 +02:00
Beat Küng 2506b4099f lsm303d: set accel range to 16g 2017-04-06 11:50:35 +02:00
Beat Küng 51add81f6b bmi160: set accel range to 16g 2017-04-06 11:50:35 +02:00
Beat Küng b5bb5cffc8 gps: check for allocation failure & avoid busy loop 2017-04-06 11:49:03 +02:00
Beat Küng ecb0dc2bc4 IridiumSBD: use strncpy instead of strcpy 2017-04-06 11:48:35 +02:00
Beat Küng 9be11c048a batt_smbus: fix string length, use correct delete[] for array 2017-04-06 11:48:35 +02:00
Beat Küng 4d62dd893b tap_esc: handle lockdown & manual_lockdown -> kill switch 2017-04-06 11:46:09 +02:00
Beat Küng 96c40d3ce9 tap_esc: improve cleanup & initialization code 2017-04-06 11:46:09 +02:00
Beat Küng bc8b36a986 gps: update driver submodule 2017-04-04 11:32:18 +02:00
Dennis Shtatnov 6b2f5970eb FMU get initial values of parameters 2017-04-03 01:41:58 +02:00
Lorenz Meier dbd065a307 Add PWM out sim trim settings 2017-04-02 21:52:18 +02:00