1
0
Fork 0
mirror of https://github.com/betaflight/betaflight.git synced 2025-07-24 16:55:36 +03:00
Commit graph

176 commits

Author SHA1 Message Date
Miguel Angel Mulero Martinez
24aef422ee Add HOME DIRECTION arrow to OSD 2017-06-12 08:37:42 +02:00
Martin Budden
e9b2d7e223 Merge pull request #3252 from martinbudden/bf_osd_tidy
OSD tidy
2017-06-11 18:21:46 +01:00
Martin Budden
e59d17033c OSD tidy 2017-06-11 16:46:51 +01:00
Dan Nixon
c3cccb888b Fix formatting of GPS speed
Fixes #3236
2017-06-08 15:16:45 +01:00
Dominic Clifton
e3b3b6881c Merge pull request #2836 from cleanflight/cleanup-osd-2
CF/BF - Cleanup OSD default positions.
2017-06-04 10:42:58 +12:00
Michael Keller
27679e69f2 Merge pull request #3193 from DanNixon/osd_volt_symbol
Use the volts symbol for voltages in OSD
2017-06-02 15:37:10 +12:00
Dan Nixon
6297969a5e Use the volts symbol for voltages in OSD 2017-06-01 11:40:57 +01:00
Dan Nixon
1366676880 Add back the OSD disarmed element 2017-05-31 16:29:10 +01:00
Martin Budden
dafac79ebf Merge pull request #3142 from DanNixon/osd_animate_battery_icon
Animate the battery symbols on OSD based on voltage
2017-05-28 14:42:59 +01:00
Martin Budden
3a5010ea65 Replace sprintf with tfp_sprintf 2017-05-28 07:17:35 +01:00
Dan Nixon
d95331323e Animate the battery symbols on OSD based on voltage 2017-05-26 17:15:19 +01:00
Martin Budden
f3502662b9 Merge pull request #3156 from martinbudden/bf_driver_time_header
Moved time functions out of system.h into time.h
2017-05-26 14:44:41 +01:00
Martin Budden
23f158913e Moved time functions out of system.h into time.h 2017-05-26 14:03:28 +01:00
Dan Nixon
79a0f9738c Correct switch indentation in osd.c 2017-05-26 09:21:27 +01:00
Dan Nixon
36b1b581fa Further tidy up in osd.c 2017-05-23 18:17:56 +01:00
Dan Nixon
06dd634464 Reset the time since last armed counter just after stats screen display
This ensures that the time since last armed is zero when exiting the
stats display and returning to "main" OSD screen
2017-05-23 17:10:52 +01:00
Dan Nixon
4c47e2e972 Tidy formatting in osd.c 2017-05-23 17:07:56 +01:00
Dan Nixon
7b6dc1b005 Small fixes from #3133 2017-05-23 17:07:18 +01:00
borisbstyle
29917db6f2 Merge pull request #3133 from DanNixon/osd_stats
Allow customisation of the OSD stats screen
2017-05-23 14:07:19 +02:00
Dan Nixon
562ffbdbc4 Reduce flash usage in OSD stats screen 2017-05-23 12:48:41 +01:00
Dan Nixon
d83f0ddf5e Add fly timers to stats, add armed time OSD elem.
Added:
- Fly time stat (total time armed)
- Armed time stat (time since last arming)
- Armed time OSD element (time since last arming)
2017-05-22 18:24:11 +01:00
Dan Nixon
3b353ae948 Allow toggling items on BFOSD stats screen 2017-05-06 20:40:43 +01:00
Martin Budden
71546410de Rearrange PID array to be array of PIDs 2017-05-06 11:06:47 +01:00
Bas Delfos
5499e08bf0 Review changes 2017-05-04 20:38:09 +02:00
Bas Delfos
37e2b8be24 Added OSD Battery Usage progressbar 2017-05-04 20:38:09 +02:00
Dan Nixon
456d618d1b Add pitch and roll angles to BFOSD 2017-04-28 14:32:52 +01:00
Hydra
8dc019acdf CF/BF - Fix average cell voltage.
4.10 was rendered as "4.10V"
4.07 was rendered as "4.7V"

Caused by incorrect format specification.
2017-04-23 21:16:23 +01:00
Hydra
723831b579 SPRACINGF3NEO - Use RTC6705 clk hack.
CF/BF - Fix typo in max7456DmaInProgress.  Always define an
implementation even when there is no TX-DMA.

CF/BF - Ensure that max7456 communication does not disrupt RTC6705
communication when using the same SPI port for both.

CF/BF - Port RTC6705 to use the VTX API.

* Support VTX channel/band/power on OSD for ALL vtx APIs - previously it only supported RTC6705.
* Remove all FEATURE_VTX usage.
* Remove all `#define VTX` usage.

