Commit Graph

440 Commits

Author SHA1 Message Date
mcsauder
e12acc4b28 Migrate hardware specific mavlink stream cases to rc.mavlink. 2018-07-12 08:10:59 +02:00
mcsauder
8b71bb4562 Breakout rc.mavlink from rcS script. 2018-07-11 09:38:58 +02:00
mcsauder
9386ab6afe Breakout rc.thermal_cal from rcS and group set/unset parameters at the beginning and end of the rcS script. Revert commit 2a3d66cf45 to reduce px4fmu-v2_default flash size. Standardize tabs/whitespaces across all files in the init.d directory. 2018-07-10 08:59:38 -04:00
Beat Küng
58c8c50174 frsky_telemetry: add scanning timeout parameter, and set it to 15s
This frees unused RAM in case frsky telemetry is not connected.
2018-07-08 23:24:17 +02:00
Beat Küng
77cea8844f ROMFS: fix SYS_USE_IO==0
When SYS_USE_IO was disabled, px4io would not start and thus there was no
RC. SYS_USE_IO=0 is interesting on Quads to avoid the IO and reduce output
latency.

Tested on Pixhawk 1 and Pixhawk 4
2018-05-28 19:03:33 +02:00
Daniel Agar
f208241074 SYS_COMPANION add RTPS client option 2018-05-22 20:37:37 -04:00
DanielePettenuzzo
f49fd2acc7 crazyflie: increase imu reading rate 2018-05-22 12:21:45 +02:00
DanielePettenuzzo
b822966e8e crazyflie: support for sd card board via SPI 2018-05-22 12:21:45 +02:00
DanielePettenuzzo
56acce4491 rcS: start vl53lxx and pmw3901 drivers 2018-05-22 12:21:45 +02:00
Beat Küng
527070bb35 rcS: update default params for Omnibus F4 SD 2018-05-20 11:54:17 +02:00
nathan
f754d092f8 Initial omnibusf4sd target support
Flight tested: ekf2 w/ mag and compass by @nathantsoi: https://logs.px4.io/plot_app?log=79b81031-cf1e-41f0-890b-d6cd7d559766

NOTE: external I2C devices need a pullup. I have tested with a 3.3v 2.2k pullup.

Working:
 - mpu6000, bench tested and verified via nsh
 - fmu
 - all 6 ch output bench tested w/ pwm and oneshot via nsh
 - ppm input bench tested
 - dsm input bench tested
 - bmp280, bench tested and verified via nsh
 - hmc5883, bench tested and verified via nsh, but requires an external i2c pullup
 - gps on uart6
 - startuplog, nsh, mavlink on uart4, but params are not sent for some reason. RSSI pin is TX, MOTOR 5 is RX (normal mode, 57600 baud)
 - rgbled over i2c, bench tested and workingp
 - sbus via the shared sbus/ppm pin (which includes an inverter to the mcu SBUS in pin), remove the solder bridge or jumper to the ppm pin before use

Not yet implemented:
  - ADC
  - OSD: passthrough video is untested, use at your own risk until a basic driver is implemented.
