Peter van der Perk
7a747b43f6
Initial boardconfig working with FMUK66
2021-10-07 10:09:01 -04:00
Peter van der Perk
4044fbd4a0
Initial Kconfig implementation in CMake
...
Used fmuk66-v3 as test case
2021-10-07 10:09:01 -04:00
Daniel Agar
bbfaa4694c
boards: cleanup serial RX DMA hrt_call_every
...
- remove ts_to_abstime dependency
2021-10-06 14:39:59 -04:00
Daniel Agar
c271a9e3e6
add sd_stress to all boards and run on test rack
2021-10-04 17:38:31 -04:00
Daniel Agar
6d78054f50
mavlink USB auto start/stop on boards with VBUS
...
- no longer start sercon or mavlink usb by default
- on USB connection (VBUS) monitor serial USB at low rate and start Mavlink if there's a HEARTBEAT or nshterm on 3 consecutive carriage returns
- the mavlink USB instance is automatically stopped and serdis executed if USB is disconnected
- skipping Mavlink USB (and sercon) saves a considerable amount of memory on older boards
2021-10-03 15:32:54 -04:00
bresch
1443f773da
mbe: add module to targets
2021-10-02 21:25:21 -04:00
bresch
5874b1f87c
mc atune: add module to all targets
...
- adjust flash constrianed targets to fit
2021-10-02 18:12:05 -04:00
David Sidrane
797bd9592b
mxp_ucans32k146:using padding of 8
2021-09-29 14:34:42 -04:00
Peter van der Perk
360c3781f3
UCANS32K146-01 Add CAN tranceiver self test
2021-09-29 09:36:14 -07:00
Daniel Agar
3d56836850
boards: nxp_fmurt1062-v1 disable extra barometers to save flash
2021-09-15 12:59:36 -04:00
Beat Küng
759d03e5f9
nxp/fmurt1062-v1: disable modules to reduce flash
2021-09-11 14:08:41 -04:00
Beat Küng
c5c80e31b6
boards: remove DIRECT_INPUT_TIMER_CHANNELS from board_config.h
2021-09-08 16:10:24 -04:00
Beat Küng
a8e75d174c
boards: remove BOARD_HAS_PWM and use DIRECT_PWM_OUTPUT_CHANNELS
2021-09-08 16:10:24 -04:00
Daniel Agar
3423c5e48a
boards: nxp_fmurt1062-v1_default disable attitude_estimator_q and local_position_estimator to save flash
2021-08-18 18:06:22 -04:00
Daniel Agar
2b581ef407
platforms/nuttx: s32k14x & s32k1xx add i2c_hw_description.h
2021-08-17 09:54:50 -04:00
David Sidrane
bb913ae11a
system_load:Track Dynamic PID hash
2021-08-13 14:22:00 -04:00
David Sidrane
181e82dd17
nxp_fmurt1062-v1: Update nsh defconfig NuttX 10.1.0+
2021-08-13 14:22:00 -04:00
David Sidrane
89c553b161
nxp_fmuk66-v3: Update nsh defconfig NuttX 10.1.0+
2021-08-13 14:22:00 -04:00
David Sidrane
ea1538a04f
nxp_fmuk66-v3: Update socketcan defconfig NuttX 10.1.0+
2021-08-13 14:22:00 -04:00
David Sidrane
6ad56c537f
nxp_fmuk66-e: Update nsh defconfig NuttX 10.1.0+
2021-08-13 14:22:00 -04:00
David Sidrane
71d5de5715
nxp_fmuk66-e: Update socketcan defconfig NuttX 10.1.0+
2021-08-13 14:22:00 -04:00
David Sidrane
44b29b6126
nxp_ucans32k146: Update nsh defconfig NuttX 10.1.0+
2021-08-13 14:22:00 -04:00
Beat Küng
0e1f3a2d62
px4_add_board: infer VENDOR, MODEL & LABEL from cmake file name
2021-08-03 10:36:25 +02:00
David Sidrane
d6ee418cdf
nxp_fmuk66:Add Serial RX DMA on Console
2021-07-20 18:22:35 -04:00
David Sidrane
78ecad6170
Revert "nxp_fmuk66-v3:DMA Poll not needed"
...
This reverts commit 962f02220a
.
2021-07-20 07:52:10 -07:00
David Sidrane
89dff2d31c
Revert "nxp_fmuk66-e:DMA Poll not needed"
...
This reverts commit 39d684958d
.
2021-07-20 07:52:10 -07:00
Kirill Shilov
e13884410b
heater: added support of inverted IMU heat controller output
2021-07-20 10:37:53 -04:00
Daniel Agar
774ad80ba0
systemcmds/tests: split out microbenchmarks and remove obsolete tests
...
- reorganize Jenkins HIL tests
2021-07-18 18:02:33 -04:00
David Sidrane
962f02220a
nxp_fmuk66-v3:DMA Poll not needed
2021-07-02 09:08:10 -07:00
David Sidrane
39d684958d
nxp_fmuk66-e:DMA Poll not needed
2021-07-02 09:08:10 -07:00
David Sidrane
2a7c95d7ac
nxp_fmuk66-v3:Use eDMA
2021-07-02 09:08:10 -07:00
David Sidrane
cd8182ba3c
nxp_fmuk66-e:Use SPI DMA
2021-07-02 09:08:10 -07:00
David Sidrane
05bdef867d
Track NuttX syslog change
2021-06-16 17:07:47 +02:00
David Sidrane
62fd132047
boards:Use inttypes
...
nxp_ucans32k146:Fix constant
spracing_h7extreme:Use inttypes
2021-06-16 17:07:47 +02:00
echoG
6bc09138c1
Adding BatMon smart battery as a module and refactoring SMBUS based SBS 1.1 spec to a library
2021-06-09 12:17:45 -04:00
David Sidrane
32e92ba817
Revert:Pull downs - bad levels cause motor spins
2021-06-01 15:18:47 -04:00
Peter van der Perk
ed0b5a7c1a
FMUK66 update socketcan configs
2021-05-28 08:03:58 -07:00
Daniel Agar
c3884b5bc1
fake_imu (formally fake_gyro) updates for testing gyro filtering
...
- fake_imu now publishes sine sweeps over 10 seconds
- accel is also published so that fake IMU can be selected when the only option
2021-05-17 20:26:25 -04:00
Peter van der Perk
0c926250a2
UAVCANv1 cleanup and uORB over UAVCANV1 move to own subclass
2021-05-08 13:03:02 +02:00
David Sidrane
633fbe147a
nxp_fmuk66-v3: Initalize PWM as input with Pull Downs
2021-05-05 20:48:06 +02:00
David Sidrane
118839e75c
nxp_fmuk66-e: Initalize PWM as input with Pull Downs
2021-05-05 20:48:06 +02:00
Peter van der Perk
9a085126fd
FMUK66 free up some RAM
2021-05-05 18:52:56 +02:00
Peter van der Perk
62dc926891
Add support for UCANS32K146B board revision
2021-05-04 22:13:24 -04:00
Daniel Agar
58b40fbbb9
boards: move testing to dedicated test variants
2021-04-14 09:21:31 +02:00
Daniel Agar
ad934b4911
icm20948 i2c passthrough driver for ak09916 magnetometer (Here+ GPS/compass)
...
- include icm20948 on most boards by default
- create more test variants for default boards near flash limit (cuav_nora_test, cuav_x7pro_test, holybro_durandal-v1_test)
2021-04-04 21:18:16 -04:00
Daniel Agar
6874e9fba0
boards: NuttX disable all NSH memory debug commands (mb, mh, mw) by default
...
- closes https://github.com/PX4/PX4-Autopilot/issues/17062
2021-03-30 09:23:43 -04:00
Daniel Agar
3d667b1675
delete unused drivers/lights/blinkm
2021-03-28 19:21:29 -04:00
Daniel Agar
631d1647d3
boards: minimize unnecessary differences in default variants
2021-03-28 14:46:47 -04:00
Daniel Agar
e57aaaaa5e
rotate accel/gyro FIFO before publish and fix angular velocity filter resets
...
- rotates accel & gyro FIFO data before publication both to simplify downstream usage (including log review) and fix other issues
- to best handle int16_t data rotations are now either performed with swaps if possible, otherwise promoted to float, rotated using the full rotation matrix, then rounded back to int16_t
- fix sensors/vehicle_angular_velocity filter reset both with proper rotation and new calibration uncorrect helper
- in FIFO case filtering is done before calibration is applied, but we need to handle a possible reset from a completely different sensor (vehicle body angular velocity -> sensor frame uncorrected data)
2021-03-22 12:01:12 -04:00
Daniel Agar
2257c3767e
simple gyro auto calibration module
2021-03-15 09:46:47 +01:00
David Sidrane
28681405ae
nxp_fmuk66-v3:Disable CONFIG_MMCSD_MULTIBLOCK (_DISABLE=y)
2021-03-12 20:45:45 +01:00
David Sidrane
3e443f7dcc
nxp_fmuk66-e:Disable CONFIG_MMCSD_MULTIBLOCK (_DISABLE=y)
2021-03-12 20:45:45 +01:00
Daniel Agar
f8eaa6e46b
ROMFS handle bl_update generically
...
- include all available legacy bootloaders
2021-03-11 00:38:18 +01:00
Daniel Agar
4d288512b5
add board architecture specific init defaults
2021-03-09 19:59:41 +01:00
Daniel Agar
19de1e57e3
gyro_fft promote to modules and include on all boards
2021-03-05 10:56:54 -05:00
David Sidrane
6542c6e58b
nxp_fmuk66-e:Add rtps build
2021-03-02 15:49:03 -05:00
Daniel Agar
6482120d9a
sensors/vehicle_angular_velocity: use full raw FIFO data (sensor_gyro_fifo) if available
2021-02-25 10:06:17 -05:00
Beat Küng
7e33d03470
drivers: remove tap_esc
...
- it's not used anymore
- it would need a refactoring to use mixer_module
2021-02-25 09:28:37 -05:00
David Sidrane
fd0494555c
canbootloader:stm32_boarddeinitialize->board_deinitialize
2021-02-24 19:20:15 +01:00
David Sidrane
dd3c3098f2
nxp_ucans32k146:Add Can Bootloader build
...
nxp_ucans32k146:Relocation for Bootloader
nxp_ucans32k146:can_boot enable CAN
nxp_ucans32k146:Save Space use Non Optimize memcpy
nxp_ucans32k146:Increase to 24K
nxp/ucans32k146:Canbootloader LED Driver
nxp_ucans32k146:Can bootloader shut down CAN
nxp_ucans32k146:Use NVMEEPROM for Paramaters
nxp_ucans32k146:Use bootloader AppDescriptor
px4 mtd:Support onchip emulated eeprom
2021-02-24 19:20:15 +01:00
Daniel Agar
11ad41f7cb
delete old imu/mpu6000 driver
2021-02-23 15:58:36 -05:00
Daniel Agar
6cf06319d2
boards: nxp_fmurt1062-v1 remove irlock and lights/blinkm to save flash
2021-02-23 13:23:36 -05:00
Daniel Agar
414f9f81d9
move fake GPS to standalone module
2021-02-20 14:13:36 -05:00
Daniel Agar
2a47583be5
boards: nxp/fmurt1062-v1 disable vmount
2021-02-17 13:54:34 -05:00
Daniel Agar
ab0d0fd0be
uORB move to PX4 platform layer
2021-02-17 11:25:56 -05:00
Daniel Agar
44df0fb7a2
Analog Devices ADIS16448 rewrite
...
- new IMU driver structure with state machine (no sleeps in bus thread)
- verify all configured registers and trigger reset on failure
- detect if DIO1 or DIO2 are actually connected for data ready interrupt usage
- don't use CRC-16 on burst transfers except for verified lots
2021-02-16 10:29:07 +01:00
Daniel Agar
fb2a199621
delete unmaintaned mkblctrl driver
2021-02-14 10:38:15 +01:00
David Sidrane
3570e1b4da
nxp_fmuk66-e: Sync defconfig with latest V3 changes
2021-02-09 23:53:38 -05:00
David Sidrane
df3e94bcff
nxp_fmuk66-e:Disabled icm42688p until load issue is resolved
2021-02-09 23:53:38 -05:00
David Sidrane
4610692813
nxp_fmuk66-e:Set CONFIG_CDCACM_PRODUCTSTR
2021-02-09 23:53:38 -05:00
David Sidrane
b4c17cc8e7
nxp_fmuk66-e:Set Rotation of bmi88
2021-02-09 23:53:38 -05:00
David Sidrane
8c8f48530e
nxp_fmuk66-e:Fix missing line rc.board_defaults
2021-02-09 23:53:38 -05:00
David Sidrane
264efde0c9
nxp_fmuk66-v3:SD enable Multi block
2021-02-09 23:50:58 -05:00
Daniel Agar
8f0918a16b
boards: remove unused linker __param section
2021-02-08 23:22:48 -05:00
Peter van der Perk
8242968b2b
UAVCAN v1 GPS demo with MAVCAN autoconfigure
2021-02-07 17:18:45 +01:00
Peter van der Perk
5f8ad65c40
FMUK66 NuttX 10 SocketCAN initialization
2021-02-07 17:18:45 +01:00
Peter van der Perk
e5d29d4079
UAVCANv1 demo UAVCAN146 <-> BMS-722 is working
...
Fixed UAVCAN146 linker script that caused CXX initalization to wrong
Enabled uORB listener command
Updated UAVCANv1 msg definition
Known isssue: PX4 params are not working on the UAVCAN146
2021-02-07 17:18:45 +01:00
Daniel Agar
58ca575871
UAVCAN v1 bridge
...
- NuttX stm32f4/stm32f7 uses character device driver
- NuttX kinetis and s32k uses socketcan
2021-02-07 17:18:45 +01:00
Peter van der Perk
0c74028976
FMUK66 Decrease telnetd ram usage
2021-02-01 11:50:43 -05:00
Daniel Agar
78dff6adcb
boards: add CONSTRAINED_MEMORY build option
...
- currently the main change is that it reduces the max number of ORB multi instances to 4, but usage will be expanded as needed
- limits number of EKF2 multi instances to 2.
- enabled on all cortex m4 boards
2021-02-01 08:56:22 +01:00
Daniel Agar
1ec10bfcc6
boards: disable CONFIG_ARMV7M_LAZYFPU again ( #16573 )
...
- this was causing hard faults on the CUAV Nora and possibly other boards, disabling everywhere until we fully understand the root cause
2021-01-17 22:40:21 -05:00
Daniel Agar
cb74cb8692
boards: enable CONFIG_ARMV7M_LAZYFPU everywhere
2021-01-12 09:04:38 +01:00
Matthias Grob
7545249215
Add flight_mode_manager to all targets with mc_pos_control
2020-12-30 10:25:08 -05:00
David Sidrane
1b70e5f978
nxp_fmurt1062-v1:Rev B will be Using active CD
2020-12-04 12:59:09 -05:00
David Sidrane
394c2edea3
nxp_fmurt1062-v1:Added Single wire support for SBUS
2020-12-04 12:59:09 -05:00
David Sidrane
d4a78cea5a
nxp_fmurt1062-v1:Correct intial state of PIO_nVDD_5V_{HIPOWER|PERIPH}_E to OFF
2020-12-04 12:59:09 -05:00
David Sidrane
67a78a70ea
nxp_fmurt1062-v1:Telem 1 & 2 Swapped to have real HW HS on Telm2
2020-12-04 12:59:09 -05:00
David Sidrane
1dd22acd12
nxp_fmurt1062-v1:Fix memory overflow
2020-12-04 12:59:09 -05:00
David Sidrane
0ca7783ea5
nxp_fmurt1062-v1:Refreshed defconfig fixing 'if-then' disabled
2020-12-04 12:59:09 -05:00
David Sidrane
22bc176885
Added mft for queries
2020-12-02 20:40:23 -05:00
David Sidrane
74a0693040
nxp_ucans32k146: Use px4_platform_configure
2020-12-02 20:40:23 -05:00
David Sidrane
ad1c603af4
nxp_fmurt1062-v1: Use px4_platform_configure
2020-12-02 20:40:23 -05:00
David Sidrane
65b3b0b2e7
nxp_fmuk66-v3: Use px4_platform_configure
2020-12-02 20:40:23 -05:00
David Sidrane
6f27deab40
nxp_fmuk66-e: Use px4_platform_configure
2020-12-02 20:40:23 -05:00
David Sidrane
0db70ea475
nxp_fmurt1062-v1:Track fixes on schematic USDHC CD now correct polarity
2020-11-20 00:48:31 -05:00
David Sidrane
136b6a3509
nxp_fmurt1062-v1:Track fixes on schematic OC/EN had been swapped
2020-11-20 00:48:31 -05:00
Jari van Ewijk
a246defb68
NXP UCANS32K146: Configure PWM timer for production version
2020-11-18 04:54:38 -08:00
Daniel Agar
880dc6accd
ekf2: compile at MAX_CUSTOM_OPT_LEVEL
2020-11-11 20:17:52 -05:00
David Sidrane
defa437b88
Add HY-SRF05 ultrasonic sensor driver
...
* nxp_fmuk66-e: Use srf05 distance sensor
* nxp_fmuk66-v3: Use srf05 distance sensor
2020-11-08 13:25:58 -05:00
Daniel Agar
c60743b306
boards: NuttX increase file name max 32 -> 40
2020-11-08 12:51:59 -05:00
David Sidrane
f02d490e89
rddrone-uavcan146:Rename to ucans32k146
2020-11-04 03:37:06 -08:00
Daniel Agar
233949a377
NuttX upgrade to 10.0.0+ defconfig changes
2020-10-28 14:25:25 -04:00
David Sidrane
d8a03d04a7
nxp_rddrone-uavcan146:Fixed wrong SPI CLK Pin
2020-10-23 09:18:24 +02:00
David Sidrane
78221ee3d2
s32k1xx:Add PWM LED Support
2020-10-15 12:52:38 -07:00
David Sidrane
ddc161a10a
nxp_rddrone-uavcan146:Add init to start PWM
2020-10-15 12:52:38 -07:00
David Sidrane
6394e06173
nxp_rddrone-uavcan146:Compresed ROM FS and friends
2020-10-15 12:52:38 -07:00
David Sidrane
59213ed8f6
nxp_rddrone-uavcan146:Add the pwm and suppor
2020-10-15 12:52:38 -07:00
David Sidrane
254ad40ad8
nxp_rddrone-uavcan146:Init the timers
2020-10-15 12:52:38 -07:00
David Sidrane
4099d38ea8
nxp_rddrone-uavcan146: Add arch_io
2020-10-15 12:52:38 -07:00
David Sidrane
d3fdb2b6ad
nxp_rddrone-uavcan146 add board functions supporting pwm_out
2020-10-15 12:52:38 -07:00
David Sidrane
d4fb063651
nxp_rddrone-uavcan146:boards Add KEEP on init_section
2020-10-15 12:52:38 -07:00
Jari van Ewijk
35dce9aff6
NXP UCANS32K: Add Support for PWM
...
S32K1XX HRT: Allow any channel of any FTM timer to be used
NXP UCANS32K: Enable additional FlexTimers and use FTM5 for HRT
NXP UCANS32K - Change FTM clocksource to system oscillator
NXP UCANS32K - Only need one FlexTimer and channel for PWM output
NXP UCANS32K will have only one PWM header by default
S32K1XX support FlexTimers beyond FTM3
S32K1XX io_timer.c - replace references to Kinetis
S32K1XX io_timer.c correct register names
S32K1XX input_capture.c and pwm_servo.c replace references to Kinetis
2020-10-15 12:52:38 -07:00
Beat Küng
274ccaf57c
system: include shutdown lock to BOARD_INDICATE_ARMED_STATE
...
BOARD_INDICATE_ARMED_STATE was only set during arming, so an external
component might have reset the board during param save, leading to param
loss.
This extends the API to trigger the arming state also while the shutdown
lock is taken.
2020-10-09 08:23:47 +02:00
Tanja Baumann
b5ebdb8e41
add system command to get and set system time
...
* add system_time command for all boards
2020-09-26 13:09:01 -04:00
David Sidrane
65ddf98d76
nxp_rddrone-uavcan146: Updates for NuttX 9.1.0+ External schedule_note
2020-09-16 21:32:04 -04:00
David Sidrane
94b5c961bc
nxp_fmurt1062-v1: Updates for NuttX 9.1.0+ External schedule_note
2020-09-16 21:32:04 -04:00
David Sidrane
a7365100f4
nxp_fmuk66-v3: Updates for NuttX 9.1.0+ External schedule_note
2020-09-16 21:32:04 -04:00
David Sidrane
1936ead0b4
nxp_fmuk66-v3: Updates for NuttX 9.1.0+ External schedule_note
2020-09-16 21:32:04 -04:00
David Sidrane
3f82b19fc7
nxp_fmuk66-e: Updates for NuttX 9.1.0+ External schedule_note
2020-09-16 21:32:04 -04:00
David Sidrane
afad60a0bc
nxp_fmuk66-e: Updates for NuttX 9.1.0+ External schedule_note
2020-09-16 21:32:04 -04:00
David Sidrane
f9adf861dc
spracing_h7extreme Updates for NuttX 9.1.0-
2020-09-16 21:32:04 -04:00
David Sidrane
ddacf357a7
nxp_rddrone-uavcan146 Updates for NuttX 9.1.0-
2020-09-16 21:32:04 -04:00
David Sidrane
5698bc254a
nxp_fmurt1062-v1:Track PX4 Sensor changes
2020-09-16 21:32:04 -04:00
David Sidrane
1abe88df61
nxp_fmurt1062-v1 Updates for NuttX 9.1.0-
2020-09-16 21:32:04 -04:00
David Sidrane
aa67fbdbcb
nxp_fmuk66-e: Updates for NuttX 9.1.0-
2020-09-16 21:32:04 -04:00
David Sidrane
8a673c8a3d
nxp_fmuk66-v3 Updates for NuttX 9.1.0-
...
nxp_fmuk66-v3: defconfig MMCSD enable multiblock
nxp_fmuk66-v1:Disable multiblock as it fails
2020-09-16 21:32:04 -04:00
Peter van der Perk
0caad08dd5
Added RTPS target for FMUK66-V3
2020-09-16 09:42:34 -04:00
SalimTerryLi
c037dbef21
Rename and move src/drivers/adc to src/drivers/adc/board_adc
2020-09-07 23:09:20 -04:00
David Sidrane
fdcd9b2de1
npx_fmurt1062-v1:CONFIG_BOARD_CRASHDUMP is not supported
2020-09-03 14:55:09 +02:00
David Sidrane
5d5a767143
npx_fmuk66:CONFIG_BOARD_CRASHDUMP is not supported
2020-09-03 14:55:09 +02:00
Daniel Agar
7569722821
iSentek IST8310 magnetometer rewrite
...
- simple state machine to reset, configure, etc
- checked register mechanism (sensor will reset itself on configuration error)
- configured in 16 bit mode (1320 LSB/Gauss instead of 330 LSB/Gauss)
- adjusted orientation handling in driver to match datasheet as closely as possible
- in many external compass units the rotation was wrong and very difficult to actual determine how to set correctly
2020-09-02 13:14:45 -04:00
Daniel Agar
2c3441aa90
boards: reduce CONFIG_NFILE_DESCRIPTORS 15 -> 12
...
- reduced now that calibration uses uORB::Subscription
- can likely be reduced further (perhaps < 8) with additional testing
2020-08-21 10:12:13 -04:00
David Sidrane
e67486d603
nxp:Add support for rev E HW nxp_fmuk66-e
2020-07-31 09:46:27 -04:00
David Sidrane
f8b6de24c7
nxp_fmurt1062-v1:Assign board_id
2020-07-31 09:46:27 -04:00
Daniel Agar
e3d31a881e
boards: NuttX disable posix message queues
2020-07-17 17:00:21 -04:00
Jari van Ewijk
fe7fcb101f
NXP FMUK66 - Fix VDD_3V3_SENSORS_EN polarity
2020-06-29 07:45:47 -07:00
David Sidrane
df73662d66
nxp_fmuk66-v3:Add Full networking support
2020-06-22 18:43:03 -04:00
Daniel Agar
e819f99064
new Bosch BMI055 IMU driver using FIFOs and DRDY
...
- accel & gyro FIFOs enabled
- FIFO watermark on data ready interrupt
- sensor side filtering completely disabled
- gyro now respects `IMU_GYRO_RATEMAX` (up to 2 kHz)
- saves a few % cpu (at default rate)
2020-06-15 10:19:14 -04:00
Daniel Agar
6f6efd60b7
boards: centralize optional external I2C sensor start
...
- configured with new parameter SENS_EXT_I2C_PRB
2020-06-10 09:04:13 -04:00
Daniel Agar
5e7d2e830d
boards: delete old board.h boilerplate
2020-06-08 19:10:33 -04:00
Daniel Agar
5507c15bdc
boards: move rgbled_pwm startup to appropriate boards
2020-06-08 16:49:46 -04:00
Daniel Agar
746a8f5cf9
commander: reboot/shutdown usability fixes
...
- always check with state machine before reboot/shutdown
- respect BOARD_HAS_POWER_CONTROL (shutdown from command, low battery, power button)
- px4_shutdown_request add optional delay and always execute from HPWORK
- px4_shutdown_request split out px4_reboot_request
2020-05-06 13:53:54 -04:00
Daniel Agar
28d2aca699
boards: include all procfs entries on boards that aren't flash constrained
2020-05-01 20:59:57 -04:00
Daniel Agar
8d0c92003a
boards: remove all CONFIG_NXFONTS_DISABLE*
2020-05-01 20:59:57 -04:00
Daniel Agar
76cfd8fa39
boards: add nxp fmuk66-v3 and rddrone-uavcan146 socketcan builds
2020-04-30 15:04:08 -04:00
Daniel Agar
06478d9997
delete obsolete SENSORIOCSPOLLRATE/SENSORIOCRESET and systemcmds/config
2020-04-15 23:33:41 -04:00
mcsauder
6548fde024
Whitespace cleanup to quiet new blank line at EOF git hook.
2020-04-15 23:00:39 -04:00
Daniel Agar
66eacd24bc
px4_fmu-v5_stackcheck: update stack sizes and add to Jenkins
...
- increase stack sizes to run cleanly under stackcheck
- this is likely overkill for most boards, but using stackcheck to set our minimum ensures we have a very safe margin on regular builds and it's something we can currently afford
- remove holybro_durandal-v1_stackcheck from test rack (there's only one unit)
2020-04-11 21:16:10 -04:00
Daniel Agar
7aa7f0ed95
switch remaining boards to new InvenSense IMU drivers
2020-04-07 09:59:12 -04:00
Daniel Agar
ad559a66a1
examples: add simple work_item example module
2020-04-06 09:43:55 -04:00
Daniel Agar
40b1043e12
NuttX boards minor lpwork and init stack increases
2020-04-02 23:39:17 -04:00
Daniel Agar
15332a7e56
boards: reduce CONFIG_NFILE_DESCRIPTORS 20 -> 15
2020-04-01 16:17:14 -04:00
Daniel Agar
ca81175b07
rename drivers/px4fmu -> drivers/pwm_out
...
- split out header
2020-03-31 19:12:31 -04:00
Peter van der Perk
9490f41f85
rddrone-uavcan146 removed shared clock between hrt & rtc
...
Removed non-existing SW2 button
Fixed SW3 button pinmux
Added FlexCAN pin definition
hrt use external sirc clock
rtc use 32khz lpo clock
2020-03-28 06:31:11 -07:00
Daniel Agar
44bec269b0
boards: update all NuttX configs CONFIG_NSH_MAXARGUMENTS 12 -> 15
2020-03-25 17:59:22 -04:00
Peter van der Perk
a4e6f96365
rddrone-uavcan146: HRT & RTC timer support
2020-03-25 16:37:28 -04:00
Beat Küng
7ea8dff8db
spi: do not deselect other chip-selects
...
And make sure on reset & init everything is deselected.
Reduces CPU load on a pixhawk cube by almost 1%.
2020-03-24 09:46:20 -04:00
Beat Küng
6a41c9e417
refactor fxos8701cq: use driver base class
2020-03-24 09:46:20 -04:00
Beat Küng
5fa4cd1019
refactor fxas21002c: use driver base class
2020-03-24 09:46:20 -04:00
Daniel Agar
974cb30b6d
nxp_rddrone-uavcan146 ignore i2c for now (platform support is incomplete)
2020-03-24 09:46:20 -04:00
Beat Küng
b156fe5787
boards: remove deprecated SPI + I2C defines from board_config.h
...
chip-selects are deselected in stm32_spiinitialize()
2020-03-24 09:46:20 -04:00
Beat Küng
f74474dd55
fmuk66-v3: fix spi bus numbering passing to px4_spibus_initialize
...
Fixes an error on bootup ([boot] FAILED to initialize SPI port 0). Other
than that, everything was working.
2020-03-24 09:46:20 -04:00
Beat Küng
6588dd0861
refactor icm20948: use driver base class
2020-03-24 09:46:20 -04:00
Beat Küng
00280d55c2
refactor rm3100: use driver base class
2020-03-24 09:46:20 -04:00
Daniel Agar
8738c26426
boards: enable NuttX SPI DMA buffers
...
- update to NuttX with stm32f4 and stm32f7 SPI DMA internal buffers
- remove explicit DMA buffer allocations from new IMU drivers
- restore original BOARD_DMA_ALLOC_POOL_SIZE
- decrease SPI DMA thresholds based on fmu-v2/v3/v4/v5 bench testing
2020-03-22 19:24:26 -04:00
Beat Küng
8ebde51648
refactor hmc5883: use driver base class
...
Removes the calibration on startup, as these values were overwritten by
the system calibration values anyway.
So the only difference is that if all calibration scales were equal to 1,
the driver startup would have failed.
2020-03-17 23:31:17 -04:00
Beat Küng
47b329cc54
refactor bmm150: use driver base class
2020-03-17 23:31:17 -04:00
Beat Küng
1710cd9648
refactor px4flow: use driver base class
2020-03-17 23:31:17 -04:00
Beat Küng
aeadf54a74
refactor bmp280: use driver base class
2020-03-17 23:31:17 -04:00
Beat Küng
22a38453ab
refactor bmi055: use driver base class
2020-03-17 23:31:17 -04:00
Beat Küng
969a77f889
refactor mpu6000: use driver base class
2020-03-17 23:31:17 -04:00
Beat Küng
be0a205438
refactor ist8310: use driver base class
2020-03-17 23:31:17 -04:00
Beat Küng
58f386a81c
refactor pmw3910: use driver base class
2020-03-17 23:31:17 -04:00
Daniel Agar
f9794e99f8
move hover_thrust_estimator to new module (mc_hover_thrust_estimator)
...
* MC_HTE: unitialize with hover_thrust parameter
* MC_HTE: constrain hover thrust setter between 0.1 and 0.9
* MC_HTE: integrate with land detector and velocity controller
* MCHoverThrustEstimator: Always publish an estimate even when not fusing measurements. This is required as the land detector and the position controller need to receive a hover thrust value.
* MC_HTE: use altitude agl threshold to start the estimator
local_position.z is relative to the origin of the EKF while dist_bottom
is above ground
Co-authored-by: bresch <brescianimathieu@gmail.com>
2020-03-11 21:20:54 -04:00
Daniel Agar
46a09b711f
boards: increase STDIO buffer size where we can afford it
2020-03-11 17:19:44 -04:00
Daniel Agar
505afc6063
boards: increase LPWORKSTACKSIZE 1536 -> 1600
2020-03-10 12:53:01 -04:00
Beat Küng
335623e11d
SPI config: use enum to specify bus
2020-03-10 10:11:43 -04:00
Beat Küng
1851665fab
boards: add new spi+i2c config
...
Chip-select and SPI initialization uses the new config, whereas the drivers
still use the existing defines.
The configuration in board_config.h can be removed after all drivers are
updated.
2020-03-10 10:11:43 -04:00
Daniel Agar
4698a09b98
delete unmaintained outback challenge (OBC) bottle drop example
2020-03-05 14:09:31 -05:00
David Sidrane
cad3a811d2
nxp_fmurt1062-v1:Run from OCRAM
2020-03-02 10:20:33 -08:00
David Sidrane
3ed643f3d7
fmurt1062-v1:Update imxrt_flexspi_nor_boot configurable
2020-03-02 10:20:33 -08:00
Daniel Agar
d7c3e1066a
uavcannode updates and px4_fmu-v4_cannode example
...
- drivers/uavcannode add baro, mag, gps publications
- delete old px4_cannode-v1 board
- add stripped down simple rcS for CAN nodes
2020-02-16 12:11:54 -05:00
Beat Küng
ccf2078c66
nxp/fmurt1062-v1: use hw description methods for timer configuration
2020-02-13 03:49:16 -08:00
Beat Küng
8cd9afc19a
imxrt io_timer: remove some fields from io_timers_t and split out channel indexes
...
IOMUX uses different enumeration from GPIO pin + port, so we cannot use
.gpio_out, and add a .gpio_portpin.
2020-02-13 03:49:16 -08:00
Beat Küng
d74d094940
nuttx configs: disable nuttx timers which are used for PWM output
...
These are not required, and to be consistent we enforce disabling them now.
2020-02-13 03:49:16 -08:00
Beat Küng
c01f6811d0
nxp/fmuk66-v3: use hw description methods for timer configuration
2020-02-13 03:49:16 -08:00
Beat Küng
62b4f3487a
io timer: remove some fields from io_timers_t and split out channel indexes
...
- reduces amount of board configuration required
- removes the cyclic dependency between io_timers_t and timer_io_channels_t
Fixes a bug in the fmuk66-v3 config: the 2. timer has 3 channels associated
not 2.
Fixes a bug in the modelai config: the 2. timer has 4 channels associated.
2020-02-13 03:49:16 -08:00
David Sidrane
2193cce50b
rddrone-uavcan146:Board Added
2020-02-12 10:29:27 -05:00
Beat Küng
b399698306
ist8310: remove calibration code
...
- it does nothing useful
- increases boot time by 2 seconds on pixhawk 4 due to a poll timeout:
IST8310 on I2C bus 3 at 0x0e (bus: 100 KHz, max: 400 KHz)
WARN [ist8310] ERROR: TIMEOUT 2
2020-02-06 12:39:39 -05:00
David Sidrane
78c7f98ef1
nxp_fmurt1062-v1:Memory Reorg
2020-01-29 13:54:20 -05:00
David Sidrane
962716a7c3
nxp_fmurt1062-v1:Performance tuning
2020-01-29 13:54:20 -05:00
David Sidrane
a8720057fd
nxp_fmurt1062-v1:RC is on LPUART6 ttyS5
2020-01-29 13:54:20 -05:00
David Sidrane
eb30041958
nxp_fmurt1062-v1:PROBES:carry includes and path needed
2020-01-29 13:54:20 -05:00
David Sidrane
ef5ed2e43c
nxp_fmurt1062-v1:OC remove Pull up - OC have series 47K
2020-01-29 13:54:20 -05:00
David Sidrane
ec0f004a7b
fmurt1062-v1:Correct SPI1_DRDY4_ICM20602
2020-01-29 13:54:20 -05:00
David Sidrane
1fd2f27493
fmurt1062-v1:Add SPI4 RESET and SYNC
2020-01-29 13:54:20 -05:00
David Sidrane
1346312012
fmurt1062-v1:Add GPIO info
2020-01-29 13:54:20 -05:00
David Sidrane
5202724f19
fmurt1062-v1:Add nARMED Support
2020-01-29 13:54:20 -05:00
David Sidrane
08ac209674
fmurt1062-v1:Set BAT ADC scaling
2020-01-29 13:54:20 -05:00
David Sidrane
453c39230f
fmurt1062-v1:Consistently use ONE/ZERO on inital OUTPUT settings
2020-01-29 13:54:20 -05:00