Eric Wang
2b714e079b
driver: vdev_posix, increase PX4_MAX_FD ( #7905 )
...
- avoid "exceeded maximum number of file descriptors" when "make posix gazebo_typhoon_h480"
- closes #7892
2017-09-03 11:55:44 -04:00
Daniel Agar
962cdcf837
ulanding delete VDev usage ( #7893 )
2017-09-01 13:01:22 -04:00
Daniel Agar
fd8a5644e8
ets_airspeed posix port
2017-08-31 09:27:36 +02:00
Daniel Agar
15407afc6e
ms4525_airspeed update test helpers
2017-08-31 09:27:36 +02:00
Daniel Agar
641a90708c
sdp3x_airspeed posix port
2017-08-31 09:27:36 +02:00
Daniel Agar
9cd25d604b
ms5525_airspeed posix port
2017-08-31 09:27:36 +02:00
Daniel Agar
676946c324
eagle add I2C defines
2017-08-31 09:27:36 +02:00
Daniel Agar
3a5ae7d1bb
bebop add PX4 I2C defines
2017-08-31 09:27:36 +02:00
Daniel Agar
07619cf723
Make NuttX drivers cross platform (VDev -> CDev)
2017-08-31 09:27:36 +02:00
jgs2185
8a1d8f2162
Ulanding: fix formatting issues
2017-08-30 14:53:25 +01:00
jgs2185
f59530ec1f
Ulanding: remove unnecessary posix/nuttx platform differences
2017-08-30 14:53:25 +01:00
jgs2185
085540d5de
Ulanding: clarify changes made due to ulanding versions
2017-08-30 14:53:25 +01:00
jgs2185
d23fb63c96
Ulanding: remove redundant lines in Radar constructor
2017-08-30 14:53:25 +01:00
jgs2185
e3ff2df7a0
Ulanding: add POSIX support for Aerotenna ulanding radar
2017-08-30 14:53:25 +01:00
David Sidrane
cde3545560
px4fmu-v5:Configure PWM LED polarity, and swapping
...
Test HW has R and G LED swapped and drives the UI LED's active
high. The changes support all the configuratons of FMUv5 on
RC00 and RC01 HW for PWM status and UI LEDs.
2017-08-26 03:44:59 -10:00
David Sidrane
3e46b5d02f
px4fmu-v5:Extend PWM LED definitions to suport polarity, drive and swaps
...
Added palarity mask to support active low drive on per channel
bassis.
Added open drain drive type when the enables are active low to
ensure the LED are off when supplied form 5 volts.
For active Push Pull is used. Active low drive is recomended.
Added support for test HW that had the R and G LED signals
swapped.
2017-08-26 03:44:59 -10:00
David Sidrane
2ef472d796
drv_led_pwm:Use hardware to support active hight or active low LED
...
Use the timer's polarity control bits to enable active low
drive as apposed to inverting the counts.
2017-08-26 03:44:59 -10:00
David Sidrane
8dd05dadfd
rgbled_pwm:Expand support for FMUv5 on board status and UI LEDs
...
FMUv5 can have 2 RGB LED's
2017-08-26 03:44:59 -10:00
David Sidrane
9c68783c54
px4fmu-v5:Reorder I2C busses int 1-4 order
...
This alows the -b option map 1-to-1 with the 12C bus numbers
2017-08-26 03:44:59 -10:00
David Sidrane
8d21764dec
ist8310:Use px4_getops
2017-08-26 03:44:59 -10:00
David Sidrane
24522ca885
ist8310:Expand suported busses to External I2C 1-4
2017-08-26 03:44:59 -10:00
David Sidrane
50e83ac33e
rgbled:Allow I2C and PWM rgb led drivers to be used on the same board
...
Added RGBLED_PWM0_DEVICE_PATH path
Renamed the main of the PWM rgbled driver to create a seperate command
2017-08-26 03:44:59 -10:00
Beat Küng
5f5dca4804
vdev: replace static list with an std::map
...
VDev::getDev() is used in px4_access, which is used in orb_exists. And if
the topic does not exist, it iterates over all 500 indexes, which is slow.
It was slow even if the topic existed, the map reduces runtime from linear
to logarithmic (there are around 80 items in the container).
This is only used on posix.
2017-08-23 08:10:16 +02:00
Beat Küng
575e7be540
fix linux_pwm_out: return correct value for PCA9685::init()
2017-08-23 08:10:16 +02:00
Beat Küng
7a409cf843
vdev: remove unneeded devList & topicList methods
2017-08-23 08:10:16 +02:00
Daniel Agar
a02caff1bc
unit_test inline implementation and remove module build
2017-08-23 08:06:55 +02:00
Daniel Agar
f282f50cff
vmount run at default priority
2017-08-23 08:06:20 +02:00
Daniel Agar
b70b8288b9
px4_includes cleanup incomplete list
2017-08-20 20:42:42 +02:00
Julien Lecoeur
41cc679258
PX4Flow: allow restart directly after stop
2017-08-20 19:31:24 +02:00
Julien Lecoeur
7a3a9a75d5
Add command line options to PX4Flow app for I2C address and sampling rate
2017-08-20 19:31:24 +02:00
crossa
17ba5dd04a
1.Add sbus driver for linux . This driver can be used to read the
...
inverted S.bus signal and fetch the data of each channel and publish it
2. Fix the bug of linux_pwm_out, when the protocol is pca9685,
after the init method is executed,the method of determining the return
value of init method is incorrect,this will cause the driver to fail
3. Add linux_sbus driver to other posix prefixes cmake files
2017-08-20 16:51:04 +01:00
Daniel Agar
b2a81ed35b
multi diff pres sensor publication and logging
2017-08-19 22:49:29 +02:00
Daniel Agar
8db2883d84
delete unused tones
2017-08-19 09:50:41 +02:00
José Roberto de Souza
4462869432
Add support to new fields in command_ack
2017-08-19 09:04:52 +02:00
José Roberto de Souza
c200d0e9a4
Keep initialization of outgoing vehicle_command_s consistent
...
All others are initialized this way.
2017-08-19 09:04:52 +02:00
Beat Küng
236021cc01
vmount mavlink input: fix polling for position_setpoint_triplet
...
The code was violating the rule 'every successfull poll must be followed
by an orb_copy'.
The result was a busy loop.
2017-08-17 07:47:48 +02:00
David Sidrane
67e470b0e1
px4fmu-v5:Use arch/polarity agnostic Power control macros
...
Use the board supplied Power control macros, in the
the board_peripheral_reset.
This abstacts the polarity from the code. Therefore changes
in signal sense can be made, just in the board config.
2017-08-12 08:02:41 +02:00
David Sidrane
5506588a31
px4fmu-v5:Add conditional support for Test RC00 HW
...
RC00 had an active high VDD_5V_PERIPH_EN
PC01 has an active low VDD_5V_PERIPH_EN
RC00 Test hardware did not use an LTC4417
While RC00 HW is still in circulation you can build with
PX4_FMUV5_RC00 defined and BOARD_HAS_LTC4417 undefined.
The default is PX4_FMUV5_RC01 and BOARD_HAS_LTC4417 defined.
2017-08-12 08:02:41 +02:00
Nicolas de Palezieux
55a2930cdb
vmount: reduce stack size to 1900 as recommended by @bkueng (maximum used memory observed: 1552)
2017-08-11 14:37:48 +02:00
Nicolas de Palezieux
b702daf40e
vmount: virtual destructor
2017-08-11 14:37:48 +02:00
Nicolas de Palezieux
c3faf587cc
vmount: make the parameter descriptions a little nicer
2017-08-11 14:37:48 +02:00
Nicolas de Palezieux
281ee5e5af
vmount: increase stack size
2017-08-11 14:37:48 +02:00
Nicolas de Palezieux
b8d389ca4e
vmount: properly unadvertise uorb topics when stopping or re-configuring vmount. Othwerise subsequent advertise calls may fail (only ever witnessed for _mount_orientation_pub)
2017-08-11 14:37:48 +02:00
Nicolas de Palezieux
cbe3627b8c
vmount: set more sensible default parameters for the mount system and component IDs
2017-08-11 14:37:48 +02:00
Nicolas de Palezieux
89aeea7e8e
vmount: publish mount angle commands in proper order and units
2017-08-11 14:37:48 +02:00
Beat Küng
4eb0ffc554
vmount: update control_data if already_active is true
...
control_data needs to be able to be set to nullptr in case if the input
is already active. Otherwise the output will think there's always new
requests and reset it's state.
2017-08-11 14:37:48 +02:00
Beat Küng
73d23742ea
vmount: rate-limit the update of the outputs
...
This avoids a busy-loop if the input is listening for vehicle commands and
the output publishes vehicle commands.
2017-08-11 14:37:48 +02:00
Beat Küng
923cdbcbfb
vmount mavlink input: process commands only if the target matches our sys & comp id
2017-08-11 14:37:48 +02:00
Beat Küng
fd05c09447
vmount: fix param types, use int32_t
2017-08-11 14:37:48 +02:00
Daniel Agar
353f637e92
move SYS_FMU_TASK to px4fmu
2017-08-09 22:28:05 +02:00