1
0
Fork 0
mirror of https://github.com/betaflight/betaflight.git synced 2025-07-14 11:59:58 +03:00
Commit graph

18780 commits

Author SHA1 Message Date
dongie
fc1f5c9f1e check for core.gpsport nullpointer first 2014-04-09 09:11:38 +09:00
dongie
d002f0fdc1 Try using proper serial routines this time 2014-04-09 07:23:43 +09:00
dongie
1898fd43fd trying to free up USART IRQ from GPS aids 2014-04-09 07:18:22 +09:00
Dominic Clifton
3bd4cd2ed2 Use slightly flatter directory structure since some developers did not
like too many folders.
Extracted code from some files into separate files to fit with the new
layout.
2014-04-08 22:07:37 +01:00
Dominic Clifton
39adc34278 Re-order files in makefile alphabetically 2014-04-08 16:20:16 +01:00
Dominic Clifton
9fa99cf9f5 Re-organize files by topic
Keil project not updated, I have no way to verify it.

Note, mw.c, drv_pwm.c and drv_system.c contain code for too many topics.
Later commits will relocate the code as appropriate.

Not even looked at utils yet.  'Utils' is a bad naming practice and is a
synonym for 'too lazy to find the right file/name'.
2014-04-08 16:11:17 +01:00
dongie
a8f383077c Merge pull request #64 from treymarc/patch-2
prevent user to reboot if armed
2014-04-08 14:55:26 +09:00
Trey Marc
6624382ea8 Update serial.c
prevent user to reboot if armed, due to cli and save or reboot to bootlooader.

4f3ab5b991
2014-04-08 07:53:13 +02:00
dongie
c5bf72b912 Merge pull request #63 from hydra/include-hydra-commit-history
Include hydra commit history
2014-04-08 09:36:55 +09:00
Dominic Clifton
163b8deeea Merge remote-tracking branch 'multiwii/master'
Conflicts:
	src/board.h
2014-04-08 01:32:01 +01:00
dongie
5999ec1618 Merge pull request #62 from hydra/target-led-support
Target led support
2014-04-08 09:27:45 +09:00
Dominic Clifton
45dc25def1 Use the appropriate GPIO pin defines. 2014-04-08 01:25:23 +01:00
Dominic Clifton
badd0d589f Updating git ignore list to ignore some common files. 2014-04-08 01:20:44 +01:00
Dominic Clifton
30d5f13323 Fix LED support for OLIMEXINO and FY90Q targets. 2014-04-08 01:17:22 +01:00
Dominic Clifton
28b7178418 Whitespace changes to be inline with multiwii/master. 2014-04-08 00:57:30 +01:00
Dominic Clifton
5b3ba7a1d3 Merge remote-tracking branch 'multiwii/master' 2014-04-08 00:47:49 +01:00
dongie
1ebbb8b7a7 Merge pull request #17 from ghost/PR-001
Fixed drv_serial inline function declarations
2014-04-08 08:29:45 +09:00
dongie
c1cdf8b844 fixing fucked up struct definitions;
updated uvision project;
updated hex file;
2014-04-08 08:25:25 +09:00
dongie
4356893adc Merge pull request #61 from hydra/hott-telemetry
Hott telemetry
2014-04-08 08:15:36 +09:00
Dominic Clifton
1838703853 Code style cleanups. 2014-04-08 00:00:21 +01:00
Dominic Clifton
993edc4e20 More HoTT code style cleanups. 2014-04-07 23:58:57 +01:00
Dominic Clifton
6a4614e116 Cleanup comment imported HoTT code, comment style, incorrect comments,
spacing.
2014-04-07 23:40:07 +01:00
Dominic Clifton
24d162dc3e Fixing code style on some HoTT code. 2014-04-07 23:20:35 +01:00
Dominic Clifton
ce3b7859da Fixing a comma that should have been a semi-colon in the code. Fixing
some trailing spaces.
2014-04-07 23:18:50 +01:00
Dominic Clifton
bf59943578 Fixing indentation and spacing of imported HoTT code. 2014-04-07 23:17:11 +01:00
Dominic Clifton
c012e7480f Merge remote-tracking branch 'multiwii/master' into hott-telemetry 2014-04-07 23:08:03 +01:00
Dominic Clifton
00cdbe3438 Fixing typo in telemetry port configuration logic. 2014-04-07 22:44:14 +01:00
dongie
641c6eb890 Merge pull request #60 from schugabe/master
Added options for further TPA configuration
2014-04-08 06:34:52 +09:00
Dominic Clifton
c26d6362b1 Rename some telemetry variables and methods to better indicate the
intent of the code and thus the readability and maintainability of it.
2014-04-07 22:31:20 +01:00
Dominic Clifton
9b86d0d833 Update common telemetry code so that it verifies that the telemetry
configuration is valid.

