Andrew Tridgell
086f878bdc
HAL_PX4: split IO thread into separate IO and storage threads
...
this prevents a blocked microSD card from blocking IO to the FRAM,
causing parameter changes not to be sticky
10 years ago
Andrew Tridgell
18131eae13
HAL_PX4: added delay_microseconds_boost()
...
implemented using hrt callback with sem_post wrapper
10 years ago
Andrew Tridgell
619196b6b3
HAL_PX4: fixes for new PX4 device paths
10 years ago
Andrew Tridgell
001643d5a3
HAL_PX4: always use the hrt semaphore based delay
...
the up_udelay() could cause too much timing jitter
10 years ago
Andrew Tridgell
7f0060b881
HAL_PX4: reduce the amount of time between loop() calls
...
500usec is too long for 400Hz copter
10 years ago
Andrew Tridgell
ebacb2b496
HAL_PX4: call parent Util constructor
10 years ago
Jonathan Challinger
e908fcafb1
AP_HAL_PX4: attempt to initialize USB while soft-disarmed
10 years ago
Andrew Tridgell
f548d48fdc
HAL_PX4: implement updated new_input() semantics
10 years ago
Andrew Tridgell
f2a919c55e
AP_HAL_PX4: moved size of main thread stack to Scheduler.h
...
make it more obvious
10 years ago
Randy Mackay
12bd5cd6b1
AP_HAL_PX4: fix example sketch
10 years ago
Andrew Tridgell
464714f1ab
HAL_PX4: fixed build warning
10 years ago
Andrew Tridgell
0c73dc2440
HAL_PX4: use common RingBuffer.h
10 years ago
Andrew Tridgell
4a91546ced
HAL_PX4: FRAM does not support fsync
...
the fsync just wastes time reopening /fs/mtd
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
Matthias Badaire
1d3a49e466
AP_HAL_PX4 : make UARTDriver capable to be called from different threads.
...
The modification allows the read and write functions to be called by any thread but the calling thread must be the last one that called the begin() function.
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
Andrew Tridgell
10b0ca7ea8
HAL_PX4: reduce the number of times we split up UART reads and writes
10 years ago
Randy Mackay
ffcd259b4e
HAL_PX4: implement force_safety_on
11 years ago
Andrew Tridgell
74525cad89
HAL_PX4: fixed dirty_mask calculation in FRAM storage
...
this could lead to a number of bytes on 512 byte boundaries not being
written when changed in ram, so they would revert on next boot
11 years ago
Andrew Tridgell
48247b6adc
HAL_PX4: minimise usage of hrt_absolute_time()
11 years ago
Andrew Tridgell
1241da466b
HAL_PX4: added millis64() and micros64()
11 years ago
Andrew Tridgell
0a20d0db60
HAL_PX4: prevent read past end of buffer
11 years ago
Andrew Tridgell
41f7ad42d4
HAL_PX4: fixed example build
11 years ago
Andrew Tridgell
c864f3eed5
HAL_PX4: enable full storage size on PX4
11 years ago
Andrew Tridgell
d40d0f6aec
AP_HAL: removed old storage type read/write functions
...
not needed any more
11 years ago
Andrew Tridgell
d1a75874a1
HAL_PX4: don't report power status change if in first 5 seconds
11 years ago
Andrew Tridgell
02dec5634f
AP_HAL: fixed example builds
11 years ago
Andrew Tridgell
b2bc098aee
HAL_PX4: avoid some float conversion warnings
11 years ago
Andrew Tridgell
849c4905fb
HAL_PX4: print overtime message on stuck task
...
this should make it easier to narrow down stuck task bugs
11 years ago
Andrew Tridgell
fa4eb5475a
HAL_PX4: implement analog input stop pins
...
this allows multiple sonars to cooperate without interference
11 years ago
Andrew Tridgell
37c50d9587
HAL_PX4: fixed use of FMU servo pins as digital inputs
...
these pins can be PWM output or digital input or digital output
11 years ago
Andrew Tridgell
a7d6a26bec
HAL_PX4: fixed auto-flow control
...
the 6 bytes written to break the radio out of bootloader broke
auto flowcontrol detection
11 years ago
Andrew Tridgell
320834a5e7
HAL_PX4: read from FRAM in 128 byte chunks (2nd try)
...
this time without the amazingly silly bug
11 years ago
Andrew Tridgell
db6b96caa0
Revert "HAL_PX4: read from FRAM in 128 byte chunks"
...
This reverts commit a92366c455
.
This commit may be associated with FRAM corruption on Pixhawk. Revert
until we understand why
11 years ago
Andrew Tridgell
a92366c455
HAL_PX4: read from FRAM in 128 byte chunks
...
this fixes FRAM read on Roberts Pixhawk. We don't know why yet.
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
6eee2421cc
AP_HAL: removed RCInput valid_channels() and added new_input() and num_channels()
...
the valid_channels() method was inconsistently implemented between
boards, and served two quite different purposes. It is clearer as two
functions
11 years ago
Andrew Tridgell
2a9a89e020
HAL_PX4: fixes for merged upstream PX4Firmware
11 years ago
Andrew Tridgell
d36989f6a1
AP_HAL: fixed example build
11 years ago
Andrew Tridgell
5f85e7af6a
HAL_PX4: switch to new serial port for 2nd GPS
11 years ago
Andrew Tridgell
bf2dd141e9
HAL_PX4: support uartE for 2nd GPS
11 years ago
Andrew Tridgell
830afefcef
AP_HAL: fixed example build
11 years ago
Andrew Tridgell
bea0a46410
AP_HAL: added servorail_voltage and power_status_flags() API on AnalogIn
11 years ago
Andrew Tridgell
7c1b9b344f
AP_HAL: added get_flow_control() API
11 years ago
Andrew Tridgell
1849db7074
AP_HAL: added board_voltage AnalogIn method
...
this makes it easier to get the board voltage from any library,
without having to allocate another analog channel object
11 years ago
Andrew Tridgell
4e2e685d7a
HAL_PX4: better fix for IFLOW on all ports
...
the tcsetattr() call fails to apply the baudrate if the port has no
RTS pin and we ask for IFLOW. So just make a separate call.
11 years ago