1
0
Fork 0
mirror of https://github.com/betaflight/betaflight.git synced 2025-07-16 21:05:35 +03:00
Commit graph

3194 commits

Author SHA1 Message Date
Dominic Clifton
f0b0cbd83a Update OSX building instructions to cover GCC 4.9.2. 2015-08-20 18:34:15 +01:00
Dominic Clifton
2e81a2892f Merge branch 'Echelon9-feature/make-top-level-test' 2015-08-20 18:28:29 +01:00
Dominic Clifton
b4172941c1 Merge branch 'feature/make-top-level-test' of https://github.com/Echelon9/cleanflight into Echelon9-feature/make-top-level-test 2015-08-20 18:27:22 +01:00
Dominic Clifton
4c4ce63563 Merge pull request #1231 from Echelon9/fix/make-ARCH_FLAGS-dup
Remove duplicated -mfpu=fpv4-sp-d16 under cortex-m4 based targets.
2015-08-20 18:26:16 +01:00
Dominic Clifton
37dbc182d5 Merge pull request #1235 from sherlockflight/pid_msp_max
Fix upper bound clamping of floating point PID settings upon MSP read
2015-08-20 18:25:07 +01:00
Nicholas Sherlock
c5a7914fe8 Fix upper bound clamping of FP PID settings upon MSP read 2015-08-20 16:10:18 +12:00
Dominic Clifton
718729504e Allow FC to reverse input channels by using rxrange.
Just reverse the min/max arguments.

Unit tested.

Fixes #1132.
2015-08-20 02:46:03 +01:00
Dominic Clifton
3f8363f908 Merge pull request #1233 from cleanflight/rxfail-auto-mode
Failsafe - Add rxfail `auto` mode.
2015-08-20 02:05:51 +01:00
Dominic Clifton
be368bc576 Merge pull request #1224 from cleanflight/rx-loss-detection-fixes
Failsafe - Fixes for RX loss detection.
2015-08-20 02:05:45 +01:00
Dominic Clifton
2c79b9777e Large code re-organization which separates some key tasks in the rx
code.

Tested with X8R in SBus and PWM, and Spek Sat, GR-24 PPM, PWM and SUMD,
Spek PPM
2015-08-20 01:46:29 +01:00
Dominic Clifton
a030d4dd9e Failsafe - Add rxfail auto mode. Allow rxfail to be used for all
channels, not just aux channel.
2015-08-20 01:37:29 +01:00
Dominic Clifton
5142ff032a HoTT - Apply quick workaround to allow HoTT to work on hardware serial
ports, previously only softserial was working. - See #1021
2015-08-19 17:55:01 +01:00
Echelon9
e7d4f7da7f Remove duplicated -mfpu=fpv4-sp-d16 under cortex-m4 based targets. 2015-08-19 23:11:02 +10:00
Phillip Jones
241d30a686 Merge branch 'issue_8_sensors_align' of github.com:drtunes/cleanflight into issue_8_sensors_align 2015-08-18 14:03:01 -06:00
Phillip Jones
f239eb3f35 This addresses issue #8 by adding unit tests for sensorsAlign().
The test file includes a simple independent implementation of
vector rotation. Each of the following sensor_align_e types are
tested:
 * CW0_DEG
 * CW90_DEG
 * CW180_DEG
 * CW270_DEG
 * CW0_DEG_FLIP
 * CW90_DEG_FLIP
 * CW180_DEG_FLIP
 * CW270_DEG_FLIP

For each test, three unit vectors and a random vector are tested.
 * {1, 0, 0}
 * {0, 1, 0}
 * {0, 0, 1}
 * {R, R, R} (where R is a random number)

The vector under test is rotated using the functions defined in the
test file. The output of the test function is compared to the
output of the sensorsAlign() function. The outputs match for all
test conditions.
2015-08-18 14:00:37 -06:00
Dominic Clifton
3878a7ea2c make the rollover pattern tests less verbose 2015-08-18 19:08:37 +01:00
Nicholas Sherlock
53a1d7bcd7 Reshuffle Blackbox docs to reduce duplication, some updates 2015-08-18 21:13:41 +12:00
joshuabardwell
a03c0a4bdf Add information about wiring up OpenLog 2015-08-18 21:03:53 +12:00
Echelon9
f85bd89947 Promote 'make test' to a top level folder feature. 2015-08-17 23:02:19 +10:00
Dominic Clifton
6620be1768 Merge pull request #1211 from Echelon9/fix/readme-typo
Fix small typos in README.md
2015-08-17 09:45:07 +01:00
Echelon9
4c03b7880b Further typo fixes in the main README.md 2015-08-16 13:04:34 +10:00
Echelon9
9b71acd49a Fix small typo in README.md 2015-08-15 22:34:22 +10:00
Phillip Jones
92c3d1ac1d Merge branch 'master' into issue_8_sensors_align 2015-08-13 22:35:49 -06:00
Phillip Jones
a163613cf8 This addresses issue #8 by adding unit tests for sensorsAlign().
The test file includes a simple independent implementation of
vector rotation. Each of the following sensor_align_e types are
tested:
 * CW0_DEG
 * CW90_DEG
 * CW180_DEG
 * CW270_DEG
 * CW0_DEG_FLIP
 * CW90_DEG_FLIP
 * CW180_DEG_FLIP
 * CW270_DEG_FLIP

For each test, three unit vectors and a random vector are tested.
 * {1, 0, 0}
 * {0, 1, 0}
 * {0, 0, 1}
 * {R, R, R} (where R is a random number)

