1
0
Fork 0
mirror of https://github.com/betaflight/betaflight.git synced 2025-07-19 06:15:16 +03:00
Commit graph

8014 commits

Author SHA1 Message Date
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
Cheng Lin
ae58a07f2a add CL_RACINGF4 TARGET 2017-03-19 10:40:01 +00:00
mikeller
4af589f9fd Fixed warning about unused parameter 'softserialEnabled'. 2017-03-19 10:40:00 +00:00
Dominic Clifton
3c885349c6 Merge pull request #2697 from betaflight/osd-improvements
Osd improvements
2017-03-19 10:37:50 +00:00
Hydra
e37944ba7b CF/BF - OSD - Nudge craft name over by one character to align with
flight mode.
2017-03-19 10:36:24 +00:00
Hydra
4c517a56ea CF/BF - OSD - Change the default OSD unit to metric since there are
missing calculations for GPS_speed, better to have everything in the
same units than a mix.
2017-03-19 10:36:23 +00:00
Hydra
636c194aea CF/BF - OSD - Show symbol for GPS speed to better align with altitude
display on OSD.  Name and extract the duplicated GPS_speed equation - in
CM/S to KM/H.
2017-03-19 10:36:22 +00:00
Hydra
c40c507f1b CF/BF - OSD - Use m/s as the GPS speed unit, there is currently no
imperial conversion.
2017-03-19 10:36:21 +00:00
Hydra
c8888ad6bd CF/BF - OSD - Show VTX channel/band hardware RTC6705 users (e.g.
SPRacingF3NEO/SINGULARITY)
2017-03-19 10:36:20 +00:00
Hydra
e1ac5b82df CF/BF - OSD - use a strict mask to prevent invalid OSD positions values from
being created.
2017-03-19 10:36:19 +00:00
Hydra
d91987c287 CF/BF - OSD - Use a default OSD layout that has no overlapping elements.
Note: We give the users all the information, and let them turn off what they don't need.  In testing it was found that if we hide the information some users will never know it's there.
2017-03-19 10:36:18 +00:00
Hydra
45252b5f84 CF/BF - OSD - Extract logo drawing code into static method. 2017-03-19 10:36:17 +00:00
Hydra
f509582e6d CF/BF - OSD - Cleanup the splash screen. 2017-03-19 10:36:16 +00:00
Dominic Clifton
aead39c279 Merge pull request #2696 from betaflight/osd-fix
Give cell voltage element a default position
2017-03-19 10:32:48 +00:00
Florian Ragwitz
92f0f7ff69 Give cell voltage element a default position
This is a follow-up to a151d5092, which got merged with a copy-and-paste
error. Sorry about that!
2017-03-19 10:32:13 +00:00
mikeller
0a37cf1b43 Added BEEROTORF4 target. 2017-03-19 14:59:55 +13:00
borisbstyle
28f9dc6849 Fix unwanted inversion of escprog // Fix motor output numbering 2017-03-19 02:05:25 +01:00
borisbstyle
db2e868675 Merge pull request #2682 from rafl/rafl/avg-cell-voltage
Add average cell voltage to OSD
2017-03-18 23:19:09 +01:00
borisbstyle
82c44f275c Merge pull request #2684 from betaflight/fix-rccontrols-yaw-pg
fix missing yaw default when using PGs.
2017-03-18 23:18:44 +01:00
Hydra
0b531db549 fix missing yaw default when using PGs. this resulted in no yaw from RC
input.
2017-03-18 20:30:43 +00:00
Florian Ragwitz
a151d50929 Add average cell voltage to OSD
This can make it a little easier for some pilots to see where their
battery is at, especially if they move forth and back between different
cell counts a lot.
2017-03-18 11:57:30 -07:00
Martin Budden
60a41c7706 Merge pull request #2669 from DieHertz/more-cli-pg-fixes
More CLI PG fixes
2017-03-17 15:57:44 +00:00
Martin
473826760d serialUARTInit: allow missing rx/tx pin 2017-03-17 11:10:48 -04:00
DieHertz
98d2dc85c0 Reverted defaults for some CLI values 2017-03-17 03:07:56 +03:00
DieHertz
4ad8e36bc8 Disabled MSP on first UART unless USE_MSP_UART defined 2017-03-17 02:56:52 +03:00
DieHertz
e570c4aba8 Fixed CLI output for name and acc_lpf_hz 2017-03-17 02:56:51 +03:00
DieHertz
d97a012eca Set acc_lpf_hz default back to 10 2017-03-17 02:56:51 +03:00
DieHertz
2e98279369 Set default GPS baud rate back to 57600 2017-03-17 02:56:51 +03:00
DieHertz
cbc23bb68c Avoid copying in pgRestFn_rxConfig() 2017-03-17 02:56:51 +03:00
Martin Budden
8a60857a09 Merge pull request #2663 from mikeller/fix_pg_resource
Fixed 'resource' command after PG introduction.
2017-03-16 22:29:13 +00:00
Martin Budden
61a5690a6c Merge pull request #2664 from DieHertz/pg-diff-dump-corrections
PG fixes to CLI dump/diff behaviour
2017-03-16 21:32:36 +00:00
DieHertz
1b2cccddbf Fixed PID & Rate profile output via diff/dump 2017-03-16 23:10:22 +03:00
DieHertz
0b100bf167 Fixed rxfail and rxrange CLI commands 2017-03-16 23:10:10 +03:00
Martin
dcdaa6c7ad IO: handle NONE (NULL) io pin 2017-03-16 11:29:22 -04:00