Andrew Tridgell
7ecdabe52c
HAL_PX4: fixup
7 years ago
Andrew Tridgell
fae0e7befa
HAL_PX4: implement BRD_SAFETYOPTION
7 years ago
Andrew Tridgell
c3f0418333
HAL_PX4: handle oneshot125 separately
7 years ago
Andrew Tridgell
503bd9ce65
HAL_PX4: implement get_esc_scaling()
7 years ago
Andrew Tridgell
9942934f0d
AP_HAL_PX4: added IRQ save/restore to hal.scheduler
...
these are used by RPM driver
7 years ago
Andrew Tridgell
2933d4dd35
HAL_PX4: handle MODE_PWM_NONE enum
7 years ago
Andrew Tridgell
a9b4d37bd2
HAL_PX4: fixed build with DShot
7 years ago
Andrew Tridgell
25cc73c1e7
AP_HAL_PX4: added mask to set_output_mode()
...
this allows for some groups using dshot and some not
7 years ago
Peter Barker
6c7c916c78
AP_HAL: eliminate AP_HAL::Print and AP_HAL::Stream
...
Just *way* too many layers involved here
7 years ago
Holger Steinhaus
8b8a99e1aa
AP_HAL_PX4: fix possible overflow/truncation issue
...
bus_id is declared to be a 5 bit value, so 2 digits are necessary for
string representation.
7 years ago
Andrew Tridgell
fba962f7ff
HAL_PX4: allow for different LED pins
...
and fixed build
7 years ago
Andrew Tridgell
eb0389caf2
HAL_PX4: used cypress bus defines
7 years ago
Andrew Tridgell
a8af1974d2
HAL_PX4: hook into AP_Radio for RC input
7 years ago
Peter Barker
ddb2f4b5ad
HAL_PX4: define cypress SPI bus
7 years ago
Siddharth Purohit
17fef4b630
HAL_PX4: add support for api change in AP_HAL::CANManager
7 years ago
Andrew Tridgell
0f079deebf
HAL_PX4: Storage::_timer_tick is an override
7 years ago
Andrew Tridgell
25ea60da69
HAL_PX4: implement _timer_tick in UARTDriver
7 years ago
murata
cdfca9d9ea
AP_HAL_PX4: delete \n from the log using gcs().send_text
7 years ago
Andrew Tridgell
a99b690d49
HAL_PX4: use calloc for malloc_type()
...
this ensures that EKF memory is zero on start
7 years ago
bugobliterator
e591265329
HAL_PX4: change dma_allocate api to malloc_type
7 years ago
Andrew Tridgell
ded22a6766
HAL_PX4: fixed I2C get_device() interface
...
just stubs for now
7 years ago
Andrew Tridgell
c62dbcdb62
HAL_PX4: allow for printf from multiple threads
...
this is useful for hal.console
7 years ago
Andrew Tridgell
979ee67c19
HAL_PX4: cope with failed flash writes
...
we need to recover from possible bad flash
7 years ago
Randy Mackay
9b81c133f6
AP_HAL_PX4: fix compiler warning in UARTDriver
7 years ago
Andrew Tridgell
4289190654
HAL_PX4: added LIS3MDL on FMUv4
7 years ago
Mark Whitehorn
b1b1c0218f
AP_HAL_PX4: clean whitespace
7 years ago
Mark Whitehorn
12ea8efa84
AP_HAL_PX4: support SBusOut
...
add unbuffered writes and uart config
7 years ago
Andrew Tridgell
3402d07651
HAL_PX4: fixed a race condition on i2c init
...
we could call init on two devices with the same name, which caused
init_ok to be false. This could cause the SMBus battery to fail to
initialise
Thanks to Michael duBreuil for finding this!
7 years ago
Lucas De Marchi
f6b1099896
AP_HAL: move in tap esc implementation
...
This can be shared with Linux.
7 years ago
Peter Barker
8d208ea514
AP_HAL_PX4: make in_main_thread const and override
7 years ago
VikingDai
9f0e8a64d5
Update HAL_PX4_Class.cpp
...
"ttys5" used both for console and common usart ,it should be initialized by AP_SerialManager ;
8 years ago
Andrew Tridgell
d09b549144
HAL_PX4: allow uart5 to be used for non-nsh on FMUv2/FMUv3
8 years ago
Peter Barker
48c4e48225
AP_HAL_PX4: send statustext for RC input decoding type
8 years ago
Miguel Arroyo
fc155eac7e
AP_HAL_PX4: Adds UARTF as commandline option
8 years ago
José Roberto de Souza
9ee007f924
AP_HAL_PX4: Map PX4_I2C_BUS_EXPANSION1
8 years ago
José Roberto de Souza
e674d6ee20
AP_HAL_PX4: aeorfc: Move GPS to UART7
...
The UART3 also have the I2C bus 2 functions so moving GPS to UART7 to
have one additional I2C.
To keep GPS working is also necessary update the FPGA RTL to version
0xC1 or higher.
8 years ago
Lucas De Marchi
5ea1784838
global: remove AP_HAL::in_timerprocess()
...
This is not used and in the only places it would make sense would be
internally to the scheduler so remove it.
8 years ago
Lucas De Marchi
9e66938f68
AP_HAL_PX4: Scheduler: replace use of in_timerprocess()
...
This function actually checks if we are not in the main thread rather
than if we are in the timer thread.
Add a new function that does what it's supposed to do.
8 years ago
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
8 years ago
Andrew Tridgell
5b43698e25
HAL_PX4: added rcout set_detault_rate()
8 years ago
Kevin Lopez Alvarez
16a96b0643
HAL_PX4: Adjust SPI params for ppro
...
Add SPI prescalers for 180 MHz and decrease LIS3MDL SPI speed
8 years ago
Kevin Lopez Alvarez
88958b2dbf
HAL_PX4: add ppro support
8 years ago
Kevin Lopez Alvarez
d6d1a3e08c
AP_HAL_PX4: initial FMUv4pro support
8 years ago
Siddharth Bharat Purohit
66a94f7a10
HAL_PX4: use correct datatype for time conversion
8 years ago
Eugene Shamaev
36655310b3
AP_HAL_PX4: support for several CAN interfaces and drivers, filtering support
8 years ago
Andrew Tridgell
a88693c487
HAL_PX4: support RSSI from receiver protocols
8 years ago
Andrew Tridgell
b8f628da83
HAL_PX4: fixed bug in last_sent
...
thanks to Francisco
8 years ago
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
8 years ago
Andrew Tridgell
11396919c8
HAL_PX4: changed BRUSHED16kHz to BRUSHED
8 years ago
Andrew Tridgell
96627bc4e5
HAL_PX4: allow any pulse freq in brushed mode
8 years ago