Lucas De Marchi
8e3777a163
AP_HAL_PX4: RCOutput: honour HAL_HAVE_SAFETY_SWITCH
2018-08-02 13:15:02 -07:00
Eugene Shamaev
05c8d4cc36
AP_HAL_PX4: helper func
2018-06-09 22:46:48 -07:00
Eugene Shamaev
2a6387fd3b
AP_HAL_PX4: reducing indenting by linearizing the logic
2018-06-09 22:46:48 -07:00
Eugene Shamaev
94f8c81d84
AP_HAL_PX4: UAVCAN servo removal
2018-05-25 13:53:17 +10:00
Andrew Tridgell
219d429929
HAL_PX4: fixed oneshot125 on non-alt outputs
2018-05-12 07:28:05 +10:00
Andrew Tridgell
fae0e7befa
HAL_PX4: implement BRD_SAFETYOPTION
2018-04-14 06:22:07 +10:00
Andrew Tridgell
c3f0418333
HAL_PX4: handle oneshot125 separately
2018-04-07 09:10:29 +10:00
Andrew Tridgell
2933d4dd35
HAL_PX4: handle MODE_PWM_NONE enum
2018-04-07 09:10:29 +10:00
Andrew Tridgell
a9b4d37bd2
HAL_PX4: fixed build with DShot
2018-04-07 09:10:29 +10:00
Andrew Tridgell
25cc73c1e7
AP_HAL_PX4: added mask to set_output_mode()
...
this allows for some groups using dshot and some not
2018-04-07 09:10:29 +10:00
Mark Whitehorn
12ea8efa84
AP_HAL_PX4: support SBusOut
...
add unbuffered writes and uart config
2017-11-30 10:20:04 +11:00
Randy Mackay
687ec98e5d
AP_HAL_PX4: set default servo update rate only when changed
...
This removes the chance a small switch occurring whenever this function is called
2017-07-26 13:28:07 +09:00
Andrew Tridgell
5b43698e25
HAL_PX4: added rcout set_detault_rate()
2017-07-24 14:07:28 +10:00
Eugene Shamaev
36655310b3
AP_HAL_PX4: support for several CAN interfaces and drivers, filtering support
2017-07-03 11:44:32 +01:00
Andrew Tridgell
b8f628da83
HAL_PX4: fixed bug in last_sent
...
thanks to Francisco
2017-06-21 11:40:12 +10:00
Andrew Tridgell
17893958bf
HAL_PX4: cope with brushed motors in read_last_sent()
...
we need the value before scaling is applied, so slew rates can work
2017-06-21 10:55:24 +10:00
Andrew Tridgell
11396919c8
HAL_PX4: changed BRUSHED16kHz to BRUSHED
2017-06-17 17:37:45 +10:00
Andrew Tridgell
96627bc4e5
HAL_PX4: allow any pulse freq in brushed mode
2017-06-17 17:37:45 +10:00
Andrew Tridgell
9bdb6838e6
HAL_PX4: cope with nested cork/push
2017-05-01 14:32:18 +10:00
Francisco Ferreira
7dca7933fa
AP_HAL_PX4: fix UAVCAN armed state to depend on safety switch
2017-04-27 14:04:56 +01:00
Francisco Ferreira
965eda69f3
AP_HAL_PX4: remove left-overs of legacy UAVCAN support
2017-04-27 13:32:43 +01:00
Andrew Tridgell
ca4cde9770
HAL_PX4: fixed safety switch light pattern
...
this was broken by the recent CAN merge. My fault for not checking it
carefully. We have to publish the armed state so the fmu driver on
pixracer can update the light
2017-04-27 13:32:43 +01:00
Eugene Shamaev
0c4a68314b
AP_HAL_PX4: removal of legacy UAVCAN support
2017-04-17 17:27:18 +10:00
Eugene Shamaev
7caeaf4be6
AP_HAL_PX4: RCOutput support for UAVCAN
2017-04-10 22:38:12 +01:00
Andrew Tridgell
dbfdfa2261
HAL_PX4: fixed a bug in setup of alt rates for upper channels
...
this affected vehicles with high rates on upper channels, such as hexa
and octa quadplanes. The bug caused the rates set on the upper channels
to also be set on the primary channels, which means the low channels
containing aileron, elevator etc ran at 400Hz instead of 50Hz, resulting
in potential damage to the servos
2017-04-07 20:32:19 +10:00
Andrew Tridgell
02976168cc
HAL_PX4: fixed RC rate when BRD_PWM_COUNT=0
...
if BRD_PWM_COUNT is zero then alt_fd is -1, and we were not setting
servo output rate
2017-04-03 10:05:30 +09:00
Lucas De Marchi
f972fed70b
AP_HAL_PX4: rename method to follow AP_HAL
...
This allows to avoid the cast in the HAL, making it easier to replace
the implementation with an Empty::RCOutput while prototyping.
2017-02-26 13:38:24 +11:00
Andrew Tridgell
787a2093ec
HAL_PX4: fixed motor test for brushed motors
...
this fixes zero pwm output on a subset of channels. When using
motortest and asking for a single channel, multiple channels fired due
to an incorrect optimisation
2017-02-02 09:27:48 +09:00
Andrew Tridgell
ce5ed66b45
HAL_PX4: auto-scale brushed output with ESC output range
2016-11-30 10:53:26 +11:00
Andrew Tridgell
b3286c3da0
HAL_PX4: support MODE_PWM_BRUSHED16KHZ
2016-11-30 10:53:25 +11:00
Andrew Tridgell
00938f7dbb
HAL_PX4: fixed enabled channels in init
...
now this is called from AP_BoardConfig we need to not clear enabled
channels
2016-11-13 13:16:22 +11:00
murata
c808ee2f49
Global: To nullptr from NULL.
...
RC_Channel: To nullptr from NULL.
AC_Fence: To nullptr from NULL.
AC_Avoidance: To nullptr from NULL.
AC_PrecLand: To nullptr from NULL.
DataFlash: To nullptr from NULL.
SITL: To nullptr from NULL.
GCS_MAVLink: To nullptr from NULL.
DataFlash: To nullptr from NULL.
AP_Compass: To nullptr from NULL.
Global: To nullptr from NULL.
Global: To nullptr from NULL.
2016-11-02 16:04:47 -02:00
Mathieu OTHACEHE
152edf7189
Global: remove mode line from headers
...
Using a global .dir-locals.el file is a better alternative than
reincluding the same emacs header in every file of the project.
2016-10-24 09:42:01 -02:00
Andrew Tridgell
9d6a5c6f04
HAL_PX4: make ready_to_arm state latching
...
this fixes a race condition in the handling of the px4io safety switch
2016-10-24 13:36:04 +11:00
Andrew Tridgell
2a44e6a7d7
HAL_PX4: cope with no px4io on FMUv2
...
don't open px4fmu twice
2016-10-23 17:15:32 +11:00
Andrew Tridgell
c825c7b4cc
HAL_PX4: disable FMU outputs again on re-engaging of safety switch
2016-10-21 09:10:55 +11:00
Andrew Tridgell
c493ba81e4
HAL_PX4: fixed cork() for RCOutput
2016-10-13 10:00:04 +11:00
Andrew Tridgell
dddaded8d4
HAL_PX4: fixed a race condition in force_safety_on/off
...
the status update from IO may not have come through if we force safety
on and then off in quick succession, such as for plane mixer load
this forces the ioctl to be sent at least once
2016-08-16 12:53:34 +10:00
Tom Pittenger
57d6ccc0dd
AP_HAL_PX4: skip the 100ms delay on first px4io safety_state async attempt
2016-05-27 11:30:50 -07:00
Tom Pittenger
67aaf7e226
AP_HAL_PX4: defer calls to safety_state switch to queue an async attempt.
...
- this allows for auto-retries if the state does not set correctly
2016-05-27 21:34:40 +10:00
Andrew Tridgell
dda35a366c
HAL_PX4: prevent rate changes once oneshot is setup
...
this fixes a problem with small motor outputs at the start of a motor
test.
Thanks to Luis for reporting this.
2016-05-26 12:18:49 +10:00
Ricardo de Almeida Gonzaga
892cc2ea6f
AP_HAL_PX4: Fix typos
2016-05-13 19:20:06 -03:00
Andrew Tridgell
eeef28be5e
AP_HAL_PX4: fixed hexacopter on Pixracer
...
the _servo_count was 4 as we didn't re-fetch the count after applying
changes in AP_BoardConfig from BRD_PWM_COUNT
2016-05-11 13:01:15 +10:00
Andrew Tridgell
0af322e90d
HAL_PX4: added comment on oneshot
2016-04-22 13:50:05 +10:00
Andrew Tridgell
5ce7ae71a7
HAL_PX4: fixed enabling oneshot on a subset of motors
2016-04-22 13:24:24 +10:00
Andrew Tridgell
bcd0d48ced
HAL_PX4: fixed non-contiguous motor outputs
...
this fixes tricopter with chan3 never set
2016-04-22 11:51:08 +10:00
Andrew Tridgell
a731caa4ab
HLA_PX4: prevent timer disturbance in oneshot mode
2016-04-16 18:52:31 +10:00
Andrew Tridgell
d9d6f87195
HAL_PX4: fixed bug in pwm send code
...
many thanks to Oxinarf for spotting this!
2016-04-16 08:32:04 +10:00
Andrew Tridgell
c9dfccfb26
HAL_PX4: improved oneshot support
...
this now supports oneshot properly on both IO and FMU
2016-04-16 07:30:44 +10:00
Andrew Tridgell
6f284d673a
HAL_PX4: enable oneshot support on px4io
2016-04-16 07:30:43 +10:00