Commit Graph

1206 Commits

Author SHA1 Message Date
Phillip Kocmoud
3973de379d hwdef:PixracerPro - Fix analog volt pin assignments 2020-11-03 08:18:11 +11:00
Andrew Tridgell
c03551e496 HAL_ChibiOS: fixed a race condition in UART DMA transmit
this fixes an issue seen on one board which caused a watchdog on high
uart DMA load. We have reproduced the issue on another board by
forcing a very high DMA transfer rate on the same DMA channel while
also requesting very high transfer rates on the UART. The likely race
is in the DMA transmit timeout code, and the simplest fix is to lock
out interrupts during the DMA setup to ensure the tx timeout cannot
trigger during the setup
2020-10-08 15:54:11 +11:00
Siddharth Purohit
4241b57702 AP_HAL_ChibiOS: keep a backup of storage for last 100 boots 2020-10-07 15:31:21 +11:00
Andrew Tridgell
8ae1157bdd HAL_ChibiOS: enable telem3 on Durandal
the RCIN issue is not there in the final production boards
2020-10-02 20:39:22 +10:00
chobits
bd48eb4403 AP_HAL_ChibiOS: fix kakutef7/mini motor glitch when using dshot 2020-10-02 10:08:54 +10:00
Andrew Tridgell
5287fb2e1b HAL_ChibiOS: add a max quota of GPIO interrupts
This implements a max quota of GPIO interrupts per 100ms period to
prevent high interrupt counts from consuming all CPU and causing a
lockup. The limit is set as 10k interrupts per 0.1s period. That limit
should be high enough for all reasonable uses of GPIO interrupt
handlers while being below the level that causes significant CPU loads
and flight issues

This addresses issue #15384
2020-10-02 09:50:09 +10:00
MATEKSYS
7e8d108e5c HAL_ChibiOS: Add DPS310 for MatekF405-WING,F765-WING and H743 2020-09-02 19:36:03 +10:00
Andrew Tridgell
da71b66926 HAL_ChibiOS: fixed fast sampling on F32Lightning
this SPI bus on this board can't handle 8MHz
2020-09-02 06:43:47 +10:00
Andrew Tridgell
9bece88212 HAL_ChibiOS: enable HAL storage erase 2020-07-07 11:34:18 +10:00
Andrew Tridgell
756d657afd HAL_ChibiOS: increase monitor thread stack to 768 bytes
attempt to fix issue #14582
2020-06-23 07:31:13 +10:00
Andrew Tridgell
f1cf4afde7 HAL_ChibiOS: fixed default CubeOrange pin for 2nd current sensor 2020-06-23 07:31:08 +10:00
Andrew Tridgell
dc6257fafc HAL_ChibiOS: added Holybro Pix32v5 2020-06-12 21:23:46 +10:00
MATEKSYS
b741980a08 HAL_ChibiOS: MatekH743: move baro to I2C2 bus 2020-06-12 13:17:10 +10:00
Andrew Tridgell
a15108fee4 HAL_ChibiOS: fixed build with our old compiler
gcc 4.9 doesn't like static_assert() in C code
2020-06-12 13:17:07 +10:00
duccan
7415a714bc AP_HAL_ChibiOS: Added support for Bitcraze Crazyflie 2.1
Rework after review:
- Kept old IMU and barometer definition of crazyflie 2.0 in hwdef
- Added comment regarding soft-reset command
- Added defaults.parm for crazyflie
2020-06-12 13:17:02 +10:00
duccan
5c979f7989 AP_HAL_ChibiOS: Added support for Bitcraze Crazyflie 2.1 2020-06-12 13:17:00 +10:00
James Jacobsson
104ac049c6 AP_HAL_Chibios: Adjust MatekF765-Wing voltage and current scales
The new values matches the ones from here:
http://www.mateksys.com/?portfolio=f765-wing#tab-id-5

