Konstantin Sharlaimov
3c7bf3ac7d
Merge pull request #2862 from iNavFlight/de_kakute_ledstrip
...
Add LEDSTRIP support to KAKUTEF4 target
2018-03-07 17:08:55 +10:00
Konstantin Sharlaimov (DigitalEntity)
d6a63647ce
Fix failing PWM timer initialization on F7
2018-03-07 17:08:10 +10:00
Konstantin Sharlaimov
ff4c29b6e2
Merge pull request #2882 from iNavFlight/agh_fix_osd_warning
...
Fix warning during compilation of osd.c
2018-03-07 15:20:05 +10:00
Konstantin Sharlaimov
9158bfc948
Merge pull request #2884 from shellixyz/move_init_delay
...
FC init: move 500ms delay after pwmInit
2018-03-07 15:19:47 +10:00
Konstantin Sharlaimov
4d44954c46
Merge pull request #2881 from iNavFlight/agh_make_free_ram_on_f3_great_again
...
Save 6952 bytes of RAM
2018-03-07 15:19:20 +10:00
Michel Pastor
6aa0fc6781
Increased OSD armed screen display time
2018-03-06 23:51:08 +01:00
Michel Pastor
8f9f293717
Add trip distance to OSD
2018-03-06 19:07:42 +01:00
Michel Pastor
44488c83a9
FC init: move 500ms delay after pwmInit
2018-03-06 15:34:37 +01:00
Alberto García Hierro
7aec90318b
Make missing switch cases compile time errors
...
We already had them as warnings. Promoting them to error will help
make missing them pretty much impossible.
2018-03-06 12:42:58 +00:00
Alberto García Hierro
0e39e67bb8
Fix warning during build in osd.c
...
The recently added ARMING_DISABLED_OOM reason didn't have an
OSD message.
2018-03-06 12:35:44 +00:00
Alberto García Hierro
75c56e473e
Cosmetic change - properly align case label with the rest
2018-03-06 11:37:50 +00:00
Alberto García Hierro
26a04dcfe3
Move all OSD_XXX_t intermediate types to flash
...
Make sure all of them are declared as const, since they hold a
pointer to the actual value as well as the min/max/step, hence
they are never changed.
This saves another 408 bytes of ram, by moving them to text
2018-03-06 11:01:57 +00:00
Alberto García Hierro
0c14331305
Reduce RAM usage in CMS
...
Add support for direct pointers to readonly values rather than using
intermediate OSD_XXX_t types.
Use direct pointers on all readonly values.
Make sure all intermediate value/step holders are in flash rather
than ram, since they're never modified.
This saves another 352 bytes of RAM (mostly on data, a few on bss).
2018-03-06 11:01:33 +00:00
Alberto García Hierro
2095c64789
Don't use an intermediate global array for OSD elements in CMS
...
Instead, change the OSD configuration directly. This saves 2 bytes
per OSD element now and for all the future ones, which translates
to -80 bytes from BSS in this commit.
2018-03-06 10:58:43 +00:00
Alberto García Hierro
d6c75bd6f5
Move CMS entries and menus from RAM to FLASH
...
Use a global array in cms.c to keep track of the dirty elements
that need redrawing. This lets us avoid modifying the entry flags
to keep track of it, so they can now be completely read only. This
in turn lets us also move all the menus to the text section.
This commit saves 6112 bytes of RAM in F3, so we have some room
to play again without resorting to disabling features.
2018-03-06 10:58:43 +00:00
Alberto García Hierro
0131e3e066
Move most CMS entry definitions to macros
...
This will make the transition to using const values where possible
much easier and cleaner.
2018-03-06 10:55:17 +00:00
Alberto García Hierro
741b6c3242
Use macros for the BACK and END items in CMS menus
...
Will make future changes cleaner
2018-03-06 10:49:59 +00:00
Konstantin Sharlaimov
ae05b1c993
Merge pull request #2877 from iNavFlight/agh_vtx_ram_savings
...
Save some RAM in VTX control system
2018-03-06 20:24:42 +10:00
Alberto García Hierro
de66939196
Remove global string buffers from CMS for SA and TR
...
Add support for OME_LabelFunc instead, which uses an stack-allocated
buffer and a function call to generate the label when it needs
to print it.
2018-03-05 16:25:05 +00:00
Konstantin Sharlaimov
695b92a894
Merge pull request #2875 from iNavFlight/de_dynmemory
...
Dynamic memory allocator
2018-03-06 00:08:01 +10:00
Alberto García Hierro
e7f9bce0a0
Move TRAMP data to a struct
...
This will allow to dynamically allocate it once we move VTX
control to use heap allocation
2018-03-05 14:00:11 +00:00
Konstantin Sharlaimov (DigitalEntity)
7f502f7195
Fix some bugs
2018-03-05 22:58:44 +10:00
Konstantin Sharlaimov (DigitalEntity)
915cd690b3
Dynamic memory allocator
2018-03-05 22:33:18 +10:00
Konstantin Sharlaimov
dfb4188ba1
Merge pull request #2873 from iNavFlight/de_development_update
...
Update development to master; version bump to 1.9.1
2018-03-05 22:27:24 +10:00
Alberto García Hierro
37a6b32a30
Allocate trampReqBuffer on the stack
...
Saves 16 bytes of RAM
2018-03-05 11:57:45 +00:00
Konstantin Sharlaimov (DigitalEntity)
b51af720d8
Version bump
2018-03-05 20:39:34 +10:00
Konstantin Sharlaimov
dc4ef594fa
Merge pull request #2784 from iNavFlight/development
...
Release 1.9
2018-03-05 08:58:02 +10:00
Konstantin Sharlaimov
fc91b1d573
Merge pull request #2870 from iNavFlight/de_revo_servos
...
Add MC servos to REVO
2018-03-04 18:51:09 +10:00
Konstantin Sharlaimov
9ad2b480f5
Merge pull request #2865 from shellixyz/fix_midrc_msp_minmax
...
Fix midrc MSP min/max checks
2018-03-03 13:28:40 +10:00
Konstantin Sharlaimov
bfbeb039c4
Merge pull request #2866 from shellixyz/fix_msp_syntax_error
...
Fix MSP syntax error
2018-03-03 13:09:19 +10:00
Michel Pastor
6c9457e5b3
Fix MSP syntax error
2018-03-02 23:36:49 +01:00
Michel Pastor
aaed7bd9aa
Fix midrc MSP min/max checks
2018-03-02 23:30:46 +01:00
Konstantin Sharlaimov
d73c9db650
Merge pull request #2856 from shellixyz/update_battery_docs
...
Add example battery capacity configuration in docs/Battery.md
2018-03-02 09:19:32 +10:00
MJ666
8a7bdf510e
FuriousFPV PIKOF4 and PIKOF4OSD support
2018-03-01 21:15:12 +01:00
Konstantin Sharlaimov (DigitalEntity)
ece64a89d7
Add LEDSTRIP support to KAKUTEF4 target
2018-03-02 00:29:28 +10:00
Konstantin Sharlaimov (DigitalEntity)
fecfebac44
Add MC servos to REVO
2018-03-02 00:11:34 +10:00
Michel Pastor
2f2cbc1e36
Add example battery capacity configuration in docs/Battery.md
2018-03-01 14:55:42 +01:00
Michel Pastor
85f98ecc01
Add MSP message for reading air speed
2018-03-01 04:00:35 +01:00
root
62f91dc342
Add YuPiF7 target support
2018-03-01 01:00:48 +01:00
Konstantin Sharlaimov
1a9663c59f
Merge pull request #2844 from iNavFlight/agh_osd_odometer_if_enabled
...
Only show the odometer in the OSD initial screen when it's enabled
2018-02-28 17:52:07 +10:00
root
e36c22bb2c
Update Boards.md and README.md target
2018-02-27 23:44:16 +01:00
Alberto García Hierro
c6d6e61496
Only show the odometer in the OSD initial screen when it's enabled
2018-02-27 14:18:04 +00:00
Michel Pastor
55328b1c31
Add SOFTSERIAL support on RX4/TX4 for MATEKF405 target
2018-02-27 13:06:39 +01:00
Konstantin Sharlaimov
82a64bc467
Merge pull request #2838 from shellixyz/common_default_features
...
Add COMMON_DEFAULT_FEATURES to define default features for all targets
2018-02-27 12:35:19 +10:00
Konstantin Sharlaimov
40709ce08c
Merge pull request #2839 from shellixyz/allow_mc_servos_on_beerotorf4_fix
...
Fix mistake in #2829
2018-02-27 09:39:17 +10:00
Michel Pastor
cc5a1dbc45
Fix mistake in #2829
2018-02-26 19:48:17 +01:00
Michel Pastor
7bc70ef1d7
Add COMMON_DEFAULT_FEATURES to define default features for all targets
2018-02-26 15:17:03 +01:00
Konstantin Sharlaimov
1b9c3a39b2
Merge pull request #2837 from iNavFlight/agh_fix_osd_dist_str
...
Fixes for incorrect distance calculations in osdFormatDistanceSymbol()
2018-02-26 16:10:38 +10:00
Alberto García Hierro
a195a7ce49
Fix calculation for kms in osdFormatDistanceStr()
...
Reported incorrect numbers in maximum and total travelled distances
in the OSD.
Fixes #2596
2018-02-25 23:57:10 +00:00
Alberto García Hierro
f9c034bd5d
Fix calculation for miles in osdFormatDistanceStr()
...
Reported incorrect numbers in maximum and total travelled distances
in the OSD.
Fixes #2745
2018-02-25 23:47:59 +00:00