1
0
Fork 0
mirror of https://github.com/betaflight/betaflight.git synced 2025-07-19 14:25:20 +03:00
Commit graph

89 commits

Author SHA1 Message Date
Sami Korhonen
1f8805cdf0 squash betaflightF7
Parts and driver boost from @npsm
2016-10-21 08:51:02 +03:00
Konstantin (DigitalEntity) Sharlaimov
ff19b5bcff MAVLink telemetry support 2016-10-17 17:17:25 +10:00
Martin Budden
5f791cef77 Renamed some MSP related files 2016-10-16 11:13:38 +01:00
Martin Budden
e15bafe6e7 Further reorganisation of MSP 2016-10-15 10:21:13 +01:00
Martin Budden
699e736f0b Added higher baudrates to support openlager 2016-10-14 23:18:05 +01:00
Martin Budden
31c3f9bb54 Added additional baudrates 2016-10-14 23:05:00 +01:00
Martin Budden
1dea28002e Further rxCallback parameter renames 2016-10-12 09:17:16 +01:00
Martin Budden
53981adbb7 Renamed serial port callback 2016-10-12 08:39:06 +01:00
Martin Budden
ea6b459ead Tidy up msp related #includes 2016-10-05 08:33:35 +01:00
Michael Keller
18bf3e924e Implemented support for MSP jumbo frames, switched dataflash reading to be using jumbo frames.
Set default MSP serial speed to 500000 kbps.
2016-09-14 14:06:45 +12:00
Martin Budden
a60cb8597f Rename serial MSP functions in prep for converting to using streambuf 2016-09-10 16:28:15 +01:00
borisbstyle
541b28cfc0 Merge pull request #920 from martinbudden/bf_directories
Directory rearrangement to reflect Cleanflight changes
2016-08-08 16:40:11 +02:00
Anders Hoglund
4cd7375cc3 Fix compile warnigs when only USE_VCP is defined. 2016-08-07 17:19:51 +02:00
Martin Budden
541f4d4018 Directory rearrangement to reflect cleanflight changes 2016-08-07 13:44:00 +01:00
Martin Budden
168469236b Tidied serial and telemetry files 2016-08-01 06:45:59 +01:00
Martin Budden
5c1c64fc41 Avoids initialisation of UART2 when PWM or PPM RX is used 2016-07-28 00:40:04 +01:00
Martin Budden
141b369667 Removed trailing whitespace 2016-07-16 07:54:58 +01:00
Martin Budden
c076bc3e2d Minor build optimisations 2016-07-11 20:11:09 +01:00
blckmn
c4e75e456c Move to UART naming convention where possible (rather than USART). 2016-07-09 14:51:23 +10:00
Read Error
e0c28c30d5 USART5 doesn't exist on F3 or F4, should be UART5. 2016-07-01 06:34:41 -04:00
mikeller
fefbc4d4bf Graft of 'serial_rx_telemetry_on_same_port' into development for flight testing by @blckmn. 2016-06-13 20:44:08 +12:00
blckmn
51a99e74c6 STM32F4: USARTS 4,5,6 added
Flag initialisation for motor_pwm_protocol
Fixes for AlienFlightF4 and timers
2016-06-08 05:43:28 +10:00
Ferdia McKeogh
7b7ee481db Update serial.c 2016-02-16 17:31:29 +00:00
borisbstyle
63dcc3dc1d Add LTM Telemetry // Remove MSP telemetry 2016-02-03 11:14:35 +01:00
digitalentity
2614111c39 Implemented RC calibration and unit-tests
Added rc calibration docs to Rx.md
2015-07-16 08:49:18 +10:00
Dominic Clifton
ca22fb0ee3 Replace CLI serial port configuration code with a new serial command.
This is done to make it clearer in configuration dumps which ports are
enabled and configured.

There is a nice code size reduction due to less strings being needed.

Serial documentation updated.

Closes #966.
2015-05-31 11:50:58 +01:00
Dominic Clifton
704dcf46ba Fix all warnings when compiling unit tests.
Use C++11 for the C++ unit test code to make the tests easier to read.
Previously we were using a 17 year old standard (!) (g++98)

GoogleTest is compiled with some additional flags to avoid some specific
warnings.  Consider enabling the warnings when upgrading GoogleTest.

See https://code.google.com/p/googletest/issues/detail?id=433

