1
0
Fork 0
mirror of https://github.com/iNavFlight/inav.git synced 2025-07-23 16:25:26 +03:00
Commit graph

9934 commits

Author SHA1 Message Date
Pawel Spychalski (DzikuVx)
fbb7dc3a5d Merge branch 'master' into dzikuvx-gyro-ekf-refactor 2020-07-30 09:53:55 +02:00
Konstantin Sharlaimov
9da3327292
Merge pull request #5970 from craigmunday/craigmunday_craftname_osd_armed_page
Added craft name to the osd armed page
2020-07-29 19:27:00 +02:00
Alberto García Hierro
b6f26ffc76 [PINIO] Add support to targets to define PINIO pin flags
This way a target can declare a PINIO pin as inverted
2020-07-28 21:56:48 +01:00
Alberto García Hierro
ae842aaece [SPEEDYBEEF7] Fix target compilation 2020-07-28 21:40:33 +01:00
Alberto García Hierro
9576fa3035 [BOXES] Expose constants for permanent box IDs for USER1 and USER2
This way targets can reference them by the constant name instead of
having to hardcode 47 and 48.
2020-07-28 21:36:34 +01:00
azol
b5633bb28a add speedy bee f7 target 2020-07-28 16:32:26 +01:00
Konstantin Sharlaimov
56be63d5f1
Merge pull request #5880 from iNavFlight/de_gps_alt_always
Allow using GPS altitude instead of barometer
2020-07-27 13:05:36 +02:00
stronnag
72c6c682a0
[DOCS] document flash_ commands (#5983) 2020-07-25 21:22:23 +01:00
Konstantin (DigitalEntity) Sharlaimov
764f2b61c4 [NAV] Bump PG_POSITION_ESTIMATION_CONFIG version 2020-07-25 14:18:17 +02:00
Konstantin (DigitalEntity) Sharlaimov
8611b37563 [NAV] Allow using GPS altitude instead of barometer 2020-07-25 14:17:20 +02:00
Konstantin Sharlaimov
a41a4de247
Merge pull request #5980 from snaewe/sn/fix-cms-mixer-weight
[CMS] fix editing of negative servo weights
2020-07-25 13:24:45 +02:00
Stefan Naewe
9c1bc1afc2 [CMS] fix editing of negative servo weights
The OSD/CMS doesn't allow correct editing of negative servo mixer weights.
The value can only be made larger (towards positive) but not smaller.
Fix that by setting the min. value for the weight to -1000.

Signed-off-by: Stefan Naewe <stefan.naewe@gmail.com>
2020-07-25 10:51:57 +02:00
Alberto García Hierro
17e559e3ef
Merge pull request #5857 from iNavFlight/agh_frskyosd_v2
Add support for FrSkyOSD version 2
2020-07-25 07:57:57 +01:00
Alberto García Hierro
ce3e5391ef
Merge pull request #5729 from iNavFlight/agh_cmake_tests
[TEST] Use CMake to build and run tests
2020-07-24 22:28:27 +01:00
Alberto García Hierro
8035a59639 [BUILD] Initial and very basic support for CMake
Only F411 based targets have been ported for now
2020-07-24 21:41:51 +01:00
Alberto García Hierro
30146b482e [SETTINGS] Add missing headers in PG_GENERAL_SETTINGS and PG_RPM_FILTER_CONFIG
Otherwise some constants might fail to be resolved depending on the
compilation order.
2020-07-24 21:41:51 +01:00
Alberto García Hierro
55943a0630 [SETTINGS] Cleanup the settings generator a bit
- Don't include target.h explicitely, it's already included
by platform.h
- Fix an error in compiled file as a test for discovering
contstants. Since we rely on compiler errors to give us the
resolved value, that lets us get one extra value on each run
- Always compile the test files for setting discovery in c++11
even if no -std=XXX argument is passed from the caller.
2020-07-24 21:41:51 +01:00
Alberto García Hierro
074c4dec1c [TESTS] Use CMake to build and run tests
Tests are now managed with cmake, with the intention of eventually
moving the whole build system to it. The root Makefile still has
a test target that has been adjusted to call into the appropriate
cmake commands.

Also, GTest library is now downloaded on demand the first time the
tests are run, so we can delete it from the repository.
2020-07-24 21:41:51 +01:00
Alberto García Hierro
d21706e7e3 [TESTS] Make sure all test cases run on its own
Some of the test cases were relying on some setup by a previous
test case in the same file.
2020-07-24 21:41:51 +01:00
Konstantin Sharlaimov
e60bdff65a
Merge pull request #5981 from iNavFlight/dzikuvx-foxeer-f722-v2-target
Target for Foxeer F722 V2
2020-07-24 21:04:28 +02:00
Pawel Spychalski (DzikuVx)
e520db67f8 Target for Foxeer F722 V2 2020-07-24 19:19:51 +02:00
Pawel Spychalski (DzikuVx)
cf3db04fda Zero gain on mag calibration start 2020-07-24 18:57:21 +02:00
Pawel Spychalski (DzikuVx)
3bdc3dd501 Add magGain to MSP frame 2020-07-24 18:28:44 +02:00
Konstantin Sharlaimov
e42ebfe02c
Merge pull request #5973 from iNavFlight/de_flywoo_targets
Add support for FLYWOOF411 and FLYWOOF7DUAL targets
2020-07-24 11:07:08 +02:00
Pawel Spychalski (DzikuVx)
8ff3072cf1 Merge branch 'master' into dzikuvx-mag-gain-calibration 2020-07-23 15:22:07 +02:00
Konstantin (DigitalEntity) Sharlaimov
d2f05b7e23 [NAV] Cleanup pos/vel controllers 2020-07-23 13:19:04 +02:00
Paweł Spychalski
75066b30dd
Merge pull request #5971 from iNavFlight/dzikuvx-logic-condition-global-function-unification
Unify Global Functions and Logic Conditions into single entity
2020-07-23 12:21:26 +02:00
Konstantin (DigitalEntity) Sharlaimov
17948896d7 [TARGET] Enable PINIO on FLYWOOF7DUAL target; Add FLYWOOF411 and F7DUAL to release targets 2020-07-23 12:16:46 +02:00
Konstantin (DigitalEntity) Sharlaimov
a0db810908 [TARGET] Initial cut on FLYWOOF7DUAL target 2020-07-23 11:07:38 +02:00
Konstantin (DigitalEntity) Sharlaimov
7caa8b28da [TARGET] FLYWOOF411 fixups 2020-07-23 11:07:38 +02:00
SeanTheITGuy
d225f67caf [TARGET] Initial cut on FLYWOO411 2020-07-23 11:07:38 +02:00
Alberto García Hierro
e8aac7d006 [OSD] Add osd_force_grid
Forces a pixel based OSD to be used in as if it was a grid based OSD.
This is intended for development, so the FrSkyOSD simulator can be
used for developing features for the MAX7456 based OSDs without
needing an analog video to USB adapter.
2020-07-23 09:49:51 +01:00
Alberto García Hierro
c9cc44920f [CANVAS] Fix drawn sidebar scroll values for speed
The values were not correctly converted the units expected by the
sidebar. Fixes https://github.com/FrSkyRC/PixelOSD/issues/3
2020-07-23 09:49:51 +01:00
Alberto García Hierro
59f160f21f [CANVAS] Fix leftover pixels when drawing the home direction arrow
Since the arrow is taller than the width of a grid slow, it overflows
the slot a bit when it's rotated by 90º. Also, simplify the algorithm
for drawing it a bit so it transmits a bit less data per redrawing.
2020-07-23 09:49:51 +01:00
Alberto García Hierro
4f3e7a3d5e [CMS] Wrap CMS updates in display transactions
Otherwise, a display device with transactions might not update the
on screen data immediately, since updates outside of transactions
might be buffered for performance reasons. This doesn't affect
devices that don't support transactions at all.
2020-07-23 09:49:51 +01:00
Alberto García Hierro
9bc355ccf3 [WIDGETS] Increase AHI redrawing frequency from 10hz to 20hz
Since widgets require so few data for each update, we can now afford
to double the update rate.
2020-07-23 09:49:51 +01:00
Alberto García Hierro
694eed63a1 [CANVAS] Draw the crosshair centered on the display
When we have direct pixel access, we can center it perfectly.
2020-07-23 09:49:51 +01:00
Alberto García Hierro
606ea81c28 [CANVAS] New vario implementation for canvas
- Respect the coordinates of the grid based indicator
- Reduce the traffic needed to the OSD for a redraw by 10x
2020-07-23 09:49:51 +01:00
Alberto García Hierro
038862af09 [CANVAS] Fix crash when retrieving the widgets for OSD without canvas 2020-07-23 09:49:51 +01:00
Alberto García Hierro
ef5f3ece49 [OSD] Change default counts per divisions in sidebars, make them configurable
Change the default stepping in sidebar divisions to more sensible
values depending on what's causing them to scroll. Also, introduce
a setting per sidebar so the user can a custom stepping per sidebar.
2020-07-23 09:49:51 +01:00
Alberto García Hierro
4d1f21c94f [OSD] Allow moving sidebars left and right
Introduce a osd_sidebar_horizontal_offset parameter that uses
grid slots or pixels as units, depending on the OSD type. int8_t
is enough to move the sidebars to the corner of the screen even
with pixel OSD. Positive values move the bars closer to the screen
edges, while negative values bring them closer to the center.
2020-07-23 09:49:51 +01:00
Alberto García Hierro
4021ba09b0 [BUILD] Fix compilation for targets without OSD 2020-07-23 09:49:51 +01:00
Alberto García Hierro
2f8e86e7cd [FRSKYOSD] Add support for increasing the default data rate
Since v1, FrSkyOSD allows changing the baudrate to higher values but
we were ignoring that. Now if the user has configured the respective
port to a higher baudrate, we will switch to it at runtime. This also
requires adding support to probe at different baud rates on startup
since the FC might have been rebooted without rebooting the OSD.
2020-07-23 09:49:51 +01:00
Alberto García Hierro
a25fcd5656 [MSP/CLI] Constrain receive baud rates indices to their valid values
MSP was not restricting anything an accepting any values, while
CLI had some seemingly arbitrary bounds. Now both interfaces accept
the full range of valid values.
2020-07-23 09:49:51 +01:00
Alberto García Hierro
144ba419bc [OSD] Fix clearing of the local OSD buffer
osdCharacterGridBufferClear(), osdGridBufferClearGridRect() and
osdGridBufferClearPixelRect() where setting the whole buffer to
0 instead of SYM_BLANK, so when the map code read back the buffer
in order to determine if a slot was free it never found one
available.

Fixes #5522
2020-07-23 09:49:51 +01:00
Alberto García Hierro
6b8f2ba5f1 [OSD] Use sidebar widget for drawing sidebars when available
Otherwise fallback to the grid based implementatation
2020-07-23 09:49:51 +01:00
Alberto García Hierro
3ecd99bb88 [OSD] Add AHI settings for widget based AHI
osd_ahi_bordered: Wether to show a border in the corners
osd_ahi_width: Width in pixels
osd_ahi_height: Hight in pixels
osd_ahi_vertical_offset: Offset from vertical center of the screen
2020-07-23 09:49:51 +01:00
Alberto García Hierro
e786889c86 [OSD] Split OSD configuration into osdConfig_t and osdLayoutsConfig_t
osdLayoutsConfig_t stores the config for the layouts, with the visible
items and their positions. osdLayoutsConfig_t stores the rest.
2020-07-23 09:49:50 +01:00
Alberto García Hierro
f50329b44d [OSD] Add support for using widgets for drawing
Widgets reduce the bandwidth needed to communicate with the OSD
dramatically, so for devices connected via UART they allow us to
draw way more frequently.
2020-07-23 09:49:15 +01:00
Alberto García Hierro
2ad51deecf [FRSKYOSD] Use new comments for grid drawing
They save a few bytes per call. A test layout with 8 indicators
flashing now uses ~30% less bytes per second.
2020-07-23 09:49:15 +01:00