1
0
Fork 0
mirror of https://github.com/betaflight/betaflight.git synced 2025-07-17 13:25:30 +03:00
Commit graph

1267 commits

Author SHA1 Message Date
Dominic Clifton
ec5929d278 Add MSP_BUILDINFO. 2014-12-20 02:57:02 +00:00
Dominic Clifton
df61d9a7eb Support GPS Provider and SBAS mod in MSP_MISC. 2014-12-20 02:22:51 +00:00
Dominic Clifton
a48a848890 Fix CRC errors in msp responses caused by double calling of
headSerialReply().  Ensure system is not reset while MSP response is
being transmitted.
2014-12-19 23:47:58 +00:00
Dominic Clifton
5b2659c92c Implement MSP_CONFIG and MSP_SET_CONFIG for backwards compatibility for
configurator.
2014-12-19 22:56:56 +00:00
Dominic Clifton
367eb79bd0 Add battery warning beeper. Update MSP_MISC/MSP_SET_MISC.
Note the old beeper was essentially 'battery critical'.
2014-12-19 22:16:47 +00:00
Nicholas Sherlock
50c81aa00e Make tag8_4S16 encoding more space efficent.
This replaces the older encoding variant, so the data version number has
been bumped.
2014-12-19 02:06:44 +13:00
Nicholas Sherlock
54ead59791 Rename axisP to less-cryptic axisPID_P (same for I and D) 2014-12-19 00:24:51 +13:00
Nicholas Sherlock
cdb3cc0dd3 Whitespace 2014-12-18 18:47:13 +13:00
Nicholas Sherlock
0ed47d5e6d Use spaces instead of tabs 2014-12-18 18:42:22 +13:00
Nicholas Sherlock
c85a172370 Merge remote-tracking branch 'upstream/master' 2014-12-18 18:17:59 +13:00
Nicholas Sherlock
5aa8e61c6e Be defensive and don't mod by zero if denominator somehow gets set to
zero
2014-12-18 17:39:09 +13:00
Dominic Clifton
78d4f24ad2 Various cleanups for Spektrum binding support. 2014-12-18 00:50:30 +00:00
Dominic Clifton
8b59e03ea3 Add SPEKTRIM_BIND support to SPARKY and EUSTM32F103RC targets. 2014-12-17 23:15:35 +00:00
Dominic Clifton
19525fdd3c Removing unnecessary comment. 2014-12-17 23:15:34 +00:00
Dominic Clifton
ca7991d532 Update MSP_RX_CONFIG to include the ability to confugure spektrum
satellite binding.
2014-12-17 23:15:33 +00:00
Michael Jakob
8d1cfe633e Implement softreset detection for STM32F3xx based targets
Function still needs to be tested on target hardware
2014-12-17 23:15:33 +00:00
Michael Jakob
1be3e8e550 Added detection of soft reset and swich of bind mode
after first hard reset (power on) if hardware bind plug is not
configured. Now completly tested.
2014-12-17 23:15:32 +00:00
Michael Jakob
c09877e5b9 Fix spelling errors in comments 2014-12-17 23:15:31 +00:00
Michael Jakob
7b2c3be563 Remove softreset detection to make it more simple
User needs to reset spektrum_sat_bind manualy after binding the
sattelite receiver and the hardware bind plug is not present.
2014-12-17 23:15:31 +00:00
Michael Jakob
97523e832c Enable Spektrum bind for CJMCU, CC3D, NAZE32PRO targets 2014-12-17 23:15:30 +00:00
Michael Jakob
1766857da6 Spectrum bind code to be more geenic
Actualy only activated for the NAZE taget for USART2

#define SPEKTRUM_BIND
#define BIND_PORT  GPIOA
#define BIND_PIN   Pin_3

This is to activate the Hardware bind pug feature
#define HARDWARE_BIND_PLUG
#define BINDPLUG_PORT  GPIOB
#define BINDPLUG_PIN   Pin_5