The vector under test is rotated using the functions defined in the
test file. The output of the test function is compared to the
output of the sensorsAlign() function. The outputs match for all
test conditions.
2015-08-13 22:13:02 -06:00
Dominic Clifton
e5e7bec406 Merge branch 'ProDrone-rx_sumd_added_crc_check' 2015-08-12 01:11:00 +01:00
Dominic Clifton
94c243c279 Merge branch 'rx_sumd_added_crc_check' of https://github.com/ProDrone/cleanflight into ProDrone-rx_sumd_added_crc_check
Conflicts:
	src/main/rx/sumd.c
2015-08-12 01:10:31 +01:00
Dominic Clifton
f510fe88b7 Merge pull request #1190 from ProDrone/pr995_modifications_1
RX - Corrections to RX fail detection, hold and preset, when using a PWM connection
2015-08-12 00:31:55 +01:00
ProDrone
d2c40076db PPM and PWM now have their own ___ReadRawRC functions.
Because a required change for PWM disturbed the PPM mode.
2015-08-12 00:58:44 +02:00
Dominic Clifton
cb92878fd0 Merge pull request #1172 from digitalentity/magzero-cli
Add ability to get/set mag calibration data
2015-08-11 22:16:45 +01:00
Dominic Clifton
e0d8f3bb1c Merge pull request #1185 from EvilBadger/MFNBFC-Battery
Modified VBatt functionality to enable better precision.
2015-08-11 21:52:36 +01:00
Dominic Clifton
89f7000c7a Merge pull request #1194 from ProDrone/rx_sumd_32_to_16
RX - SUMD channels are received as 16 bit values instead of 32
2015-08-11 21:35:04 +01:00
ProDrone
f26af1d844 Added CRC check to SUMD handler
Officially the CRC check is part of the SUMD protocol.

Framing errors are already covered and i expect these to occur around
the same time as CRC errors, so i am not sure if someone will ever
notice the difference...
2015-08-08 11:35:30 +02:00
ProDrone
95840ae512 rcData[] is keeping the right values now.
Logic for valid flightchannel detection is inverted in order to detect
the first flightchannel failure instead of waiting to check them all.

Clear PWM channel capture on read.

This invalidates the control channels on read. They are validated by
receiving a good value BEFORE the aux channels are received. This is
done because control channels configures to go OFF on failsafe are
detected with a PWM capture time-out. Time-out took so long that all aux
channels where overwritten by their RX configured failsafe values BEFORE
the invalid (=OFF) control channel was detected.
2015-08-08 10:45:03 +02:00
ProDrone
aaa7c7c5d3 SUMD channels are received as 16 bit values instead of 32
Preserve 32 bytes of RAM.
2015-08-08 10:20:37 +02:00
Dominic Clifton
26ab91687f Merge pull request #1191 from kilrah/kilrah/frsky_gps_speed_fix
GPS speed was 10x too big on frsky telemetry
2015-08-07 20:05:59 +01:00
Andre Bernet
03a4a594d3 GPS speed was 10x too big on frsky telemetry 2015-08-06 18:12:20 +02:00
EvilBadger
3879b6c566 Modified VBatt functionality to enable better precision. 2015-08-05 21:34:44 +01:00
Dominic Clifton
aa797a27fd Update baseflight migration guide to reference the cli serial command. 2015-08-05 17:16:07 +01:00
Dominic Clifton
402f90cc71 OLED - Use less verbose welcome page. 2015-08-05 04:53:09 +01:00
Dominic Clifton
56010f2da7 Fix incorrect DMA index for RSSI and Current.
The result was that RSSI and Current were transposed when both were used
together.
2015-08-05 04:52:19 +01:00
Dominic Clifton
5b236a8133 Fix flash size for SPRACINGF3.
Note: Only early prototypes had the smaller flash.
2015-08-05 02:52:33 +01:00
Dominic Clifton
463437fb45 Ensure battery status strings are stored in the flash. 2015-08-04 03:10:34 +01:00
Dominic Clifton
7202ad7524 Cleanup vbat time rollover. Cleanup whitespace. Code formatting.
Rename VBAT_DETECT to VBATT_PRESENT_THRESHOLD_MV.

Add two tests that show the two timing patterns that are in use in the
codebase.
2015-08-04 03:04:54 +01:00
DarkVegetableMatter
942c89237e Battery auto-detect and LPF for battery monitoring 2015-08-04 03:04:12 +01:00
Dominic Clifton
26ac6115e7 Merge branch 'digitalentity-rc-calibration' 2015-08-04 01:13:45 +01:00
Dominic Clifton
9d3276b222 Code and documentation cleanup of rc calibration.
Note: since it didn't actually calibrate anything it has been renamed to
rxrange.

Added ability to reset rxranges using `rxrange reset` - this follows the
same pattern as other cli commands.
2015-08-04 01:13:28 +01:00
Dominic Clifton
27f8223de7 Merge branch 'rc-calibration' of
https://github.com/digitalentity/cleanflight into
digitalentity-rc-calibration

Conflicts:
	docs/Rx.md
	src/main/io/serial_cli.c
	src/main/rx/rx.c
	src/main/rx/rx.h
2015-08-04 00:06:12 +01:00
Dominic Clifton
8af32e28fb Expand on the rx signal loss documentation. 2015-08-03 23:30:01 +01:00
Dominic Clifton
aca179c654 Updating failsafe and rx loss detection documentation. 2015-08-03 21:52:25 +01:00
Dominic Clifton
ae0c29125d Merge pull request #1157 from cleanflight/blackbox-pause
Add pause/resume switch support to Blackbox
2015-08-03 21:26:36 +01:00