Also verified to be a lot more accurate in real life.
2020-06-12 13:16:56 +10:00
CUAVcaijie
eb6d2fe8c0 HAL_ChibiOS:Adapt to CUAV Nora V1.2 hardware 2020-06-12 13:16:54 +10:00
pkocmoud
3ca5619d52 HAL_ChibiOS: Added support for mRo Pixracer Pro flight controller 2020-06-12 13:16:51 +10:00
Andrew Tridgell
4aa00e6540 HAL_ChibiOS: disable ROMFS hwdef.dat for 4.0 release
will be in 4.1
2020-05-22 12:18:17 +10:00
bugobliterator
f7efd57055 HAL_ChibiOS: use FIFO mode instead of Queue mode in FDCAN driver 2020-05-22 12:18:14 +10:00
Andrew Tridgell
212473ccb0 HAL_ChibiOS: fixed CubeSolo hwdef.dat 2020-05-11 18:15:42 +10:00
Andrew Tridgell
c9d5b8056e HAL_ChibiOS: resync for 4.0 update 2020-05-11 18:15:42 +10:00
Andrew Tridgell
f1ae653159 HAL_ChibiOS: switch non-composite USB ID
use newly allocated 0x1209/0x5740
2020-05-11 18:15:42 +10:00
Andrew Tridgell
6968d67a05 HAL_ChibiOS: set CS pins high while in bootloader
this appears to be the root cause of the parameter resets on
CubeOrange. We need to ensure the CS pin is not floating or random
noise on the SPI bus for FRAM can cause the FRAM to become corrupt
2020-05-11 18:15:40 +10:00
Andrew Tridgell
a607054d6f HAL_ChibiOS: improve error messages for flashing bootloader
send progress as statustext messages
2020-05-11 18:15:40 +10:00
Andrew Tridgell
31830d9e5a HAL_ChibiOS: suppress SPI timeout error for expected delay 2020-05-11 18:15:40 +10:00
Andrew Tridgell
ab9330f04f HAL_ChibiOS: implement in_expected_delay() 2020-05-11 18:15:40 +10:00
Andrew Tridgell
32d8769823 HAL_ChibiOS: fixed race condition in storage write
we could mark a line as clean when it should be dirty if we lose a
race condition between storage thread and writer
2020-05-11 18:15:40 +10:00
Andrew Tridgell
d2bd985cd5 HAL_ChibiOS: save 3k of flash on MatekF405-Wing
disable SMBUS and fuel battery monitors
2020-05-11 18:15:40 +10:00
bugobliterator
cec3da0df1 HAL_ChibiOS: deprecate realloc for ChibiOS build, so as to return error when used 2020-05-11 18:15:40 +10:00
bugobliterator
1c7d34ba5c AP_HAL_ChibiOS: implement standard realloc method 2020-05-11 18:15:40 +10:00
Andrew Tridgell
7e3d7e4484 HAL_ChibiOS: use default USB IDs for fmuv3 2020-05-11 18:15:39 +10:00
Matt Lawrence
5837217c32 AP_HAL_ChibiOS: Fix waf --default-parameters
If a defaults.parm file was present in the hwdef, waf ignored the --default-parameters=xyz.parm command line argument.  This will allow it to use that command line argument specified file.
2020-05-11 18:15:39 +10:00
Peter Hall
07dc4096fa AP_HAL_ChibiOS: add support for ProfiLEDs 2020-05-11 18:15:39 +10:00
Andrew Tridgell
ba4c094d07 HAL_ChibiOS: reserve plenty of DMA memory for luminousbee4 2020-05-11 18:15:39 +10:00
Andrew Tridgell
533420674f HAL_ChibiOS: allow more than 32 WS2812 LEDs on a pin 2020-05-11 18:15:39 +10:00
Andrew Tridgell
86bee3cc4e HAL_ChibiOS: added luminousbee4 flight controller 2020-05-11 18:15:39 +10:00
Peter Barker
dc785b61a9 AP_HAL_ChibiOS: make a static-const hal a reference to the external symbol 2020-05-11 18:15:39 +10:00
Andrew Tridgell
81cd2b9d97 HAL_ChibiOS: switched to new USB VID for dual-CDC boards 2020-02-23 07:43:01 +11:00
Andrew Tridgell
53b5564466 HAL_ChibiOS: produce more accurate clocks for DShot and PWM 2020-02-23 07:42:09 +11:00
Andrew Tridgell
54a41cf8ab HAL_ChibiOS: raised timer clocks to 200MHz
this gives more flexibility in setting up timers for DShot
2020-02-23 07:42:02 +11:00
Andrew Tridgell
126c6e589b HAL_ChibiOS: fixed output string for non-DMA capable chan
this fixes a problem where the user requests DShot (which rquired DMA)
on an output channel which cannot allocate a DMA channel. We end up
sending normal PWM, so the string representation of the output modes
should reflect that
2020-02-23 07:41:44 +11:00
Randy Mackay
92408e0c52 AP_HAL: add RCOutput::get_output_mode_banner 2020-02-23 07:41:36 +11:00
Andrew Tridgell
8a63c8b255 HAL_ChibiOS: fixed default fast sampling on CubeOrange and Durandal 2020-02-05 12:49:10 +11:00
Andrew Tridgell
f3066c978d HAL_ChibiOS: fixed spektrum RC input on Pixracer
RCININT is inverted compared to RCIN, so need to enable SBUS_INV pin
2020-02-05 10:51:31 +11:00
Andrew Tridgell
f5aa9d5e58 HAL_ChibiOS: fixed skyviper-v2450 build 2020-02-05 10:51:31 +11:00
Andrew Tridgell
08f00d6a40 HAL_ChibiOS: fixed bitmask error on storage erase 2020-02-05 10:51:31 +11:00
Andrew Tridgell
0ef25a02f5 HAL_ChibiOS: use recursive mutex for RCInput 2020-02-05 10:51:30 +11:00
Andrew Tridgell
3ba2f51131 HAL_ChibiOS: implement pulse_input_enable()
and cleanup use of mutexes in RC input
2020-02-05 10:51:30 +11:00