can now be easyly added and configured for other tagets after testing.
2014-12-17 23:15:28 +00:00
Michael Jakob
3aaaa3f9f5 Updates and fixes
fix FEATURE_RX_SERIAL
Delay for the hardware bind plug
Bind code will only work on default NAZE serial port (document
limitation)
2014-12-17 23:15:28 +00:00
Michael Jakob
c80090f39f Spektrum Satelitte bind code ported from Baseflight
includes support for a hardware bind plug (PB5 pin 41)
Activate via OPTIONS="HARDWARE_BIND_PLUG" during make
2014-12-17 23:15:27 +00:00
Dominic Clifton
dd54a59991 Fix compilation on EUSTM32F103RC target. 2014-12-17 23:14:56 +00:00
Nicholas Sherlock
ce5d64f653 Firmware version 0.1.4
Add ability to reduce recorded data rate
Update struct names to conform to code style guidelines
2014-12-17 17:16:17 +13:00
Stefan Grufman
67cce3b9a0 Cleanup of code (whitespaces/defines etc). Added initial text for docs about XBus and its configurations. 2014-12-16 18:36:43 +01:00
Dominic Clifton
101f2aa8c2 DISPLAY - Only show GPS page when using GPS passthrough. 2014-12-16 00:17:56 +00:00
Stefan Grufman
509f73853d Added initial version of JRPropo XBUS Mode B support. 2014-12-15 22:15:47 +01:00
Dominic Clifton
19ea3a60fd GPS - cleanup and fix home/hold mode transitioning. 2014-12-15 11:53:59 +00:00
Michael Jakob
64c5cda1f7 Remove include from pwm_mapping.c (not needed) 2014-12-15 11:00:04 +01:00
Michael Jakob
4b0d5e7e15 Use same PWM mapping for PPM and Serial RX
Without this fix an Octocopter with serialh RX will not work. Standard
 receiver mapping with only 6 motors outputs will apply.
2014-12-15 07:46:47 +01:00
Dominic Clifton
c595bf8fd4 GPS - Fix build for non-GPS enabled targets. 2014-12-14 23:55:31 +00:00
Dominic Clifton
00d0e30981 Update GPS PH and Navigation defaults.
These come from the multiwii codebase and were tested by stronnag.

See
https://code.google.com/p/multiwii/source/browse/trunk/MultiWii_shared/MultiWii.h#187
2014-12-14 23:52:23 +00:00
Michael Jakob
2499e39e5a Add custom mixer configuration for AllienWii32
The preconfigured custom mixer allows clean cabling for Octocopter
builds with the AlienWii32 board
2014-12-14 22:11:12 +01:00
Dominic Clifton
d8b5f6c60c GPS - Add satellite strength bargraphs to OLED display. 2014-12-13 21:58:54 +00:00
Dominic Clifton
e8dbb77db5 UART1 - Fix interrupt race condition which resulted in UART randomly
stopping transmission of data.
2014-12-13 19:45:02 +00:00
Dominic Clifton
9cc7a5aab1 DISPLAY - Skip GPS page if GPS is not enabled. 2014-12-13 19:40:19 +00:00
Dominic Clifton
9bcc0acd18 DISPLAY - Only compile in GPS page if GPS is enabled. 2014-12-13 19:37:27 +00:00
Dominic Clifton
f78b80fe01 GPS - Update UBOX auto-configure to use Pedestrian navigation mode.
"Applications with low acceleration and speed, e.g. how a pedestrian
would move. Low acceleration assumed. MAX Altitude [m]: 9000, MAX
Velocity [m/s]: 30, MAX Vertical Velocity [m/s]: 20, Sanity check type:
Altitude and Velocity, Max Position Deviation: Small"
2014-12-13 18:16:03 +00:00
Dominic Clifton
ea9633f2b1 Minor usart code readability improvement. 2014-12-13 18:05:22 +00:00
Dominic Clifton
119542a218 Avoid use of calls to the display when display not supported by the
target.
2014-12-13 12:08:13 +00:00
Dominic Clifton
6d1b0cec40 USART fixes based on feedback from @ledvinap. 2014-12-13 11:38:01 +00:00
Dominic Clifton
ce6582b88a GPS - remove temporary hack for fixing the OLED page to the GPS page.
Fix incorrect flag usage.
2014-12-13 03:45:39 +00:00
Dominic Clifton
9b81dea320 Fix USART total bytes waiting when tx/rx buffer sizes are not equal.
Avoid using % operator.  Allow buffer sizes that are not powers of two.
2014-12-13 03:29:24 +00:00
Dominic Clifton
27ae6fdb72 GPS - move debug code for gps OLED page around. 2014-12-13 02:19:49 +00:00
Dominic Clifton
ff9806e7a8 GPS - send UBlox SVINFO only once every 5 cycles (1hz) to reduce load on
the FC.
2014-12-13 02:15:53 +00:00
Dominic Clifton
62134057f0 GPS - handling incoming data as soon as possible to avoid observed GPS
packet loss.
2014-12-13 01:45:48 +00:00
Dominic Clifton
31ba3b7c94 SPARKY - Support GPS.
GPS tested on USART1 concurrently with SUMD on USART2, MSP on USART2 and
MSP on USB.  All working as expected.
2014-12-13 01:44:47 +00:00
Dominic Clifton
1c8416db2c GPS - handle data loss occurs in the start of a UBLOX frame 2014-12-13 01:42:35 +00:00
Dominic Clifton
20f32d632c GPS - differenciate between timeouts and crc errors. Improve packet
logging.  Cleanup UBLOX packet parsing.
2014-12-12 18:26:38 +00:00