2018-05-20 11:54:17 +02:00
Beat Küng
64aab8a685 rcS: do not reset COM_FLTMODE* on airframe change
An airframe change keeps all RC params except the flight modes. This fixes
that.
2018-04-17 14:17:20 +02:00
DanielePettenuzzo
1b7fd5eae7 rcS: initialize TELEM4 on ttyS3 on FMUv5 2018-04-04 12:08:34 +02:00
Mohammed Kabir
f95f4c5f09 UAVCAN : Correct startup sequence and improve parameter description 2018-03-10 23:09:19 -05:00
Daniel Agar
5ef27c5425 mavlink add minimal mode (#8947) 2018-03-04 17:50:28 -05:00
Daniel Agar
38f5f60a1e pwm_out_sim cleanup
- move to ModuleBase
 - strip down to PWM 8 and 16 modes only
 - remove all dead code
 - implement missing pwm ioctls (current value, rates, etc)
 - default rate 50Hz -> 400Hz
2018-03-04 14:12:15 -05:00
Daniel Agar
4aeb70fcfe rcS move logger startup to rc.logging and end of init
- fixes #8903
2018-02-17 18:09:50 +01:00
Beat Küng
4772a25b77 rcS: add clarifying comment for Pixhawk 3 Pro UART port 2018-02-08 14:48:49 +01:00
Haukanes
35acdfa717 Start frsky_telemetry for PX4FMU_V4PRO 2018-02-08 14:46:55 +01:00
José Roberto de Souza
10df6729f3 ROMFS: aerofc: Do not start MAVLink in telemetry if LeddarOne is in use 2018-02-08 11:26:26 +01:00
ChristophTobler
acaf7cd267 rcS: automate tfmini start
disable mavlink on aero telemetry if tfmini enabled and start on mavlink companion device for others (needs SYS_COMPANION to be 0)
2018-01-31 11:36:06 +01:00
Simone Guscetti
402ad9f48f rcS: partially change rcS to start the modified tone driver
- Start tone_alrm driver after uorb
- Replace tone_alarm $TUNE_ERR with tune_control play -m ${TUNE_ERR}
- TUNE_ERR is a string
2018-01-29 09:45:59 -05:00
ChristophTobler
a63fce86d4 rcs: mention wifi mapping on v4 2018-01-27 00:41:44 +01:00
ChristophTobler
5cfe0e9a0f rcS: update comment on mavlink for FMUv4
Comment was a contradiction
2018-01-27 00:41:44 +01:00
Beat Küng
5fe203a510 rcS: cleanup defaults for SYS_FMU_TASK & FMUv5 params
- SYS_FMU_TASK is now enabled for PX4FMU_V4 PX4FMU_V4PRO PX4FMU_V5, but
  it's only set on autoconf
- v5 companion is now TELEM2 (same as all other boards)
2018-01-10 07:59:32 +01:00
Beat Küng
48a6a98071 rcS: merge 'ver hwcmp' for different boards, add V5 to px4flow 2018-01-10 07:59:32 +01:00
Daniel Agar
992db1f415 delete snapdragon_rc_pwm and passthrough config 2018-01-08 03:07:10 -05:00
Lorenz Meier
1cfb441527 ROMFS: Reduce verbosity level 2018-01-06 11:35:53 +01:00
Lorenz Meier
dd5524da3d Make boot slightly less verbose 2018-01-05 22:45:12 +01:00
Lorenz Meier
fa8222e188 Logger: Free some RAM to leave space for mag calibration 2017-12-30 11:24:03 +01:00
Sander Smeets
423241e7e2 Add forwarding on telem2 normal telemetry option (#8434) 2017-12-09 19:45:47 -05:00
Avinash Reddy Palleti
b1a16840c7 Fix typo error in micrortps_client module
Fixed the typo error in micrortps_client which was causing issue to update
baudrate and other options.
2017-12-01 12:56:45 +01:00
Avinash Reddy Palleti
456227f39e Add RTPS cmake config for AeroFC
Adding a seperate cmake config to support RTPS messaging on AeroFC. This will
include compiling protocol_splitter and micrortps_client, and starting both
of them at boot time.
2017-11-21 16:51:46 +01:00
Beat Küng
553c8b38d2 rcS: start mavlink in normal mode on Pixracer for the WiFi module
The config mode uses high rates for many streams, leading to high CPU usage
(9-10% for the mavlink sender). The normal mode contains almost the same
set of messages but at lower rates.
This reduces the CPU load on a Pixracer by 3-4%.
2017-10-11 11:55:59 +02:00
David Sidrane
10f418a272 nxphlite-v3:rcS move mavlink to UART4 connector P10 2017-10-04 04:49:35 -10:00
David Sidrane
986607b37d PX4_SAME70XPLAINED_V1:Remove unnesasary conditional for FMU mode 2017-09-29 10:13:51 -04:00
David Sidrane
c536bf95f0 px4-same70xplained-v1:ROMFS changes 2017-09-29 10:13:51 -04:00
Daniel Agar
d04d62c37e airframe metadata sort by SYS_AUTOSTART and minor cleanup (#8009) 2017-09-25 11:17:50 -04:00
Daniel Agar
4e0ddf86e1 rcS print full version 2017-09-25 10:30:22 -04:00
Daniel Agar
4e6ca271e7 more px4fmu-v1 cleanup (#7981) 2017-09-20 00:04:23 -04:00
Daniel Agar
3498fe0c6f delete sdlog2 EKF2 replay (#7982) 2017-09-19 10:20:41 -04:00
David Sidrane
694de32740 ROMFS::Removed ardrone_interface from PX4 only used PX4v1
Removed that driver was only referenced from the now depricated
      px4fmuv-1
2017-09-10 13:37:23 -04:00
David Sidrane
f6a0765d3c ROMFS:px4io-v1:Removed px4io-v1 board from PX4
Only support px4io-v2 px4io
2017-09-10 13:37:23 -04:00
David Sidrane
62a2351a72 ROMFS:Removed FMUv1 from rcS etal 2017-09-10 13:37:23 -04:00
David Sidrane
5c3f2b783f px4fmu_common:Add passivly starting the PWM rgbled driver
Board builds may now inclulde both the PWM and I2C RGB LED
   To add the PWM RGB LED driver:The board must define
   BOARD_HAS_LED_PWM and include rgbled_pwm the moulde list.

   This change attempts to start the PWM rgbled driver, that
   may or may not be present. If it is not present the +e
   setting allows the start up to continue.
2017-08-26 03:44:59 -10:00
ChristophTobler
a2cf87b3ab run px4flow for v4 pro 2017-08-21 16:47:59 +02:00
Lorenz Meier
fa482b4ebd Racing boards: Default FMU to task as there is plenty of RAM to do this. 2017-08-13 11:39:44 +02:00
José Roberto de Souza
ce180af4ca aerofc: 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-02 11:49:10 +02:00
Lorenz Meier
61b0a81bf9 HITL startup: Further simplification of boot logic in commander 2017-07-29 23:06:50 +02:00
Lorenz Meier
8aa1382e08 ROMFS: Switch HIL to a setting orthogonal to airframes
This makes it easy to flip any airframe config over to HIL.
2017-07-29 23:06:50 +02:00