1
0
Fork 0
mirror of https://github.com/betaflight/betaflight.git synced 2025-07-26 09:45:37 +03:00
Commit graph

7902 commits

Author SHA1 Message Date
Dominic Clifton
1af4c24e76 Merge pull request #2673 from McGiverGim/document-customized-version
Document customized version
2017-03-29 11:55:44 +02:00
Miguel Angel Mulero Martínez
a78465f52b Document how-to create a customized firmware version 2017-03-28 13:23:21 +02:00
Dominic Clifton
599f129f63 Merge pull request #2676 from cleanflight/remove-msp-cruft
CF/BF - Remove more MSP cruft.
2017-03-24 02:10:11 +00:00
Hydra
327564ebdf CF/BF - Delete unused 'angleAtMin' and 'angleAtMax'. 2017-03-23 21:55:56 +00:00
Hydra
417f42aa5a CF/BF - Fix MSP_SET_SERVO_CONFIGURATION.
In CF 1.x the structure was packed, resulting in a size of 14 bytes.
The servoParam_t is not currently packed, likely due to recent PG group
implementation, so the test for data length in the MSP command fails.
2017-03-23 21:55:49 +00:00
Dominic Clifton
a70c6ef6bc Merge pull request #2671 from cleanflight/remove-msp-cruft
CF/BF - Restore BST_API_VERSION and BST_BUILD_INFO
2017-03-21 21:43:04 +00:00
Hydra
c34c5901f5 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:39:57 +00:00
Dominic Clifton
44281725e9 Merge pull request #2669 from cleanflight/spracingf3neo-fix-1
CF/BF - SPRACINGF3NEO - Fix incorrect LED strip output pin.
2017-03-21 21:15:09 +00:00
Dominic Clifton
8f3347a2fd Merge pull request #2664 from cleanflight/remove-msp-cruft
Remove msp cruft
2017-03-21 21:14:54 +00:00
Hydra
5ca3896627 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-20 21:31:57 +00:00
Hydra
055537225b 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-20 21:31:55 +00:00
Hydra
c99de025d4 CF/BF - Rename MSP_BOARD_ALIGNMENT to MSP_BOARD_ALIGNMENT_CONFIG 2017-03-20 21:31:54 +00:00
Hydra
19af1fa8b8 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-20 21:31:53 +00:00
Hydra
ab2b1188cf 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-20 21:31:52 +00:00
Hydra
acb4a7b5ee 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:15:44 +00:00
Hydra
1354b06e2b CF/BF - Remove RX_MSP from Colibri race target. 2017-03-19 15:28:13 +00:00
Hydra
fcd93233ba CF/BF - Delete BST_SET_RAW_RC - it was missing a break statement and
thus was clearly unused.
2017-03-19 15:25:05 +00:00
Hydra
836502e930 CF/BF - delete some unused code from BST. 2017-03-19 15:23:58 +00:00
Dominic Clifton
e1670e0da8 Merge branch 'betaflight-master' 2017-03-19 11:39:20 +00:00
Dominic Clifton
e3629a099f Merge branch 'master' of https://github.com/betaflight/betaflight into betaflight-master 2017-03-19 11:38:48 +00: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
2d739e8b61 CF - fix average cell voltage on osd merge. 2017-03-19 10:48:44 +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
Hydra
f3e740c598 CF/BF - refactor voltage refresh/read api. update voltage/current msp code
msp code is still unfinished, but the plan is clearer now.

move some defaults from battery.h and allow targets to override them.

define ID's for all voltage and current sensors, the idea being a list
of ids wil lbe created for each build which will allow all the voltage
and current meters to be exposed via MSP.
2017-03-19 10:40:07 +00:00
Hydra
089042e136 CF/BF - fix OSD battery warning when there is no warning to display. 2017-03-19 10:40:06 +00:00
Hydra
15241b1955 CF/BF - cleanup notes regarding the design choices that were made regarding
MSP_VOLTAGE_METER_CONFIG/MSP_CURRENT_METER_CONFIG.
2017-03-19 10:40:05 +00:00
Hydra
c6d1148134 CF/BF - delete legacy multiwiiCurrentMeterOutput setting. 2017-03-19 10:40:04 +00:00
Hydra
067d3c0ac2 CF/BF - First cut of Current/Voltage/Battery cleanup.
many refactorings, bugs squished, concerns separated,
single-responsibility violations fixed and performance optimizations.
2017-03-19 10:40:03 +00:00
mikeller
b46e0fe46d Added CL_RACINGF4 target, based on #2671. 2017-03-19 10:40:02 +00:00