Commit Graph

491 Commits

Author SHA1 Message Date
Andrew Tridgell 9942934f0d AP_HAL_PX4: added IRQ save/restore to hal.scheduler
these are used by RPM driver
2018-04-07 09:10:29 +10:00
Andrew Tridgell 2933d4dd35 HAL_PX4: handle MODE_PWM_NONE enum 2018-04-07 09:10:29 +10:00
Andrew Tridgell a9b4d37bd2 HAL_PX4: fixed build with DShot 2018-04-07 09:10:29 +10:00
Andrew Tridgell 25cc73c1e7 AP_HAL_PX4: added mask to set_output_mode()
this allows for some groups using dshot and some not
2018-04-07 09:10:29 +10:00
Peter Barker 6c7c916c78 AP_HAL: eliminate AP_HAL::Print and AP_HAL::Stream
Just *way* too many layers involved here
2018-03-23 08:12:38 +11:00
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.
2018-03-17 16:32:56 +01:00
Andrew Tridgell fba962f7ff HAL_PX4: allow for different LED pins
and fixed build
2018-02-14 18:27:00 +11:00
Andrew Tridgell eb0389caf2 HAL_PX4: used cypress bus defines 2018-02-08 18:56:51 +11:00
Andrew Tridgell a8af1974d2 HAL_PX4: hook into AP_Radio for RC input 2018-02-08 17:36:33 +11:00
Peter Barker ddb2f4b5ad HAL_PX4: define cypress SPI bus 2018-02-08 17:36:33 +11:00
Siddharth Purohit 17fef4b630 HAL_PX4: add support for api change in AP_HAL::CANManager 2018-02-07 20:33:45 +11:00
Andrew Tridgell 0f079deebf HAL_PX4: Storage::_timer_tick is an override 2018-02-07 20:33:45 +11:00
Andrew Tridgell 25ea60da69 HAL_PX4: implement _timer_tick in UARTDriver 2018-02-07 20:33:45 +11:00
murata cdfca9d9ea AP_HAL_PX4: delete \n from the log using gcs().send_text 2018-02-02 09:40:55 +09:00
Andrew Tridgell a99b690d49 HAL_PX4: use calloc for malloc_type()
this ensures that EKF memory is zero on start
2018-01-17 11:22:05 +11:00
bugobliterator e591265329 HAL_PX4: change dma_allocate api to malloc_type 2018-01-15 11:46:02 +11:00
Andrew Tridgell ded22a6766 HAL_PX4: fixed I2C get_device() interface
just stubs for now
2018-01-15 11:46:02 +11:00
Andrew Tridgell c62dbcdb62 HAL_PX4: allow for printf from multiple threads
this is useful for hal.console
2018-01-15 11:46:02 +11:00
Andrew Tridgell 979ee67c19 HAL_PX4: cope with failed flash writes
we need to recover from possible bad flash
2018-01-15 11:46:02 +11:00
Randy Mackay 9b81c133f6 AP_HAL_PX4: fix compiler warning in UARTDriver 2017-12-09 12:18:49 +09:00
Andrew Tridgell 4289190654 HAL_PX4: added LIS3MDL on FMUv4 2017-12-08 09:49:25 +11:00
Mark Whitehorn b1b1c0218f AP_HAL_PX4: clean whitespace 2017-11-30 10:20:04 +11:00
Mark Whitehorn 12ea8efa84 AP_HAL_PX4: support SBusOut
add unbuffered writes and uart config
2017-11-30 10:20:04 +11:00
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!
2017-10-26 18:21:56 +11:00
Lucas De Marchi f6b1099896 AP_HAL: move in tap esc implementation
This can be shared with Linux.
2017-09-21 07:59:20 -07:00
Peter Barker 8d208ea514 AP_HAL_PX4: make in_main_thread const and override 2017-09-19 09:40:11 +10:00
VikingDai 9f0e8a64d5 Update HAL_PX4_Class.cpp
"ttys5" used both for console and common usart ,it should be initialized by AP_SerialManager ;
2017-09-08 10:33:40 +10:00
Andrew Tridgell d09b549144 HAL_PX4: allow uart5 to be used for non-nsh on FMUv2/FMUv3 2017-08-28 17:57:28 +10:00
Peter Barker 48c4e48225 AP_HAL_PX4: send statustext for RC input decoding type 2017-08-15 22:04:00 +01:00
Miguel Arroyo fc155eac7e AP_HAL_PX4: Adds UARTF as commandline option 2017-08-15 14:31:51 +01:00
José Roberto de Souza 9ee007f924 AP_HAL_PX4: Map PX4_I2C_BUS_EXPANSION1 2017-08-04 12:47:01 -07:00
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.
2017-08-04 12:47:01 -07:00
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.
2017-08-03 20:25:14 -07:00
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.
2017-08-03 20:25:01 -07:00
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
2017-07-26 13:28:07 +09:00
Andrew Tridgell 5b43698e25 HAL_PX4: added rcout set_detault_rate() 2017-07-24 14:07:28 +10:00
Kevin Lopez Alvarez 16a96b0643 HAL_PX4: Adjust SPI params for ppro
Add SPI prescalers for 180 MHz and decrease LIS3MDL SPI speed
2017-07-24 13:48:20 +10:00
Kevin Lopez Alvarez 88958b2dbf HAL_PX4: add ppro support 2017-07-24 13:47:06 +10:00
Kevin Lopez Alvarez d6d1a3e08c AP_HAL_PX4: initial FMUv4pro support 2017-07-24 13:45:37 +10:00
Siddharth Bharat Purohit 66a94f7a10 HAL_PX4: use correct datatype for time conversion 2017-07-13 18:23:00 -07:00
Eugene Shamaev 36655310b3 AP_HAL_PX4: support for several CAN interfaces and drivers, filtering support 2017-07-03 11:44:32 +01:00
Andrew Tridgell a88693c487 HAL_PX4: support RSSI from receiver protocols 2017-07-03 11:22:21 +10:00
Andrew Tridgell b8f628da83 HAL_PX4: fixed bug in last_sent
thanks to Francisco
2017-06-21 11:40:12 +10:00
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
2017-06-21 10:55:24 +10:00
Andrew Tridgell 11396919c8 HAL_PX4: changed BRUSHED16kHz to BRUSHED 2017-06-17 17:37:45 +10:00
Andrew Tridgell 96627bc4e5 HAL_PX4: allow any pulse freq in brushed mode 2017-06-17 17:37:45 +10:00
Peter Barker 7ce353e652 AP_HAL_PX4: use HAL_SEMAPHORE_BLOCK_FOREVER macro 2017-05-08 10:23:03 +09:00
Andrew Tridgell b72532164b AP_HAL_PX4: rename macros to avoid conflicts
these macros were also defined in NuttX in clock.h
2017-05-06 15:21:14 +10:00
Andrew Tridgell 37166301c9 HAL_PX4: use sensor_config_error() 2017-05-03 11:37:02 +10:00
Peter Barker 3ff4cd8c07 AP_HAL_PX4: use HAL_SEMAPHORE_BLOCK_FOREVER 2017-05-01 15:05:51 +01:00