1
0
mirror of https://bitbucket.org/librepilot/librepilot.git synced 2024-11-29 07:24:13 +01:00
Commit Graph

7444 Commits

Author SHA1 Message Date
karalb
1c5a878479 LP-606 Add missing setComboCurrentIndex 2019-01-11 11:48:10 +08:00
Lalanne Laurent
a2c529079a Merged in f5soh/librepilot/LP-470_sat_version (pull request #516)
LP-470 Bump map version

Approved-by: Lalanne Laurent <f5soh@free.fr>
2018-09-29 10:00:57 +00:00
Vladimir Zidar
230d770498 Merged in mindnever/librepilot/LP-599_Extend_cloneof_attribute_functionality_in_uavobject_xml (pull request #514)
LP-599 Extend cloneof attribute functionality in uavobject xml

Approved-by: Vladimir Zidar <mr_w@mindnever.org>
Approved-by: Jan NIJS <dr.oblivium@gmail.com>
Approved-by: Philippe Renon <philippe_renon@yahoo.fr>
Approved-by: Lalanne Laurent <f5soh@free.fr>
2018-09-29 09:58:05 +00:00
Laurent Lalanne
609799deb0 LP-470 Bump map version 2018-09-29 10:51:15 +02:00
Vladimir Zidar
8dbf25edc2 LP-599 Make cloned fields as typedef's of parent types in flight & ground (c, c++) uavobjgenerators. 2018-05-07 00:09:04 +02:00
Vladimir Zidar
9e9c9c8975 LP-599 Allow "cloneof" attribute to reference other objects. Allow some other attributes to override cloned values (options, limits, defaultvalue). 2018-05-07 00:08:16 +02:00
Jan NIJS
bafc40fefa LP-597 fixes from review
- m_timer_tick -> m_timerTick
- rename signals: setPlaybackPosition -> playbackPositionChanged & setBeginAndEndTimes -> timesChanged
- remove extraneous parentheses
- make pretty
2018-05-05 17:21:21 +02:00
Jan NIJS
ba0869c2d2 LP-597 Don't disable playback when the end of the logfile has been reached.
- instead, do the same as the user pressing the stop button.
2018-05-05 16:40:56 +02:00
Jan NIJS
684849f33c LP-597 again 3 separate buttons + various fixes & cleanups
Suggested by Philippe Renon:
- change the combined play-pause button to separate play and pause buttons. Hide button irrelevant button.
  Code has been simplified as a result.

Fixes:
- fix situation where replay is stopped/paused and logfile is disconnected through the Disconnect button.
- remove unneeded stuff (resizing related)
- rename updateBeginAndEndTimes -> setBeginAndEndTimes
- less base height needed for the widget
- wordwrap for "Playback speed" label. Wraps when space constrains.
- set a fixed width for statusLabel to prevent jumping around when the text changes
- Update the statusLabel to "Paused" when stopped/paused.
- rename enableButtons -> enableWidgets
- clear start and end text labels when playback has finished.
2018-05-05 16:40:55 +02:00
Jan NIJS
ecd6d20b13 LP-597 Progress bar for GCS log replay - first batch of fixes from review and some others
- remove extraneous parentheses
- use Qt naming convention for playbackPosition -> setPlaybackPosition
- consistently use playback instead of playBack
- most places: use of "state" instead of "status"
- removed empty line

- updated file headers
- removed QThread include (leftover from debugging)
- renamed pauseAndResetPosition to pauseReplayAndResetPosition for consistency with the related functions
2018-05-05 16:40:55 +02:00
Jan NIJS
fa70cb751c LP-597 Progress bar for GCS log replay - Resize playPause and stop buttons according to the available space for the widget.
- also make pretty
2018-05-05 16:40:54 +02:00
Jan NIJS
d540c2a043 LP-597 Progress bar for GCS log replay - ensure the index vectors are emptied before adding elements to them. Caused problem when replaying multiple logfiles successively.
- Bugfix: ensure the index vectors are emptied before adding elements to them. Caused problem when replaying multiple logfiles successively.
- extra validations while indexing the logfile
- Define TIMESTAMP_SIZE_BYTES and use that instead of the hardcoded timestamp size of 4 bytes.
- modify variable case: updateBeginAndEndtimes -> updateBeginAndEndTimes
- improve qWarning messages for logfile.cpp: add the name of the function because we read the logfile in two separate functions.
2018-05-05 16:40:54 +02:00
Jan NIJS
ef3cb8bf46 LP-597 Progress bar for GCS log replay - switch to double-function button for Play/Pause
- remove separate play and pause buttons, combine these functions in one playPause button.
- update icons & button texts
- move resources (icons) to logging plugin's own images folder
- explain why looking for the next timestamp after the last played one is useful.
  It causes the replay process to jump over parts of the logfile where no data has been recorded
  and jumps straight to the first timestamp after that part of the log where data is missing.
2018-05-05 16:40:54 +02:00
Jan NIJS
c53e99ee41 LP-597 Progress bar for GCS log replay - add progress bar and a stop button
- Added stop button:
  - start: starts from 0 position after stop signal, resumes from current position after pause signal.
  - pause: freezes at current position, also freezes scopes.
  - stop: stops replay and resets start position to 0 (does not close the logfile)
- Creates an index of the timestamp positions in the logfile for quick seeking to the target position in the log.
- Start, End and current position timestamps are visible in the GUI below the position slider.
- Determine replay position by moving the position slider
- Update position label while changing position bar
- Speed widget: lowest multiplier is now 0.1 instead of 0.
  Only set one decimal of precision.
  More decimals seem useless at this time.
2018-05-05 16:40:53 +02:00
Philippe Renon
a4c0bcfb1a Merged in filnet/librepilot/LP-567_uavobjectbrowser_highlight_handling (pull request #510)
LP-567 fix compilation error with older Qt versions

Approved-by: Philippe Renon <philippe_renon@yahoo.fr>
Approved-by: Lalanne Laurent <f5soh@free.fr>
2018-04-29 23:01:26 +00:00
Philippe Renon
445c5dd058 LP-567 fix compilation error with older Qt versions 2018-04-29 23:18:58 +02:00
Lalanne Laurent
e0513f3a76 Merged in f5soh/librepilot/LP-315_Update_templates (pull request #459)
LP-315 Update templates

Approved-by: Lalanne Laurent <f5soh@free.fr>
2018-04-29 17:51:10 +00:00
Philippe Renon
8a729ce94b Merged in filnet/librepilot/LP-303_fix_full_screen_mode_on_windows (pull request #501)
LP-303 workaround issue with full screen mode on windows

Approved-by: Philippe Renon <philippe_renon@yahoo.fr>
Approved-by: Lalanne Laurent <f5soh@free.fr>
2018-04-29 17:45:47 +00:00
Philippe Renon
79533436e5 Merged in filnet/librepilot/LP-558_accept_case_insensitive_uav_enum_values (pull request #476)
LP-558 accept case insensitive uav enum values

Approved-by: Lalanne Laurent <f5soh@free.fr>
Approved-by: Philippe Renon <philippe_renon@yahoo.fr>
Approved-by: Paul Jewell <teulupaul@gmail.com>
Approved-by: Alessio Morale <alessiomorale@gmail.com>
Approved-by: Paul Jewell <paul@teulu.org>
2018-04-29 17:34:55 +00:00
Philippe Renon
53bd0da106 Merged in filnet/librepilot/LP-567_uavobjectbrowser_highlight_handling (pull request #486)
LP-567 uavobjectbrowser highlight handling

Approved-by: Philippe Renon <philippe_renon@yahoo.fr>
Approved-by: Lalanne Laurent <f5soh@free.fr>
2018-04-29 17:34:08 +00:00
Lalanne Laurent
b0e309356c Merged in f5soh/librepilot/LP-551_Tx_Wizard_output (pull request #488)
LP-551 Tx Wizard output

Approved-by: Lalanne Laurent <f5soh@free.fr>
Approved-by: Philippe Renon <philippe_renon@yahoo.fr>
2018-04-29 17:29:23 +00:00
Lalanne Laurent
cd94147a5a Merged in f5soh/librepilot/LP-577_HW_Settings_GPS_reboot (pull request #494)
LP-577 Ignore disabling GPS module for boards where the module is already built in.

Approved-by: Philippe Renon <philippe_renon@yahoo.fr>
2018-04-29 17:29:08 +00:00
Lalanne Laurent
c0152e0b34 Merged in f5soh/librepilot/LP-514_Dshot_Wizard (pull request #490)
LP-514 Dshot Wizard support and other Esc types

Approved-by: Lalanne Laurent <f5soh@free.fr>
Approved-by: Philippe Renon <philippe_renon@yahoo.fr>
2018-04-29 17:28:34 +00:00
Lalanne Laurent
4554500b35 Merged in f5soh/librepilot/LP-574_PFD_Battery_display (pull request #489)
LP-574 Check if adc inputs are configured before displaying battery data on PFD

Approved-by: Lalanne Laurent <f5soh@free.fr>
Approved-by: Philippe Renon <philippe_renon@yahoo.fr>
2018-04-29 17:28:02 +00:00
Lalanne Laurent
a4dfa85a58 Merged in f5soh/librepilot/LP-590_Gyro_calibration_boardleveltrim (pull request #505)
LP-590 Gyro/Accel calibration boardleveltrim

Approved-by: Julian Lilov <jdl@abv.bg>
Approved-by: Lalanne Laurent <f5soh@free.fr>
Approved-by: Philippe Renon <philippe_renon@yahoo.fr>
2018-04-29 17:27:39 +00:00
Lalanne Laurent
fadfae3d7d Merged in f5soh/librepilot/LP-593_Uploader_firmware_check (pull request #506)
LP-593 Uploader firmware check

Approved-by: Lalanne Laurent <f5soh@free.fr>
Approved-by: Philippe Renon <philippe_renon@yahoo.fr>
2018-04-29 15:12:57 +00:00
Lalanne Laurent
15630338b6 Merged in f5soh/librepilot/LP-572_OPMap_WP_setup (pull request #487)
LP-572 Waypoint setup more usable

Approved-by: Lalanne Laurent <f5soh@free.fr>
2018-04-29 15:12:27 +00:00
Laurent Lalanne
8e014c31f0 LP-572 Add icon set artwork file for OPMap 2018-04-15 19:11:12 +02:00
Laurent Lalanne
0b092e15ce LP-572 Better pathplanner icon 2018-04-15 19:11:12 +02:00
Laurent Lalanne
411b004583 LP-572 Add button_search icon 2018-04-15 19:11:12 +02:00
Laurent Lalanne
1fd91caa29 LP-572 Add buttons to the right: Save, clear trail, PathPlan editor, Home set 2018-04-15 19:11:11 +02:00
Laurent Lalanne
40f669b232 LP-572 Add new icons to OPMap 2018-04-15 19:11:11 +02:00
Laurent Lalanne
b92d077555 LP-573 Workaround for duplicate Home/Safearea display 2018-04-15 19:11:11 +02:00
Laurent Lalanne
f5d36cca1b LP-572 Udpate map 2018-04-15 19:11:07 +02:00
Philippe Renon
ed36165706 Merged in filnet/librepilot/LP-566_osgearth29_upgrade (pull request #498)
LP-566 upgrade to osgEarth 2.9

Approved-by: Philippe Renon <philippe_renon@yahoo.fr>
Approved-by: Lalanne Laurent <f5soh@free.fr>
2018-04-15 14:46:33 +00:00
Philippe Renon
6e8f338034 LP-567 store/restore tree expansion state 2018-04-12 09:19:21 +02:00
Philippe Renon
077d1e89d1 LP-567 reduce default highlight timeout from 500ms to 300ms 2018-04-12 09:19:20 +02:00
Philippe Renon
96cf07e77d LP-567 added comments and const correctness 2018-04-12 09:19:19 +02:00
Philippe Renon
64dfc358f8 LP-567 add new highlightTopTreeItems property
false by default and not accessible through the UI...
2018-04-12 09:19:18 +02:00
Philippe Renon
7996675708 LP-571 change generic instance tree node name to actual object name
the other LP-571 issue is addressed by LP-567
2018-04-12 09:19:17 +02:00
Philippe Renon
bf3ce97e32 LP-567 fix crash when connected and switching back from categorized mode
crash was due to highlight manager still referencing destroyed category tree items
2018-04-12 09:19:16 +02:00
Philippe Renon
738171e4a6 LP-567 fix compilation errors with older compilers 2018-04-12 09:19:15 +02:00
Philippe Renon
e215e6fd2e LP-567 use common timestamp when updating an object and its field
this ensures that highlihhting will be synchronized
2018-04-12 09:19:14 +02:00
Philippe Renon
f27258a598 LP-567 rewrite uavobjecttreemodel to better handle dynamic changes
don't rebuild the model when toggling options (categories, meta, scientific notation)
fixes a number of issues when adding/removing/removing items dynamically
for example, new object instances would not appear if added dynamically

selection and expansion states are not lost when toogling options
note that toggling categories is not really well behaved concerning expansion state...
2018-04-12 09:19:13 +02:00
Philippe Renon
a02bea9aed LP-567 simplify highlight management
it is now the HighlightManager that will emit the highlight related signals
TreeItem don't need to be QObjects anymore

also fix crashes after changing display options and rebuilding the tree model
2018-04-12 09:19:12 +02:00
Philippe Renon
3f7dcab185 LP-567 telemetry: fix typo in comments 2018-04-12 09:19:11 +02:00
Philippe Renon
5c746fb28a LP-567 uavtalk: show object id has hex in log message 2018-04-12 09:19:10 +02:00
Philippe Renon
d28cf2a070 LP-567 fix spurious Settings node expand when selecting a Data item
was due a regression in the parent() method
2018-04-12 09:19:09 +02:00
Philippe Renon
0a40850574 LP-567 avoid too many QString creations when generating string/hex for array fields 2018-04-12 09:19:08 +02:00
Philippe Renon
32ce9bfea9 LP-567 don't create a QSpinBox each time BrowserItemDelegate::sizeHint() is called 2018-04-12 09:19:07 +02:00