Internally this uses a flag so that the configuration is not continually
verified.
2014-04-07 22:23:11 +01:00
Johannes Kasberger
99ff409783 increment EEPROM_CONF_VERSION 2014-04-07 23:07:51 +02:00
Dominic Clifton
1c0e0618e5 Update HoTT physical connection details (only one diode needed). 2014-04-07 21:57:46 +01:00
Johannes Kasberger
74a54d81dd Added options to allow further TPA configuration
Replaced define BREAKPOINT with cfg option
Added tpa and tpa_breakpoint to cli
2014-04-07 22:52:32 +02:00
Dominic Clifton
c73488b9a8 Fix an extra byte being sent between the HoTT data and the checksum. 2014-04-07 21:41:57 +01:00
Dominic Clifton
ee5d7e9d1f Cleanup HoTT protocol structure, verified against latest code in here:
https://github.com/obayer/MultiWii-HoTT/blob/master/MultiWii_2_1/HoTTv4.ino
2014-04-07 21:39:49 +01:00
Dominic Clifton
6b1a6332b9 Ensure that telemetry state is always updated after initialising
telemetry so that providers can configure the telemetry port as
applicable.
2014-04-07 21:38:50 +01:00
dongie
4faa8d0043 Merge pull request #59 from hydra/softserial-track-errors
Softserial track errors and be more strict with incoming data.
2014-04-08 05:03:51 +09:00
Dominic Clifton
8138bc8cf3 Merge branch 'softserial-track-errors' into hott-telemetry
Conflicts:
	src/drv_softserial.c
2014-04-07 20:35:29 +01:00
Dominic Clifton
171ab22fb7 Merge remote-tracking branch 'multiwii/master' into hott-telemetry
Conflicts:
	src/drv_softserial.c
2014-04-07 20:22:07 +01:00
Dominic Clifton
4530f99e3b Ignore incoming software serial data that doesn't have a start and stop
bit.  Track software serial transmission and receive errors.
  
Nothing exposes the error counter values yet.
2014-04-07 20:16:28 +01:00
Dominic Clifton
eed511f90a Avoid softserial loopback on port 2 on Olimexino boards. 2014-04-07 20:14:16 +01:00
Dominic Clifton
aef3c6ad97 Update timer handling to support multiple events at the same time.
This can occur when servicing two software serial ports via a multiple
timer channels on the same channel.
2014-04-07 20:13:09 +01:00
dongie
13607964b9 Merge pull request #58 from hydra/softserial-fix-stop-bits
Fixing software serial stop bits.
2014-04-08 02:54:04 +09:00
Dominic Clifton
e2deeeebd3 Fixing software serial stop bits. Was broken since timer frequency
calculation changes in c7de7d2ebc.
2014-04-07 18:12:42 +01:00
Dominic Clifton
ac0f3e9186 Move port telemetry port configuration logic into common telemetry code.
Update software serial to support RX, TX or RX&TX modes.  Update serial
API to allow on-the-fly changing of serial port mode.  Update HoTT to
change serial port mode when transmitting.
2014-04-07 16:39:09 +01:00
Dominic Clifton
1051cbcf52 Removed needless memory copy operation. Removed checksum bytes from
HoTT packet structures, checksum is always sent by the response sending
code.  Reduce ram usage by 173+ bytes.  Corrected accreditations.
Updating documentation to match code.  Replaced comments that commented
out code with #ifdef blocks because commented out code is not found by
refactoring tools.
2014-04-07 14:12:45 +01:00
Dominic Clifton
55f14d2158 Adding author information and linking to original source for some of the
HoTT code - https://github.com/cGiesen/MultiHoTT-Module
2014-04-07 01:25:52 +01:00
Dominic Clifton
3007d3cbdc Improving code readability by aligning comments with code and removing
comments that duplicated code.  Comments are harder to refactor than
code and become stale.  Updating default and limit values for some
settings to use enum values.
2014-04-07 01:05:33 +01:00
Dominic Clifton
f7c937a323 Improve HoTT code readability. Add protocol overview comments. 2014-04-07 00:16:26 +01:00
Dominic Clifton
3ca868a59f Enable HoTT as a telemetry provider.
Import cGiensen's HoTT telemetry implementation - untested.
2014-04-06 23:51:48 +01:00