Ricardo de Almeida Gonzaga
892cc2ea6f
AP_HAL_PX4: Fix typos
9 years ago
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
9 years ago
Andrew Tridgell
0af322e90d
HAL_PX4: added comment on oneshot
9 years ago
Andrew Tridgell
5ce7ae71a7
HAL_PX4: fixed enabling oneshot on a subset of motors
9 years ago
Andrew Tridgell
bcd0d48ced
HAL_PX4: fixed non-contiguous motor outputs
...
this fixes tricopter with chan3 never set
9 years ago
Andrew Tridgell
a731caa4ab
HLA_PX4: prevent timer disturbance in oneshot mode
9 years ago
Andrew Tridgell
d9d6f87195
HAL_PX4: fixed bug in pwm send code
...
many thanks to Oxinarf for spotting this!
9 years ago
Andrew Tridgell
c9dfccfb26
HAL_PX4: improved oneshot support
...
this now supports oneshot properly on both IO and FMU
9 years ago
Andrew Tridgell
6f284d673a
HAL_PX4: enable oneshot support on px4io
9 years ago
Andrew Tridgell
5922e67785
HAL_PX4: allow sbus output on channels beyond BRD_PWM_COUNT
9 years ago
Andrew Tridgell
759b0d6629
HAL_PX4: only support oneshot on FMU outputs for now
...
oneshot on PX4IO gives some very weird results. I think it is doable,
but will take a bit more work
9 years ago
Andrew Tridgell
934b4dd475
HAL_PX4: support OneShot on PX4
...
this greatly lowers output latency
9 years ago
Andrew Tridgell
2a6e64e358
HAL_PX4: send all channels to px4io
...
this allows for 16 channel SBUS out
9 years ago
Jonathan Challinger
4bf3ec0e91
AP_HAL_PX4: implement RCOutput::read_last_sent
9 years ago
Andrew Tridgell
526fb65dd1
HAL_PX4: fixed setting of rcout frequency on alt channels
9 years ago
Andrew Tridgell
78e9b0a4e3
HAL_PX4: check for servo counts changing after boot
...
this copes with changes to BRD_PWM_COUNT
9 years ago
Lucas De Marchi
0c3733601b
AP_HAL_PX4: use init() method without arguments
...
Override the init() method from parent class that doesn't have a
parameter since it's not used here.
9 years ago
Andrew Tridgell
155e82c1b3
HAL_PX4: fixed PWM output for FMUv4
9 years ago
Caio Marcelo de Oliveira Filho
a76c9e0051
AP_HAL_PX4: use millis/micros/panic functions
9 years ago
Lucas De Marchi
ce674f6926
AP_HAL_PX4: remove unused write method
9 years ago
Gustavo Jose de Sousa
08333f1ffe
AP_HAL_PX4: standardize inclusion of libaries headers
...
This commit changes the way libraries headers are included in source files:
- If the header is in the same directory the source belongs to, so the
notation '#include ""' is used with the path relative to the directory
containing the source.
- If the header is outside the directory containing the source, then we use
the notation '#include <>' with the path relative to libraries folder.
Some of the advantages of such approach:
- Only one search path for libraries headers.
- OSs like Windows may have a better lookup time.
10 years ago
Andrew Tridgell
d6af9fd0ee
HAL_PX4: prevent uavcan motor spin up while booting
10 years ago
Andrew Tridgell
6a33aeef67
HAL_PX4: cope with multi-instance actuator_outputs uORB
...
we need to subscribe to all of them
10 years ago
Andrew Tridgell
333778bac1
HAL_PX4: updates for upstream merge
10 years ago
Andrew Tridgell
619196b6b3
HAL_PX4: fixes for new PX4 device paths
10 years ago
Andrew Tridgell
4132b53541
HAL_PX4: publish actuator values for UAVCAN ESCs
...
this publishes scaled actuator values so that the uavcan module can
drive ESCs
10 years ago
Andrew Tridgell
154bf51279
HAL_PX4: minor tidy up of if statement
10 years ago
Holger Steinhaus
9e9c62d245
HAL_PX4: work-around for periodic enable_ch() calls
10 years ago
Holger Steinhaus
e5549c90a1
HAL_PX4: do not overwrite disabled channels with zeros
...
Fixes #1321
10 years ago
Andrew Tridgell
e22c8b27a9
HAL_PX4: if there are no enabled channels don't send to PX4IO
...
this makes it possible to disable PWM output to IO to test override
10 years ago
Andrew Tridgell
7e3b8a30f5
HAL_PX4: use px4io generated values for servo output readback
...
this makes it easier to observe the behaviour of IO failsafe
10 years ago
Randy Mackay
ffcd259b4e
HAL_PX4: implement force_safety_on
11 years ago
Andrew Tridgell
5cd145a307
AP_HAL: added set_failsafe_pwm() API
...
this allows the PWM values for FMU firmware failure to be setup
11 years ago
Andrew Tridgell
c93794999e
HAL_PX4: remove an old conditional define
11 years ago
Andrew Tridgell
439a075b30
AP_HAL: added force_safety_off rcoutput function
...
this forces the safety switch off, enabling PWM on the IO board
11 years ago
Andrew Tridgell
99b41f110f
HAL_PX4: enable the FMU PWM pins to be used as GPIO when needed
11 years ago
Andrew Tridgell
87cc95dd7f
AP_HAL: removed unused enable_mask and disable_mask functions
11 years ago
Andrew Tridgell
3ae6f03761
HAL_PX4: be less verbose about disarmed PWM setup
11 years ago
Andrew Tridgell
db1d438e97
HAL_PX4: implement set_safety_pwm() API
...
used to set PWM on motors when disarmed
11 years ago
Andrew Tridgell
63586e3e23
HAL_PX4: fixed build for new PX4Firmware
11 years ago
Andrew Tridgell
2c149bac8e
HAL_PX4: added new arming ioctls
12 years ago
Andrew Tridgell
709615159a
HAL_PX4: support 12 output channels with PX4IO
...
first 8 on IO board, next 4 on FMU outputs
12 years ago
Pat Hickey
e0457f21de
AP_HAL_PX4: fix off-by-one error in RCOutput channel sending
12 years ago
Andrew Tridgell
4fd7630ec9
HAL_PX4: IO_SET_FEATURES is not needed any more
12 years ago
Andrew Tridgell
90e264d56a
HAL_PX4: disable manual override in PX4 for now
12 years ago
Andrew Tridgell
8f2f4b1bc5
HAL_PX4: use write() to /dev/pwm_output for servo output
...
this lowest the cost of PWM output a lot, but relies on the new I2C
based IO firmware
12 years ago
Andrew Tridgell
6e8501603c
HAL_PX4: avoid RCOutput ioctl unless values change
...
this lowers latency somewhat
12 years ago
Andrew Tridgell
319e1a4e84
HAL_PX4: support setting servo rate
12 years ago
Andrew Tridgell
0fcc6d7389
HAL_PX4: added an RC Output driver
12 years ago