Lucas De Marchi
c859c5ecd9
AP_HAL_PX4: update Device interface
2016-07-30 00:55:27 -03:00
Lucas De Marchi
2ef78051c1
AP_HAL_PX4: remove I2CDriver
...
I2CDevice now serves for the same purpose.
2016-07-28 18:08:56 -03:00
Lucas De Marchi
293f94b355
AP_HAL_PX4: Util: fix check for PX4_V4
...
When building for px4-v2 we have an warning because we are checking for
the value of this undefined macro. Just change both checks to use
"defined()".
../../libraries/AP_HAL_PX4/Util.cpp:115:7: warning: "CONFIG_ARCH_BOARD_PX4FMU_V4" is not defined [-Wundef]
#elif CONFIG_ARCH_BOARD_PX4FMU_V4
^
2016-07-19 17:53:46 -03:00
khancyr
c4b009f4b5
AP_HAL_PX4 : remove unused variable
2016-07-19 17:44:22 -03:00
Andrew Tridgell
1b8da3bce2
HAL_PX4: implement I2CDevice driver for PX4
2016-07-15 12:24:03 -03:00
Andrew Tridgell
7c2e4d0419
HAL_PX4: implement IMU heater in hal.util for Pixhawk2
2016-07-01 15:29:52 +10:00
Tom Pittenger
a512e807dc
AP_HAL_PX4: disarm motors on reboot so ensure they are off during bootloader upload
2016-06-04 00:42:43 -07: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
Andrew Tridgell
ae3cb0557d
HAL_PX4: disable "Overtime in task" msg
...
this hasn't helped us find any bugs and it is very annoying with nsh
over MAVLink
2016-05-25 12:35:42 +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
8a7627474f
Revert "AP_HAL_PX4: use new I2CDevice interface"
...
This reverts commit f767918e0e
.
These commits broke startup on PX4
2016-05-11 12:19:00 +10:00
Andrew Tridgell
8c06e6cddc
Revert "AP_HAL_PX4: embed PX4_I2C object into I2CDevice"
...
This reverts commit 54fd3702c3
.
These commits broke startup on PX4
2016-05-11 12:18:45 +10:00
Lucas De Marchi
54fd3702c3
AP_HAL_PX4: embed PX4_I2C object into I2CDevice
...
Otherwise we would destroy PX4_I2C object after returning from
I2CDeviceManager::get_device(). Since this implementation is very
simple, just make PX4_I2C as an internal class and embed it into the
I2CDevice object.
2016-05-10 15:39:24 -03:00
Luiz Ywata
f767918e0e
AP_HAL_PX4: use new I2CDevice interface
2016-05-10 15:12:30 -03: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
28aa4c40cc
HAL_PX4: fixed order of wifi and frsky on FMUv4
...
thanks to OXINARF for noticing!
2016-04-20 10:23:11 +10:00
Andrew Tridgell
4a35f8e9fc
HAL_PX4: fixed comments for FMUv4 uarts
2016-04-20 10:08:48 +10:00
Andrew Tridgell
18ccaf7e2b
HAL_PX4: added uartF
2016-04-20 09:39:49 +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
Peter Barker
daa210729c
AP_HAL_PX4: correct systemid output for PX4v4
2016-04-14 13:40:27 -07:00
Andrew Tridgell
8695668da3
HAL_PX4: enable wifi port on FMUv4
2016-04-14 08:05:06 +10:00
Andrew Tridgell
5922e67785
HAL_PX4: allow sbus output on channels beyond BRD_PWM_COUNT
2016-04-14 08:05:06 +10:00
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
2016-04-14 08:05:06 +10:00
Andrew Tridgell
934b4dd475
HAL_PX4: support OneShot on PX4
...
this greatly lowers output latency
2016-04-14 08:05:05 +10:00
Andrew Tridgell
1d5deed72a
HAL_PX4: fixed build for new px4 param functions
2016-04-14 08:05:04 +10:00
Lucas De Marchi
28f67f0947
AP_HAL_PX4: replace header guard with pragma once
2016-03-16 18:40:41 +11:00
Andrew Tridgell
2a6e64e358
HAL_PX4: send all channels to px4io
...
this allows for 16 channel SBUS out
2016-03-13 10:03:56 +11:00
Jonathan Challinger
4bf3ec0e91
AP_HAL_PX4: implement RCOutput::read_last_sent
2016-03-10 13:56:27 -08:00
Andrew Tridgell
7fede90df3
HAL_PX4: work around a bus locking issue on Pixracer
...
Pixracer has FRAM on the same bus as the ms5611 and the FRAM ramtron
driver does not use the same locking mechanism as other px4 SPI
drivers. We need to disable interrupts during FRAM transfers to ensure
we don't get FRAM corruption
2016-02-23 16:34:06 +11:00
Lucas De Marchi
8de329fc81
AP_HAL_PX4: use empty I2CDevice
2016-02-16 19:49:09 -02:00
Lucas De Marchi
f39a6745d1
Global: remove unused _timer_pending from scheduler
2016-02-12 23:42:34 -02:00
Lucas De Marchi
9aa49cda93
Global: remove system_initializing() from scheduler
...
This is not used anymore.
2016-02-12 23:42:34 -02:00
Gustavo Jose de Sousa
c2e3f05dbf
waf: ardupilotwaf: prefix build context methods with ap_
...
It helps to distinguish between things from waf and things from ardupilotwaf.
2016-01-22 20:10:29 -02:00
Gustavo Jose de Sousa
3d22490397
waf: examples: use methods from bld instead of ardupilotwaf
2016-01-22 20:10:29 -02:00
Gustavo Jose de Sousa
d281067bcc
waf: make example binaries be placed in 'examples' dir
...
This commit makes examples' wscripts use ardupilotwaf.example() instead of
ardupilot.program().
2016-01-15 16:46:41 -02:00
Andrew Tridgell
519afc7a06
HAL_PX4: debug code for FRAM corruption
2016-01-06 19:16:16 +11:00
Andrew Tridgell
526fb65dd1
HAL_PX4: fixed setting of rcout frequency on alt channels
2016-01-05 09:47:52 +11:00
Jonathan Challinger
f376510524
AP_HAL_PX4: fix example build
2015-12-29 10:46:35 -08:00
Lucas De Marchi
a096703b06
Global: don't link with AP_Progmem
...
AP_Progmem is not used anymore.
2015-12-27 15:58:12 -02:00
Andrew Tridgell
02bee8810d
HAL_PX4: added Semaphore support
2015-12-20 17:55:39 +11:00
Julien BERAUD
c0f65ff6e1
AP_HAL_PX4: add empty optical flow
...
No onboard optical flow on PX4
2015-12-18 17:56:04 +11:00
Lucas De Marchi
503533c6fe
AP_HAL_PX4: rename AP_HAL_Empty instances
2015-12-08 11:12:14 +11:00