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

7826 commits

Author SHA1 Message Date
mikeller
11459f7bb9 Reinstated 'MSP_BF_CONFIG' / 'MSP_SET_BF_CONFIG' as workaround to make it work with Betaflight configurator. 2017-03-23 00:17:11 +13:00
Michael Keller
2d90c27b0d Merge pull request #2715 from martinbudden/bf_blackbox_align
Aligned blackbox header strings with CLI
2017-03-22 14:21:59 +13:00
Michael Keller
b55b46a2b5 Merge pull request #2716 from betaflight/remove-msp-cruft
Remove msp/bst cruft
2017-03-22 11:12:19 +13:00
Hydra
a45e974c38 CF/BF - Restore BST_API_VERSION and BST_BUILD_INFO based on updated
requirements from TBS engineers.

Larry Ho: "
BST_MAG_CALIBRATION,
BST_ACC_CALIBRATION,
BST_SET_PID,
BST_SET_RC_TUNING,
BST_SET_LOOP_TIME,
BST_SELECT_SETTING,
BST_SET_RX_MAP,
BST_SET_MISC,
BST_SET_DEADBAND,
BST_SET_FC_FILTERS,
BST_SET_FEATURE,
BST_SET_RX_CONFIG,
BST_SET_MODE_RANGE,
BST_SET_LED_COLORS,
BST_SET_LED_STRIP_CONFIG,
BST_EEPROM_WRITE,
BST_REBOOT,
BST_DISARM,
BST_ENABLE_ARM,

BST_PID,
BST_STATUS,
BST_RC_TUNING,
BST_LOOP_TIME,
BST_RX_MAP,
BST_MISC,
BST_DEADBAND,
BST_FC_FILTERS,
BST_FEATURE,
BST_RX_CONFIG,
BST_LED_COLORS,
BST_LED_STRIP_CONFIG,
BST_API_VERSION"

There was a required to keep `BST_BF_BUILD_INFO`, which is not on the
list above, but has been deprecated for ages.  Since it was never used
we will keep the replacement `BS_BUILD_INFO` instead.

Dominic Clifton: "I will keep BST_BUILD_INFO and BST_API_VERSION and all
the ones on your list above."
2017-03-21 21:40:51 +00:00
Hydra
5ab2117a69 CF/BF - Further isolate BST to the Colibri_Race target. Remove even
more unused code.

It was partly isolated before, but now it's even clearer that only this
target uses it.
2017-03-21 21:17:40 +00:00
Hydra
a60a79eb82 CF/BF - Delete unused BST code.
"[20/03/2017, 13:46:12] Remo Masina: This is a list of al the frames we
currently use:

BST_MAG_CALIBRATION,
BST_ACC_CALIBRATION,
BST_SET_PID,
BST_SET_RC_TUNING,
BST_SET_LOOP_TIME,
BST_SELECT_SETTING,
BST_SET_RX_MAP,
BST_SET_MISC,
BST_SET_DEADBAND,
BST_SET_FC_FILTERS,
BST_SET_FEATURE,
BST_SET_RX_CONFIG,
BST_SET_MODE_RANGE,
BST_SET_LED_COLORS,
BST_EEPROM_WRITE,
BST_REBOOT,
BST_DISARM,
BST_ENABLE_ARM,

BST_PID,
BST_STATUS,
BST_RC_TUNING,
BST_LOOP_TIME,
BST_RX_MAP,
BST_MISC,
BST_DEADBAND,
BST_FC_FILTERS,
BST_FEATURE,
BST_RX_CONFIG"