Closes #941
2015-05-29 15:26:10 +01:00
Dominic Clifton
dcc54a9aec Remove duplicate const keywords which were generating warnings when
compiling unit tests.
2015-05-29 14:23:12 +01:00
Dominic Clifton
a370d60595 Support UART3 and I2C on Paris Air Hero 32 Flex port (aka Naze32_SP).
This change also allows serial ports to be removed at runtime.  e.g.
UART3 on Naze32 and SoftSerial 1 & 2 when softserial is not enabled.
2015-05-22 20:49:33 +01:00
Dominic Clifton
d0a9d14b87 Allow CLI to be compiled out.
First cut, as proof-of-concept.  This allows CJMCU target to be built
without CLI and with Blackbox.
2015-05-19 23:42:41 +01:00
Dominic Clifton
8a7edb17ed Merge branch 'softserial-enabled' of git://github.com/sherlockflight/cleanflight-dev into sherlockflight-softserial-enabled 2015-04-01 20:06:08 +01:00
Dominic Clifton
b0b1eaf9c7 Add first unit test for some code in serial.c. Fix compiler warnings in
other tests.
2015-04-01 14:12:24 +01:00
Nicholas Sherlock
dce873434b Use SERIAL_PORT_NONE identifier to mark ports which are unavailable 2015-04-02 01:55:13 +13:00
Nicholas Sherlock
86ddf27515 Don't allow softserial ports to be opened if softserial isn't enabled 2015-04-02 00:24:28 +13:00
Nicholas Sherlock
159f57f583 Add new serial port options field (inversion, stop bits, etc) 2015-03-19 12:56:11 +13:00
Nicholas Sherlock
cbaa67f1d0 Add 230400 & 250000 baud rates, 2 stop-bits port mode 2015-03-06 20:07:07 +13:00
Dominic Clifton
946f65601f Cleanup some enum values - using topic_type instead of type_topic. 2015-03-03 22:35:40 +00:00
Dominic Clifton
a156d915f4 Only index into the configurable baud rate list when needed. 2015-03-03 17:30:35 +00:00
Dominic Clifton
1a8500c768 Transition to new per-port & per-function baud rate configuration. 2015-02-27 01:05:37 +00:00
Dominic Clifton
00f04e0ea2 Fix frsky telemetry which was needlessly checking for incoming data.
Maybe it needs to check that the serial port has SENT the data?
2015-02-19 00:34:24 +00:00
Dominic Clifton
7dcc7b2fb5 Multiple telemtry providers can now be active at the same time on any
serial port. 
MSP telemetry can now be at any baud rate.

A pattern is emerging in each telemetry provider, code is duplicated to
get things working, refactoring can come later.
2015-02-18 23:10:36 +00:00
Dominic Clifton
5163bef0b2 Refactor serial port configuration, stage 1.
Tested and working:
* multiple MSP ports at different baud rates.
* cli on any MSP port.
* GPS
* gps passthough on currently active cli port.

Example config used for testing:

feature SOFTSERIAL
feature GPS
feature RX_PPM
serial_port_1_functions = 1
serial_port_1_baudrate = 115200
serial_port_2_functions = 128
serial_port_2_baudrate = 115200
serial_port_3_functions = 1
serial_port_3_baudrate = 19200
serial_port_4_functions = 0
serial_port_4_baudrate = 0

Known broken:
* Telemetry and shared serial ports
* Telemetry when unarmed.

Probably broken:
* Blackbox on shared port.

Untested.
* Serial RX.
* Blackbox.
2015-02-12 01:28:53 +00:00
Dominic Clifton
e81cc9696e CC3D - Support serial RX on UART1. 2015-01-29 21:25:50 +01:00
Dominic Clifton
7b8ad20af6 Fix max baud rates on CC3D / F3 targets that were broken in merge of
6048a2e.
2015-01-29 21:24:51 +01:00
Krzysztof Rosinski
34cd8f466e MSP command for sonar altitude 2015-01-29 15:17:15 +01:00
Dominic Clifton
6048a2ec57 Merge pull request #299 from GruffyPuffy/xbus_jr01
Suport for Align DMSS RJ01 remote receiver
2015-01-25 14:34:27 +01:00
Dominic Clifton
5760519a03 CC3D - Adding USB Virtual COM port suport.
You can now connect the configurator via the USB port.
2015-01-25 13:59:48 +01:00
Dominic Clifton
83748bac98 STM32F3 - Fix serial port constraints and functions when VCP is not
used.
2015-01-25 00:52:27 +01:00
Stefan Grufman
12f45b4f04 Merge branch 'master' into xbus_jr01 2015-01-24 13:54:58 +01:00
Dominic Clifton
650389afb6 Disable ADC initialisation on CJMCU. Replace MASSIVEF3 with SPRACINGF3.
Conditional VCP code inclusion.  Other minor F1/F3 cleanups.
2015-01-20 23:33:03 +01:00