David Sidrane
7322da3c19
fmu:Fixes cause of 0 values reported in pwm info
...
The root cause was the replacment of a local variable num_outputs
with the class member _num_outputs.
The effect of a "bad mix" is to return 0 - this clampped the
_num_outputs to 0.
Prior to commit 3b3e2b2 px4fmu: "consolidate usage of output mode"
this would not have been an issue because the local num_outputs
was reset every cycle"
As a secondary issue. We sould call up_pwm_servo_init() to
establish the PWM channel allocation early. This then allows
FMU::set_pwm_rate to properly check for improper rate request
not isolate to one group (timer).
2017-04-21 08:32:33 +02:00
David Sidrane
b885fd97f6
oneshot:trigger exit early in no chan in oneshot
2017-04-21 08:32:33 +02:00
Andrew C. Smith
d21b6655d2
Add the Gumstix AeroCore2 to the build system.
2017-04-20 12:24:27 -10:00
Beat Küng
643a3ba2a7
board_config: clean up board_config.h on POSIX targets
2017-04-20 10:01:51 +02:00
Beat Küng
e129969ea2
tap_pwr: fix definition of board_shutdown()
2017-04-20 10:01:51 +02:00
Beat Küng
0165633bf3
board_config: remove px4_board_pwr, use px4_shutdown_request instead
...
px4_board_pwr has become obsolete with the addition of board_shutdown
2017-04-20 10:01:51 +02:00
Beat Küng
25dfa9cda6
posix board_config.h: add include board_common.h
...
To get the new API definitions
2017-04-20 10:01:51 +02:00
David Sidrane
211837c73b
tap:Use board power button notification API
...
This adds the board power button notification registration
and shutdown API points.
2017-04-20 10:01:51 +02:00
David Sidrane
109db75881
Added board power button notification API
...
Defined types and interface to support a notification call back
on power button events.
2017-04-20 10:01:51 +02:00
Julian Oes
349a468f81
vmount: add to startup script, disable by default
...
vmount is now added to the startup script, however, it will only start
if the param MNT_MODE_IN is set to anything but -1.
2017-04-19 16:59:48 +02:00
Beat Küng
ed577f705d
vmount: set output to Neutral for VEHICLE_ROI_NONE
2017-04-19 16:59:48 +02:00
Beat Küng
c20ff1737c
vmount: poll only on active input
...
To reduce latency of the output update when mode is set to auto.
2017-04-19 16:59:48 +02:00
Beat Küng
9ed21afd59
vmount: simplify initialization
2017-04-19 16:59:48 +02:00
Beat Küng
021b808f6c
vmount: fix null-pointer access by iterating only over the used objects
2017-04-19 16:59:48 +02:00
Julian Oes
7c0c97ce03
vmount: added commented output printf
2017-04-19 16:59:48 +02:00
Julian Oes
f4b1623550
vmount: wrong pointer was passed to update
2017-04-19 16:59:48 +02:00
Julian Oes
87d5b41b84
vmount: fixed wrong index
2017-04-19 16:59:48 +02:00
Julian Oes
ec36bdcd10
vmount: always initialize
...
MNT_MODE_IN 0 now means to automatically check all inputs.
2017-04-19 16:59:48 +02:00
Julian Oes
e3d1b7fab4
vmount: _first_time flag wasn't ever reset
2017-04-19 16:59:48 +02:00
Julian Oes
07de797e8d
vmount: correctly set control_data output arg
...
The control_data pointer wasn't correctly set for the cases where there
actually was a change/command.
2017-04-19 16:59:48 +02:00
Julian Oes
e1246063e9
vmount: another try to get abs and types right
2017-04-19 16:59:48 +02:00
Julian Oes
702922e677
vmount: _get_aux_value needs to be re-used
2017-04-19 16:59:48 +02:00
Julian Oes
c33e46167c
vmount: type-promotion fix clang-tidy
2017-04-19 16:59:48 +02:00
Julian Oes
a9523155cf
vmount: small formatting change
2017-04-19 16:59:48 +02:00
Julian Oes
caf69b290a
vmount: refactor to auto-select between all inputs
...
It is not convenient having to change a parameter to change a gimbal
from RC input to mavlink input mode or back. This refactor changes the
behaviour to use whatever is available, RC or mavlink commands.
Once a mavlink command is followed, control can be taken back using RC,
however, this requires a clear stick change.
2017-04-19 16:59:48 +02:00
David Sidrane
ff3994da1b
mpu6500 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
David Sidrane
c3c5be3881
mpu9250 Fixed 'test' function causes register checking to find a false faults
...
Diisabled interrupts in reset to make command to reset atomic.
Added hold off of testing for register faults from the duration
of the test.
2017-04-14 09:58:14 +02:00
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