Peter Barker
a3e2e156e7
AP_HAL_Linux: do not create ConsoleDevices for Replay or examples
...
Uusally problems evidence themsleves with stdin not working correctly -
for example, "git add -p" skipping through all queries as if the
user was just pressing enter.
5 years ago
Patrick José Pereira
e65cc35fb0
AP_HAL_Linux: Use template to generate raspberry pins
...
Signed-off-by: Patrick José Pereira <patrickelectric@gmail.com>
5 years ago
Peter Barker
f8058bcf70
AP_HAL_Linux: avoid segfaults during early panics
...
singletons failing to be singleton can cause the segfaults. This is
more a tidiness thing - but better not to have cascading failures.
5 years ago
Peter Barker
c917cd4dbb
AP_HAL_Linux: make a static-const hal references references to external symbol
5 years ago
Andy Piper
127a0e9b41
AP_HAL_Linux: add in empty dsp driver
5 years ago
Andrew Tridgell
cbbf61af93
HAL_Linux: fixed bitmask error on storage erase
5 years ago
Andrew Tridgell
a153799e26
HAL_Linux: support inverted 115200 protocols
...
this allows for FrSky FPort input
5 years ago
Andrew Tridgell
4b9442dad7
AP_HAL_Linux: make all semaphores recursive
...
the cost is very similar and this prevents an easy coding error which
can occur on less used code paths
5 years ago
Andrew Tridgell
67bd4ed396
AP_HAL_Linux: use take_blocking instead of HAL_SEMAPHORE_BLOCK_FOREVER
...
this makes for cleaner and smaller code as the failure case is not
needed
5 years ago
Patrick José Pereira
0c0d97debe
AP_HAL_Linux: Add storage-directory argument in usage
...
Signed-off-by: Patrick José Pereira <patrickelectric@gmail.com>
5 years ago
Patrick José Pereira
6518d6dc4d
AP_HAL_LINUX: Add support for Raspberry Pi 4
...
The Raspberry Pi 4 uses a new BCM cpu, the BCM2711 with
a peripheral base address of 0xFE000000
Signed-off-by: Patrick José Pereira <patrickelectric@gmail.com>
5 years ago
Patrick José Pereira
6230524636
AP_HAL_Linux: Add navigator board
...
Signed-off-by: Patrick José Pereira <patrickelectric@gmail.com>
5 years ago
Daniel Magree
209bb132fa
HAL_Linux: disable input modifications on serial interface for rc receiver
...
Make sure to clear CBAUD before setting the baud and disable
input modifications.
Fix for #12162
This change removes input options that can modify the input data stream.
INLCR: map new line to carriage return
ICRNL: map carriage return to new line
IUCLC: map upper case to lower case
IGNCR: ignore carriage return
BRKINT: send SIGINT on serial break
5 years ago
Peter Barker
cbe73b91d5
AP_HAL_Linux: correct format-string warnings
...
Using the string template to determine the size of the array to print
into strikes issues as varargs passes the stack variables as integer
types, so the perceived range is larger.
5 years ago
Andrew Tridgell
9e9be95943
HAL_Linux: fixed build
5 years ago
Peter Barker
0f4337b7b1
AP_HAL_Linux: release mutex lock before calling write(c)
...
It instantly tries to take it, but we're still holding it, leading to
instant failure.
This mirrors the same code in AP_HAL_ChibiOS.
5 years ago
Patrick José Pereira
29fadc2417
AP_HAL_Linux: PCA9685: Check for device before accessing it
...
Signed-off-by: Patrick José Pereira <patrickelectric@gmail.com>
5 years ago
Andrew Tridgell
312018898f
HAL_Linux: use AP::RC()
6 years ago
Michael du Breuil
979a431e4a
AP_HAL_Linux: Remove set_stop_pin from AnalogSource
6 years ago
Michael du Breuil
1484a12f4b
AP_HAL_Linux: Fix bad check order on heap_realloc
6 years ago
Peter Barker
914e6c5497
AP_HAL_Linux: check return value of system command
...
Compilation fails on disco without this patch as system is declared with
attribute warn_unused_result
6 years ago
Peter Barker
1b3e2e3c8b
AP_HAL_Linux: add missing override keywords
6 years ago
Mirko Denecke
bb7f80b452
AP_HAL_Linux: UARTDriver remove unused field and tabs
6 years ago
Andrew Tridgell
019f441b2f
HAL_Linux: added uartH
6 years ago
Andrew Tridgell
2bab0efc41
HAL_Linux: implement HAL_GPIO_SCRIPT support
...
this allows Linux boards to trigger an external script on GPIO
writes. This can be hooked up to relays with either RC options or
mavlink or mission items to trigger actions that can be scripted
6 years ago
Peter Barker
a9c4f1d0d5
AP_HAL_Linux: return RC protocol being decoded
6 years ago
Peter Barker
1ce2424e49
AP_HAL_Linux: add required override keyword on configure_parity
...
Also remove virtual - doesn't make sense here.
6 years ago
Andrew Tridgell
a159b01b26
AP_HAL_Linux: removed unusued AP_Common/Semaphore.h
6 years ago
Andrew Tridgell
48aacb9462
HAL_Linux: removed use of RCInput_SBUS and RCInput_115200
6 years ago
Andrew Tridgell
1c322d296f
HAL_Linux: switch Disco to using AP_RCProtocol library for RCIN
...
this is the first step to using AP_RCProtocol for most (or all) RC
input on Linux boards. It also fixes a major bug on Disco where the
old SBUS decoder didn't use strict enough timing checks to filter out
bad frames when video capture is running. That led to erratic flight
mode changes and sometimes loss of control.
6 years ago
Lucas De Marchi
5520b397c2
AP_HAL_Linux: allow disco to use RCInput_UDP
...
This allows to use any device to send RCInput to Disco via network.
Particularly this is useful when paired to additional changes on
SkyController 2 so it can be used to control Ardupilot.
This was tested with https://github.com/lucasdemarchi/dema-rc running
on SkyController 2.
6 years ago
Jeremy Feltracco
100f06614c
AP_HAL_Linux: Add support for setting uart parity on Linux boards
...
Pass set_parity down through UART class so that set_parity actually
works for Linux boards.
6 years ago
Michael du Breuil
7b7b852c75
AP_HAL_Linux: fix GCC warning in storage
6 years ago
Michael du Breuil
4a01cc1666
AH_HAL_Linux: add heap support to the HAL
6 years ago
Andrew Tridgell
6bae0960df
HAL_Linux: added empty flash driver
6 years ago
mirkix
938865da41
AP_HAL_Linux: add override to virtual method
6 years ago
Andrew Tridgell
6251353090
HAL_Linux: removed old px4io protocol header
6 years ago
Peter Barker
eb73a14da8
AP_HAL_Linux: add missing override keywords
6 years ago
Peter Barker
d89f740460
AP_HAL_Linux: AP_Common no longer gives board information; use AP_HAL_Boards
6 years ago
Tom Pittenger
95820c905d
AP_HAL_Linux: unify singleton naming to _singleton and get_singleton()
6 years ago
Aaron Wang Shi
8350943e78
AP_HAL_Linux: reduce RCInput_RPI CPU consumption to 1/4
6 years ago
Andrew Tridgell
15853adb04
build: removed remaining make.inc files
6 years ago
Randy Mackay
790a00d8a6
AP_HAL_Linux: remove debug print when SPI device not found
6 years ago
Andrew Tridgell
63705f858b
HAL_Linux: use mavlink_packetise()
6 years ago
Andrew Tridgell
48475051d9
HAL_Linux: implement get_system_id() on Linux
...
this is needed for UAVCAN dynamic node allocation
6 years ago
Andrew Tridgell
02519afdf4
HAL_Linux: fixed an error found with valgrind
...
sa_flags wasn't initialised
6 years ago
Andrew Tridgell
63556b9804
HAL_Linux: removed hal.util->new_semaphore()
...
replaced with HAL_Semaphore
6 years ago
Michael du Breuil
f506a96b7f
AP_HAL_Linux: Handle scripting priority
6 years ago
Lucas De Marchi
0990fc4400
AP_HAL_Linux: send warning to stderr
6 years ago
Peter Barker
220a3d19bf
AP_HAL_Linux: do not attempt to run examples realtime unless root
6 years ago