See here:
https://github.com/cleanflight/cleanflight/pull/2664#issuecomment-287764706
2017-03-21 21:17:33 +00:00
Hydra
1c33cb1cf2 CF/BF - Rename MSP_BOARD_ALIGNMENT to MSP_BOARD_ALIGNMENT_CONFIG 2017-03-21 21:17:25 +00:00
Hydra
601b302c5b CF/BF - Rename MSP_3D to MSP_MOTOR_3D_CONFIG.
now it's really obvious that 3d throttle deadband really doesn't belong
in it.  If you need 3D specific ESC/MOTOR configuration use this.  If yo
need specific 3D RX configuration use other commands like
MSP_RC_DEADBAND, etc.
2017-03-21 21:17:17 +00:00
Hydra
5d602d69ff CF/BF - Delete old/unused MSP commands. Cleaning MSP naming a little.
The commands that are deleted have been deprecated for a LONG time.
They have long been superceed with more specific commands.

Fix voltage meter config to include id and type in the subframe.
2017-03-21 21:17:06 +00:00
Hydra
e9aaa4387e CF/BF - Remove RX_MSP from Colibri race target. 2017-03-21 21:16:53 +00:00
Hydra
e7cbfcc8c0 CF/BF - Delete BST_SET_RAW_RC - it was missing a break statement and
thus was clearly unused.
2017-03-21 21:16:43 +00:00
Hydra
f4ff951813 CF/BF - delete some unused code from BST. 2017-03-21 21:16:33 +00:00
Martin Budden
9186551bf4 Aligned blackbox header strings with CLI 2017-03-21 08:16:21 +00:00
Martin Budden
5e27ece09f Merge pull request #2712 from Faduf/master
Add OSD support to YuPiF4 target
2017-03-21 04:47:21 +00:00
Martin Budden
ef9cdf4b3e Merge pull request #2711 from betaflight/spracingf3neo-fix-1
CF/BF - SPRACINGF3NEO - Fix incorrect LED strip output pin.
2017-03-21 04:40:08 +00:00
Faduf
e666a1f1b1 Add OSD support to YuPiF4 target 2017-03-20 22:38:05 +01:00
Hydra
adaae967ef CF/BF - SPRACINGF3NEO - Add to official target list. 2017-03-20 21:19:01 +00:00
Hydra
6783122bea CF/BF - SPRACINGF3NEO - Fix incorrect LED strip output pin. Allow LED
and transponder even when DSHOT is compiled.

Enabling LED_STRIP and/or TRANSPONDER will break DSHOT on motor outputs
1 and 3.

Without DSHOT, LED_STRIP and TRANSPONDER work fine, at the same time.
2017-03-20 21:16:40 +00:00
Martin Budden
5a3bedccb2 Merge pull request #2710 from DieHertz/cli-resource-sonar-fix
Fixed Sonar Echo pin definition
2017-03-20 19:14:42 +00:00
DieHertz
530aa52977 Fixed Sonar Echo pin definition 2017-03-20 21:28:39 +03:00
Michael Keller
f557c90169 Merge pull request #2706 from mikeller/allow_explicit_arm_toolchain_path
Enabled setting of explicit ARM toolchain path in 'ARM_SDK_DIR'.
2017-03-21 00:22:01 +13:00
mikeller
55c0b622a4 Enabled setting of explicit ARM toolchain path in 'ARM_SDK_DIR'. 2017-03-20 23:13:13 +13:00
Dominic Clifton
adbd448c0d Merge pull request #2701 from betaflight/battery-cleanup-2
CF/BF - Include id and type in the voltage meter config subframe.
2017-03-19 20:06:20 +00:00
Hydra
067d9e619f CF/BF - Include id and type in the voltage meter config subframe.
It was supposed to be like this and now matches the current meter
config.
2017-03-19 18:25:26 +00:00
Michael Keller
a16991cb93 Merge pull request #2667 from flyinglemonfpv/master
Added PLUM F4 target
2017-03-20 01:53:52 +13:00
flyinglemonfpv
47f4d815a2 Removed PLUMF4 as separate target, added PLUMF4 variant to KIWIF4. 2017-03-19 13:37:56 +01:00
flyinglemonfpv
31cd33a58e Added PLUM F4 target 2017-03-19 13:37:56 +01:00
Michael Keller
9204adc5a7 Merge pull request #2665 from mluessi/ml_fix_io_init
IO: Handle NONE (NULL) io pin
2017-03-20 00:28:32 +13:00
Dominic Clifton
7edb599296 Merge pull request #2699 from betaflight/battery-cleanup
Battery cleanup
2017-03-19 11:27:32 +00:00
Hydra
bc0a0a0eda OMNIBUSF3 - disable TELEMETRY_HOTT due to flash size. 2017-03-19 10:40:28 +00:00
Hydra
b473ebf0d0 CF/BF - reduce flash usage by allowing blackbox that match other strings
to
be-duplicated by the linker.
2017-03-19 10:40:27 +00:00
Hydra
31dc531ca0 CF/BF - add cli diff support for voltage and current sensors. 2017-03-19 10:40:26 +00:00
Hydra
4554019c52 CF/BF - fix naming of currentMeterVirtualState_t 2017-03-19 10:40:25 +00:00
Hydra
abb6eb5b54 CF/BF - remove dependency on scheduler from battery.c by using local state. 2017-03-19 10:40:24 +00:00
Hydra
8e6c7fb9e3 CF/BF - remove the " " character in front of "LAND NOW" and replace with an
offset variable.

