EvilBadger
3879b6c566
Modified VBatt functionality to enable better precision.
2015-08-05 21:34:44 +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
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
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
ae0c29125d
Merge pull request #1157 from cleanflight/blackbox-pause
...
Add pause/resume switch support to Blackbox
2015-08-03 21:26:36 +01:00
Dominic Clifton
c1cb0d8864
CC3D - Display OLED DISPLAY on OPBL builds.
2015-08-03 21:19:20 +01:00
Dominic Clifton
1ef2d8ea4d
Cleanup PWM rx loss detection.
2015-08-03 20:17:47 +01:00
Dominic Clifton
490268d2fc
Failsafe - Allow AUX channels to HOLD their last value or be SET to a
...
specific value when RX loss is detected.
Tested with SBus, PWM & PPM.
2015-08-03 18:16:28 +01:00
Dominic Clifton
3436b08575
Failsafe - Remove magic number usage. Cleanup whitespace
2015-08-03 17:03:53 +01:00
Konstantin Sharlaimov (DigitalEntity)
a30897c440
Add ability to get/set mag calibration data
2015-07-31 23:05:12 +10:00
ProDrone
08b376f2a5
RPY to mid-stick and T to lowest (or mid for 3D).
...
On bad (out-of-range) pulses; ROLL, PITCH, YAW will go to `mid_rc` and
THROTTLE will go to `rx_min_usec` (to `mid_rc` for 3D mode). So these
channels will no longer be set by the user directly.
Fallback values for the aux switches (0 .. max) can be set with this
version. Since these switches may trigger all kind of things, the user
needs control over them in case of a RX failsafe event.
A single flight control channel failure (first 4) when using parallel
PWM is interpreted as a failure for all flight control channels (first
4), since the craft may be uncontrollable when one channel is down. (+4
squashed commit)
Squashed commit:
[dbfea9e] Apply fallback values also when serial_rx init failed and/or
RX
disconnected and/or no signal received.
[b5a2ecd] Added get/set MSP commands for RXFAIL config
Bumped API minor version up.
[c0e31ce] minor change for coding standard
[322705f] Added programmable RX channel defaults on rx lost Update #2
2015-07-31 14:35:14 +02:00
Nicholas Sherlock
0c4604eeef
Blackbox code size savings by factoring common loops out into fuctions
2015-07-31 15:53:22 +09:00
Nicholas Sherlock
53860e461c
Add resume event to allow clean log decoding, add documentation
2015-07-23 19:18:08 +12:00
Alexander Fedorov
01632998a3
Blackbox: Enable logging when mode switch is active
2015-07-22 13:36:22 +12:00
Dominic Clifton
7af3d57606
Fix default rx_min_usec to be 885 - this default needs to be just above
...
the lowest setting that an SBus RX will use in failsafe mode.
The previous value of 985 was a typo.
```0.625f * sbusChannelValue) + 880;```
2015-07-17 01:05:14 -07:00
Dominic Clifton
b794e263e8
Fix compiler errors for old led animation code.
2015-07-17 01:05:14 -07:00
Dominic Clifton
c5dbf16060
De-duplicate mixer integration test code.
2015-07-17 01:05:14 -07:00
Dominic Clifton
cfe0d770ac
De-duplicate mixer tri and quad integration test setup code.
2015-07-17 01:05:14 -07:00
Dominic Clifton
9f62349191
De-duplicte some Channel forwarding test-setup code
2015-07-17 01:05:14 -07:00
Dominic Clifton
5be2276b6b
First cut of custom motor and servo mixer test.
...
Note: The test is rather heavyweight, more like an integration test than
a unit test, but will allow for the underlying code to be refactored.
2015-07-17 01:05:14 -07: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
57e1c70548
Merge pull request #1046 from fedorcomander/blackbox_inflight_adjustments
...
Add logging of the inflight adjustment events to the blackbox
2015-07-13 18:05:08 +01:00
Dominic Clifton
c0f1f1c145
Merge pull request #1111 from digitalentity/patch-1
...
Typo fix for quickMedianFilter implementation
2015-07-13 17:54:51 +01:00
Dominic Clifton
de1ff66854
PORT103R - Enable MPU6000/MPU6500 autodetection.
2015-07-13 03:29:18 +01:00
Dominic Clifton
676b2dd6c0
Use the define USE_FLASH_M25P16. Only USE_FLASHTOOLS for some
...
development targets.
2015-07-13 03:28:34 +01:00
Dominic Clifton
cc06113c8f
Rename yaw_direction
to yaw_motor_direction
to avoid confusion
...
between `yaw_control_direction` and yaw servo configuration.
2015-07-13 01:54:45 +01:00
Dominic Clifton
d23dc246d0
Add some error checking to the servo command.
2015-07-13 00:57:44 +01:00
Dominic Clifton
12ce6334fe
Bump version.
2015-07-12 23:32:29 +01:00
Dominic Clifton
6dca303130
Cleanup servo configuration storage (align some values more
...
efficiently). Update MSP_SERVO_CONFIGURATIONS,
MSP_SET_SERVO_CONFIGURATION value order. Add some error checking to
size of MSP_SET_SERVO_CONFIGURATION.
2015-07-12 23:32:07 +01:00
Konstantin Sharlaimov
082ac22eb0
Typo fix for quickMedianFilter implementation
2015-07-10 22:44:40 +10:00
Dominic Clifton
4c8f7db2c9
Updating the test suite names for some new MS5611 barometer tests.
2015-07-10 01:35:11 +01:00
Dominic Clifton
18699a1ba2
Merge branch 'baro_pressure_unit_test' of https://github.com/SteveAmor/cleanflight into SteveAmor-baro_pressure_unit_test
2015-07-10 01:32:40 +01:00
Dominic Clifton
d3e359b9e0
Merge branch 'bmp085_unit_test' of
...
https://github.com/SteveAmor/cleanflight into SteveAmor-bmp085_unit_test
Conflicts:
src/test/Makefile
2015-07-10 01:29:42 +01:00
Dominic Clifton
9f76ec3845
Merge branch 'incremental-test' of https://github.com/nzmichaelh/cleanflight into nzmichaelh-incremental-test
2015-07-10 01:18:55 +01:00
Dominic Clifton
9d4dbb4871
Merge branch 'octomixer' of https://github.com/iforce2d/cleanflight into iforce2d-octomixer
...
Conflicts:
src/main/config/config.c
2015-07-10 00:47:22 +01:00
Dominic Clifton
9f88439b4b
Merge pull request #1101 from tannewt/patch-1
...
Correct rate comment
2015-07-10 00:35:24 +01:00
Konstantin Sharlaimov (DigitalEntity)
eb5fc7c0eb
Refactored code
2015-07-10 09:07:28 +10:00
Dominic Clifton
783a4c4bfa
Merge pull request #1066 from cleanflight/custom-servo-mixers
...
Custom servo mixers
2015-07-09 23:48:53 +01:00
Dominic Clifton
164fd4ec57
Merge pull request #1092 from digitalentity/fast-trig
...
Ported fast trigonometry functions over from @Crashpilot1000 Harakiri
2015-07-09 23:41:04 +01:00
Dominic Clifton
eb53855cd1
Fix CJMCU build - caused by a missed rename of mixerResetMotors to
...
mixerResetDisarmedMotors
2015-07-09 22:52:04 +01:00
Dominic Clifton
4a3970c9ab
Fix range argument processing.
2015-07-09 22:13:21 +01:00
Dominic Clifton
62d638b2d9
Update smix reverse to use 'r' or 'n' for reverse or normal to a) match
...
the table, b) be more user friendly.
2015-07-09 21:15:11 +01:00
Dominic Clifton
57eb44928e
Update mixer unit test for 7b91524ba2
2015-07-09 21:11:46 +01:00
Dominic Clifton
c9f5ca3faf
Deleted code specific to fixed wing that set motors to mincommand when
...
disarmed.
Ensure that servo mixes that use calculated throttle output (motor 0)
adhere to the armed/disarmed state, this is achieved by ensuring that
motor outputs, including the effects of MOTOR_STOP are calculated BEFORE
using motor 0 as an input source for the servo mixer.
2015-07-09 20:23:37 +01:00
Scott Shawcroft
e67a1435cd
Correct rate comment
2015-07-09 12:13:03 -07:00
Dominic Clifton
84773a8c91
Fix vectored thrust code, flying wing != vectored thrust.
...
vectored thrust is too generic a term. examples:
1) fixed wing with ailerons and fixed motors on each wing, yaw the plane
by changing the speeds of the motors
2) fixed wing with ailerons and single motor at rear, yaw the plane by
pivoting the motor left or right
Both of the above scenarios are possible using MIXER_CUSTOM_AIRPLANE.
In baseflight vectored thrust was added in:
e3585df3a3 (diff-2c11cf77e56a7a330caeccadfc1d8bcdR448)
then broken in:
ce0300a344 (diff-2c11cf77e56a7a330caeccadfc1d8bcdL449)
see:
https://github.com/multiwii/baseflight/blob/master/src/mixer.c#L153
https://github.com/multiwii/baseflight/blob/master/src/mixer.c#L328-L329
https://github.com/multiwii/baseflight/blob/master/src/mixer.c#L546-L555
2015-07-09 19:53:37 +01:00