Commit Graph
100 Commits
Author SHA1 Message Date
Mark Whitehorn 817c0eafbc add low battery warning and comment out the "resolved" messages 2016-04-05 19:13:49 -07:00
Mark Whitehorn b4520f538e report sensor init failure 2016-04-05 19:13:49 -07:00
Mark Whitehorn 2f057939ad fix bug in handling of missing default current scaling parameter 2016-04-02 21:40:34 +01:00
Mark Whitehorn c37cf7abd4 remove broken configgpio call; tested OK on R14 2016-03-21 22:01:20 +01:00
Mark Whitehorn 192c2a32c8 unconfigure GPIO_PPM_IN before reconfiguring 2016-03-21 22:01:20 +01:00
Mark Whitehorn 6b997f9e91 fix error in use of union 2016-03-19 11:22:37 +04:00
Mark Whitehorn 7dde4cb55b fix sensor_combined_s temperature indexing error 2016-03-19 11:22:37 +04:00
Mark Whitehorn 8e4a1ca36e change large mag offset from error to warning 2016-03-11 13:58:26 -07:00
Mark Whitehorn c49e576d60 reduce output scaling as workaround for broken output limits 2016-03-01 09:21:58 +01:00
Mark Whitehorn b57e8793f5 clarify left/right and elevon assignments 2016-03-01 09:21:58 +01:00
Mark Whitehorn d61f935bb1 fix sign of roll in elevons mixer 2016-03-01 09:21:58 +01:00
Mark Whitehorn beab5ec3d7 reduce output scaling as workaround for broken output limits 2016-03-01 09:21:58 +01:00
Mark Whitehorn 1551898f5a fix typo in comment 2016-03-01 09:21:58 +01:00
Mark Whitehorn 53ed61790d fix typo in comment 2016-03-01 09:21:58 +01:00
Mark Whitehorn 5ee6dad7ea clarify left/right and elevon assignments 2016-03-01 09:21:58 +01:00
Mark Whitehorn ad54f0149c fix sign of roll in elevons mixer 2016-03-01 09:21:58 +01:00
Mark Whitehorn 98a4dd6a4a run astyle 2016-03-01 09:02:14 +01:00
Mark Whitehorn bebe8b0a78 init frsky_state properly 2016-03-01 09:02:14 +01:00
Mark Whitehorn ab596e3711 scan indefinitely for FrSky RX, report state in status 2016-03-01 09:02:14 +01:00
Mark Whitehorn 607053cfbc decrease stack allocation to 1100 2016-03-01 09:02:14 +01:00
Mark Whitehorn 52465d07b9 run astyle 2016-03-01 09:02:14 +01:00
Mark Whitehorn 8186139dad reduce D-type stack usage and static allocations 2016-03-01 09:02:14 +01:00
Mark Whitehorn 6d2927cd7a allocate structs on the heap; exit daemon if no FrSky receiver detected 2016-03-01 09:02:14 +01:00
Mark Whitehorn 95d328f57c remove commented code and change to sensor_baro topic to filter altitude 2016-03-01 09:02:14 +01:00
Mark Whitehorn 6d509835eb clean up uORB code 2016-03-01 09:02:14 +01:00
Mark Whitehorn 0960e1a820 make structs static and decrease stack size, run astyle 2016-03-01 09:02:14 +01:00
Mark Whitehorn 6fa6e72250 add sPort GPS telemetry 2016-03-01 09:02:14 +01:00
Mark Whitehorn fcfe64ee5a enable disarmed PWM and rework safety switch disable logic 2016-02-29 12:29:30 -07:00
Mark Whitehorn 29b0520263 enable PWM with safety switch off 2016-02-29 12:29:30 -07:00
Mark Whitehorn 04a9eada1e disable safety switch if CBRK_IO_SAFETY is on 2016-02-27 11:25:56 +01:00
Mark Whitehorn beb9707933 fix fmuv1 compile error 2016-02-27 11:25:56 +01:00
Mark Whitehorn 426903c617 run astyle 2016-02-27 11:25:56 +01:00
Mark Whitehorn b6231c718b reduce safety switch sampling to ~10Hz and clean up 2016-02-27 11:25:56 +01:00
Mark Whitehorn ef2a7bda53 add fmuv4 safety switch handling 2016-02-27 11:25:56 +01:00
Mark Whitehorn 5a7d31f7a9 fix typo in comment 2016-02-27 11:25:56 +01:00
Mark Whitehorn 7c91aaee64 add generic 250 quad_x config tuned for acro mode 2016-02-19 08:58:19 +01:00
Mark Whitehorn d5d3b63dc8 delete parameter MPC_HOLD_Z_DZ 2016-02-17 15:23:16 +01:00
Mark Whitehorn 8cd4b57c6b add parameters for adjusting ALTCTL deadband 2016-02-17 15:22:28 +01:00
Mark Whitehorn ead3eeda6c expand description of MPC_THR_HOVER parameter 2016-02-17 15:22:28 +01:00
Mark Whitehorn 5de7c7e426 zero altctl deadband 2016-02-17 15:22:28 +01:00
Mark Whitehorn 159abb9b00 add parameter for hover throttle setting
and tighten z deadband
2016-02-17 15:22:28 +01:00
Mark Whitehorn 101ac63737 change altctl throttle deadband to 2 point curve 2016-02-17 15:21:37 +01:00
Mark Whitehorn 12437f1fc6 increase stack size for frsky telemetry daemon 2016-02-16 10:39:30 -07:00
Mark Whitehorn 42e8fe159f run astyle 2016-02-10 09:23:30 +01:00
Mark Whitehorn cca2807ff0 apply 1st order lowpass filter to baro alt 2016-02-10 09:23:30 +01:00
Mark Whitehorn b25a9a45b5 initial add of Vario sensor. 1st difference of baro_alt... need to add a
LPF in front of the difference
2016-02-10 09:23:30 +01:00
Mark Whitehorn 403810c688 disable console print of incoming telemetry data 2016-02-10 09:21:52 +01:00
Mark Whitehorn e25b26e2a8 fix format 2016-02-10 09:21:52 +01:00
Mark Whitehorn de39b63402 fix bug in rssi assignment 2016-02-10 09:21:52 +01:00
Mark Whitehorn 8116f15d95 enable print of incoming telemetry 2016-02-10 09:21:52 +01:00
Mark Whitehorn 47337eb4a5 add parsing of host frames for D type telemetry 2016-02-10 09:21:52 +01:00
Mark Whitehorn 7b7da618b8 format and disable some warnx output 2016-01-29 09:02:34 +01:00
Mark Whitehorn 81ae5cbd0d check for incoming D type telemetry packet (RX also connected to telemetry port) 2016-01-29 09:02:22 +01:00
Mark Whitehorn d96a17adfb missed some name changes from sPort to frsky 2016-01-24 11:22:18 +01:00
Mark Whitehorn cfc3af8374 update fmu-v4 cmake config 2016-01-24 11:22:18 +01:00
Mark Whitehorn 527fe4b374 remove sPort_telemetry directory 2016-01-24 11:22:18 +01:00
Mark Whitehorn c81c34b147 add sPort telemetry handling into frsky_telemetry daemon 2016-01-24 11:22:18 +01:00
Mark Whitehorn 8f8b4485f1 change rcS to start frsky_telemetry daemon for FMUv4 2016-01-24 11:22:18 +01:00
Mark Whitehorn 29d759768e clean up structure 2016-01-24 11:22:18 +01:00
Mark Whitehorn 42f9079683 move sPort_telemetry.c to src/drivers/frsky_telemetry and rename daemon
to frsky_telemetry
2016-01-24 11:22:18 +01:00
Mark Whitehorn 528e2826d5 run astyle 2016-01-24 11:22:18 +01:00
Mark Whitehorn 3b9ef1cef5 reduce reporting frequency for smartport sensors. reduces CPU load to
approx. 1%
2016-01-24 11:22:18 +01:00
Mark Whitehorn 4f55ae5306 add D type telemetry fallback to sPort_telemetry daemon 2016-01-24 11:22:18 +01:00
Mark Whitehorn a402b3beeb change frsky_telemetry default port to USART8 for pixracer
add a 50msec timeout to poll calls in sPort_telemetry to prevent hangs
2016-01-24 11:22:18 +01:00
Mark Whitehorn 8d089d95d4 change baro altitude scaling to 100 to match OpenTX "custom" altitude
mode
2016-01-24 11:22:18 +01:00
Mark Whitehorn 52ebbda5ac add conditional start of sPort_telemetry daemon for FMUv4 to rcS 2016-01-24 11:22:18 +01:00
Mark Whitehorn 99286db832 running astyle inside QtCreator doesn't guarantee that travis will pass
format checks
2016-01-24 11:22:18 +01:00
Mark Whitehorn 6cb631716a corrected scales for OpenTX 2.1.7 as specified in the comments 2016-01-24 11:22:18 +01:00
Mark Whitehorn 4e4d1a98f6 update comments on scale factors 2016-01-24 11:22:18 +01:00
Mark Whitehorn ea4937491b fix scale factor for VFAS: battery voltage report 2016-01-24 11:22:18 +01:00
Mark Whitehorn bbc03731c7 initial implementation of 5 virtual sensors for Bat V,I, Baro alt, Fuel
and GPS speed. Voltage and current scaling can be set in OpenTX. Fuel is
in percent. Alt in meters. Need to look at what OpenTX wants for speed.
2016-01-24 11:22:18 +01:00
Mark Whitehorn 82bb0564e2 fix byte stuffing typo and add comments 2016-01-24 11:22:18 +01:00
Mark Whitehorn 8949a88f25 fix CRC calc and add battery voltage report 2016-01-24 11:22:18 +01:00
Mark Whitehorn ff690dda80 increase priority of sPort_telemetry to 200 2016-01-24 11:22:18 +01:00
Mark Whitehorn bb565f5d6a add sPort_telemetry cmd to fmu-v4 module list and change default port to ttyS6/usart8 2016-01-24 11:22:18 +01:00
Mark Whitehorn 214709dc89 move smartport telemetry to new module 2016-01-24 11:22:18 +01:00
Mark Whitehorn 47dcf71554 initial test of FrSky SmartPort telemetry 2016-01-24 11:22:18 +01:00
Mark Whitehorn 8cb472af31 add RC kill switch 2016-01-18 11:36:11 +01:00
Mark Whitehorn 5a93e68918 fix code style 2016-01-14 17:55:55 +01:00
Mark Whitehorn ab1bbb9ed8 remove extraneous rescan tests 2016-01-14 17:55:55 +01:00
Mark Whitehorn 4d7fe08069 fix code style 2016-01-14 17:55:55 +01:00
Mark Whitehorn 5d588d98be change CMake CONFIG to fmu-v2 and THREADS to 4 2016-01-14 17:55:55 +01:00
Mark Whitehorn df5cb5472d configure GPIO_SBUS_INV for PixRacer R12 2016-01-14 17:55:54 +01:00
Mark Whitehorn ecbcfe838b clean up, change SPI2 clock back to 12MHz and remove debug prints 2016-01-14 17:55:54 +01:00
Mark Whitehorn ab71af6053 fix spi select logic 2016-01-14 17:55:54 +01:00
Mark Whitehorn 4952d05652 debugging ms5611 on spi2 2016-01-14 17:55:54 +01:00
Mark Whitehorn 32626b57a4 add missing #ifdef 2016-01-14 17:55:54 +01:00
Mark Whitehorn 47207b8fc8 set FMU_RC_OUTPUT high for all non-SBUS modes 2016-01-14 17:55:54 +01:00
Mark Whitehorn 5cf78cd450 configure usart6 TX for RC out
add RC_OUT pin to FMUv4 config
2016-01-14 17:55:54 +01:00
Mark Whitehorn e0bbbd356f add SUMD decoder to RCscan 2016-01-14 17:55:53 +01:00
Mark Whitehorn 3d185e18e9 remove warnx in set_rc_scan_state 2016-01-14 17:55:53 +01:00
Mark Whitehorn eb36eac137 reduce scan interval to 100msec 2016-01-14 17:55:53 +01:00
Mark Whitehorn 9eecca6a71 add string value struct for RC_SCAN enum 2016-01-14 17:55:53 +01:00
Mark Whitehorn 425169921c begin adding DSM bind function 2016-01-14 17:55:53 +01:00
Mark Whitehorn ca2e9e7be1 handle PPM input with RC_SERIAL_PORT undefined 2016-01-14 17:55:53 +01:00
Mark Whitehorn 72156d9cd6 add macro to control RC input inverter
remove redundant variable
2016-01-14 17:55:53 +01:00
Mark Whitehorn 71a3e3713c move PPM input disable into scan case for PPM; PPM input is now enabled only while in RC_SCAN_PPM state 2016-01-14 17:55:52 +01:00
Mark Whitehorn 434ce85937 lock RC scan on first detection and fill in default values for fields not in DSM record
pull serial port read out of sbus and dsm input methods

clean up scanning code and add STM24
2016-01-14 17:55:52 +01:00
Mark Whitehorn 02030d9b36 scan working for SBUS and DSM 2016-01-14 17:55:52 +01:00
Mark Whitehorn 0f3878a48a DSM input tested OK with DX7 2016-01-14 17:55:52 +01:00