Note that due to the async nature of tramp/smartaudio it's not possible
to know the current band/channel after requesting a change (as the
request hasn't been processed) so it makes no sense to try and save the
config - and on the tramp/smartaudio vtx the vtx maintains it's state.
So on an RTX6705 equipped FC the user should now MANUALLY save the
config using the save config stick position.

CF/BF - Move CMS for RTC6705 into vtx_rtc6705.c for consistency with
other VTX CMS menus.

CF/BF - Update RTC6705 via SOFT SPI to use VTX API.

* Achieved by simply aligning the API at the driver level and removing
all legacy conditional compilation checks.

CF/BF - Use new IO for RTC6705 CLK Hack

CF/BF - Port VTX button from CF v1.x.

Features:
* Channel Cycle
* Band Cycle
* Power Cycle
* Save Settings
* Works with any VTX using VTX API.

CF/BF - Allow support for Internal and External VTX - External takes
precedence when configured.

CF/BF - Fix display of VTX power in CMS.

* Issue occured when CMS was transitioned from integer to list of
strings.

CF/BF - Disable SMARTAUDIO and TRAMP on the SPRacingF3NEO due to flash
size.

CF/BF - Cleanup const usage of bass-by-value parameters.  Cleanup
naming.

CF/BF - Cleanup naming.  Removing noise-words. Improving consistency.

CF/BF - Improve readability by further naming cleanups.

CF/BF - Remove some magic numbers in the RTC6705 VTX code.

CF/BF - Use braces on some procedural macros.

CF/BF - Improve code readability by renaming rtc6705SetChannel to
rtc6705SetBandAndChannel.

CF/BF - Remove editor mishap.

CF/BF - Make the rtc6705Dev variable static.

CF/BF - remove duplicate state variablertc6705Dev_t - vtxDevice_t had
all we needed.  Use brackets on some procedural style macros.  Make all
the vtx vtable static const.

CF/BF - making some declarations const.

CF/BF - Fix vtx_power maximum value (out by one).
2017-04-21 11:49:31 +12:00
Hydra
228e457ead CF/BF - Prevent 'waiting for fc' message on OSD slave when the osd
statistics page or splash screen is shown.
2017-04-17 18:27:42 +01:00
Hydra
4d70c43c1a CF/BF - SPRACINGF3 - Use slower MSP displayport data rate when disarmed
to prevent configurator stalls.

* Probably the configurator should set the MSP data rate on connect
instead, but this solution works for now.
2017-04-17 18:27:41 +01:00
Martin Budden
996e8b31d9 Merge pull request #2782 from martinbudden/bf_osd_debug
Added debug fields to OSD
2017-04-12 17:18:18 +01:00
Hydra
2b1dac4c6d CF/BF - First cut of allow building of the OSD SLAVE board without all
the flight controller code.

Likely the dependencies can be further improved.  This is a
minimal-impact solution while there are a lot of other Betaflight PR's
still pending.
2017-04-12 00:39:27 +01:00
Martin Budden
3a672c82e8 Merge pull request #2849 from martinbudden/bf_fake_accgyro_locks
Added locking to fake gyro and acc
2017-04-11 19:05:00 +01:00
Martin Budden
0219d6adc7 Updated accgyro locking. Printf tidy 2017-04-10 14:54:25 +01:00
Michael Keller
e66b74579b Changed CLI variables to use a union. Some build fixes. 2017-04-10 19:12:41 +12:00
Michael Keller
ce8c5fbd79 Merge pull request #2760 from mikeller/reworked_altitude_estimation
Reworked altitude estimation. Made it work when ACC is disabled.
2017-04-10 13:00:16 +12:00
Hydra
722523df31 CF/BF - Allow OSD to be compiled without blackbox. 2017-04-09 13:48:47 +01:00
Cyril Jaquier
af9e6a94b0 Make crosshairs visible even if accel is disabled 2017-04-09 09:50:29 +02:00
mikeller
6a03b48e7f Reworked altitude estimation. Made it work when ACC is disabled. 2017-04-08 22:54:44 +12:00
Martin Budden
149ed180f6 Merge pull request #2800 from jflyper/bfdef-cms-resurrect-display-cycling
[CMS] Resurrect display cycling
2017-04-03 20:52:30 +01:00
Hydra
2fb950b543 CF/BF - Fix GPS lat/lon symbols to use symbols that are actually in the
default CF/BF fonts.
2017-04-02 19:57:43 +01:00
jflyper
e186a2d709 Further fix CMS displayPort registration
1. Avoid OSD over MSP_DISPLAYPORT case (not ready yet).
2. osdInit to take care NULL displayPortToUse.
2017-04-02 01:26:49 +09:00
Martin Budden
9715508c7b Added debug fields to OSD 2017-03-31 08:01:01 +01:00
Martin Budden
b370cec537 Added GPS position to OSD 2017-03-29 16:00:03 +01:00
blckmn
c0d18280d5 Removed feature SDCARD and BLACKBOX
Now uses blackboxConfig()->device instead. Requires co-ordination with configurator.
2017-03-28 21:29:50 +11: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
8145dfba0c CF/BF - remove not operator to improve readability. 2017-03-19 10:40:17 +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
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
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