Code size is identical on SPRacingF3NEO.
2017-03-19 10:40:23 +00:00
Hydra
709cd9f8df CF/BF - reduce code size by changing dependencies in battery.c and removing two
functions from fc_tasks.c

I don't like the dependency changes, but I'm not overly concerned by
them.
2017-03-19 10:40:22 +00:00
Hydra
486b5a1b9a CF/BF - clarify voltage/sensors terminology. 2017-03-19 10:40:21 +00:00
Hydra
01732f4523 CF/BF - improve const correctness by declaring iBatSample as const. 2017-03-19 10:40:20 +00:00
Hydra
9482a12677 CF/BF - declare variable at point of first usage (code style) 2017-03-19 10:40:19 +00:00
Hydra
85b05d3483 CF/BF - rearrange the values in batteryConfig_t to reduce PG size. 2017-03-19 10:40:18 +00:00
Hydra
8145dfba0c CF/BF - remove not operator to improve readability. 2017-03-19 10:40:17 +00:00
Hydra
c0c6450e61 CF/BF - use one task for each battery sensor. 2017-03-19 10:40:16 +00:00
Hydra
d331ceff0b CF/BF - replace magic numbers for subframe lengths. 2017-03-19 10:40:15 +00:00
Hydra
382ef9de68 CF/BF - remove unneeded braces in MSP_ANALOG 2017-03-19 10:40:14 +00:00
Hydra
c59e7312c2 CF/BF - move target specific current sensor configuration for BETAFLIGHTF3 and
PIKOBLX.  Since there is nothing else to configure in the corresponding
config.c files they were deleted too.
2017-03-19 10:40:13 +00:00
Hydra
1cd4227823 CF/BF - separate the virtual and adc current sensor configuration.
update the MSP configuration of current and voltage sensors to use IDs.

revert the i2s_bst changes, since TBS won't be updating their firmware
there is no point adding new features to it, we just need to keep it
compatible
2017-03-19 10:40:12 +00:00
Hydra
2f99749003 CF/BF - add support for reading all voltage and current meters via MSP.
Refactored current meter API and state, now it's more closely aligned
with the the voltage meter API.
2017-03-19 10:40:11 +00:00
Hydra
b0c49caa3d CF/BF - update MSP_BATTERY_STATE based on feedback. 2017-03-19 10:40:10 +00:00
Hydra
249c707beb CF/BF - rename adcConfig.currentMeter to adcConfig.current 2017-03-19 10:40:09 +00:00
Hydra
dbd819c85a CF/BF - move adc current sensor default scale and offset to target.h instead of
target specific config.c
2017-03-19 10:40:08 +00:00