3152 Commits (6a210743063979ee5beba04d02e26fc7a640d0e1)
 

Author SHA1 Message Date
Michael Carpenter ea3e16143a Fixes for Radio Calibration to work with proper min/max values 12 years ago
Michael Carpenter 9b62308e6e Initial implementation of Flight Mode Config screen 12 years ago
Michael Carpenter bf53df056c Another change for issue #3, SerialLink::getCurrentPortS() should now return consistant results on Windows to match linux and OSX 12 years ago
Michael Carpenter 8190209dc8 Fix for apm_planner issue #3, Serial port handling of '-' characters, since OSX can have a '-' in the port name 12 years ago
Michael Carpenter 8a48aa0035 Changes so radio configuration widgets are now the proper orientation 12 years ago
Michael Carpenter f909055d74 Working accelerometer calibation for APM3.0 and greater 12 years ago
Bryant df140d38d5 Fixed styling of the toolbar, specifically coloring and sizing of the buttons, and made the labels aware of the current window theme. Also made some changes to updating the toolbar when switching UASes or when UASes disconnect/reconnect. 12 years ago
Bryant 134947f940 Improved UI when no joysticks are connected. Also removed hotplugging support for joysticks as it wasn't working, though SDL2 should fix that. 12 years ago
Michael Carpenter 223a748441 CompassConfig implementation 12 years ago
Bryant 8e533fd32b Vastly improved the joystick documentation, removed some redundant/unnecessary code, and fixed a couple of small bugs. This code should be ready for live testing. 12 years ago
Michael Carpenter 36060bd15e Implementation of FrameTypeConfig completed, now reads and sets Frame Type 12 years ago
Bryant adbbdb45d3 All UI elements in the JoystickWidget window are now updated properly when switching UASes, which was the last major issue with this code. A single small bug remains involving the UI not updating the axis values when switching joysticks until the axis is moved. 12 years ago
Bryant 8268ca2c4f The last selected joystick is now saved and re-selected on startup. 12 years ago
Michael Carpenter 274b20d8b4 Change for layout of configuration widgets, and start of implmentation of RadioCalibration Widget 12 years ago
Bryant 9bda816e54 Have settings loaded/stored correctly for all joysticks based on their UAS type and autopilot type. Switching between UASes doesn't work right yet, however. 12 years ago
Michael Carpenter 632ddad3ad New configuration menu setup. Placeholders for now, waiting for functionality 12 years ago
Michael Carpenter c23dc4d66f Merge branch 'quickview_textsizing' 12 years ago
dongfang 84badf33c0 PFD crash on start bugfix and rename to .cc 12 years ago
Bryant 275855b936 The default UAS.cc now lists available actions that it can be commanded. These are polled by the Joystick Configuration window for each joystick button so that they can be assigned to trigger this action. Button presses don't yet trigger these actions, nor are they stored and reloaded on UAS switch. 12 years ago
Michael Carpenter 8f585b40a5 Fix for category values not being updated in QuickView properly 12 years ago
Michael Carpenter 0f89c83865 Some comment cleanup, and fix so when closing the main window, it also closes the item select window 12 years ago
Michael Carpenter 07c10d1070 QuickView selection dialog now sorts items by category and lists them in an easier to read format 12 years ago
Bryant 55efdf8d46 The settings for each joystick are loaded and saved on switch. The state of the enable joysticks checkbox is not saved yet, however, though it should really be tracked by JoystickInput so that it can sleep more when joysticks are disabled. 12 years ago
Bryant 860e47b6ac Restored range limiting to the throttle channel. Now if the UAS can't reverse, the throttle can be set to only use the positive range of the axis (useful with auto-centering control sticks) or to use the full range (for sticks that hold position). 12 years ago
Michael Carpenter 3a3085ad1d Change of Text sizing in QuickView, to allow for smoother resizing 12 years ago
Michael Carpenter da79b6cef6 Change for new APM2.0 logo 12 years ago
Bryant 24af948fa3 Merge branch 'joystick_commands' of github.com:Susurrus/qgroundcontrol into joystick_commands 12 years ago
Bryant 9d18a986db The joystick code now understands if a UAS can reverse or not (based on UASInterface::systemCanReverse) and scales the joystick input accordingly. This isn't ideal on auto-centering axes and so the limit-range code should be brought back as an option for the throttle channel. 12 years ago
Bryant b6d9f23bf8 The UASInterface now defines a systemCanReverse() function for indicating if the UAS is capable of commanding a reverse thrust. 12 years ago
Bryant f086840fba Remove range limiting for joystick axes in preparation for moving that code into UASInterface.h. 12 years ago
Bryant f820eefc8e Joystick axes can now be specified as being exclusively-positive in the range [0:1.0] for the throttle. This should really be a vehicle-specific setting. 12 years ago
Bryant f3ddb9d5c7 The UI now updates properly for when a detected joystick is lacking either buttons or axes (as in the case of an in-built accelerometer). 12 years ago
Bryant 4ed616a424 Fix for improperly-named slot causing runtime error. 12 years ago
Bryant 5ee18dafb5 Added an inversion checkbox for each joystick axis so they can be individually inverted or not. This will be a joystick-specific configuration and independent of the autopilot used. Also refactored the code so that the JoystickAxis objects connect directly to the JoystickInput thread for updating the backend. The JoystickWidget is now just a facilitator and doesn't do any redirecting itself. 12 years ago
Bryant 8999151efc The button/axis/hat readings are now compared to the previous readings and signals are only emitted if they changed. The joystickChanged signal is still emitted every sample period. 12 years ago
Bryant 47cd05eaac The hat readings from the joystick now works correctly. Also moved some signals over to using an enum from an int type. 12 years ago
Bryant 902f359f93 Moved the JOYSTICK_*_MAPPING enum into JoystickInput where it belongs. Also renamed some local variables. 12 years ago
Bryant 1e5e97ad59 Refactored some variables and added some documentation. Also, now the joystickChanged signal emits NaN for axes that aren't mapped, so consumers should handle this properly. 12 years ago
Bryant 133b39f968 Styling improvements to the joystick configuration window. 12 years ago
Bryant d6e52a55d5 Disable all UI for the joystick configuration when no joysticks are found. 12 years ago
Bryant 316620fdd3 Refactored much of the joystick interface with the largest changes being the removal of dead/unused code including broken event-based SDL reading code. Additionally the mapping code should now work, though it hasn't been tested with controller switching or a real UAS. Finally the existing settings code has been commented-out as it is not compatible with the current state of this code and needs to be able to support different joysticks based on name. 12 years ago
Bryant 90efec1bc1 The joystick settings window has now been reworked to be a fixed minimum size and dynamically scale with both the number of buttons and axes on a given joystick/controller. Mapping functionality is incomplete at this point still, though the UI exists for it. 12 years ago
Bryant 897758782b The joystick widget now has theming capabilities. Also displays button presses properly now. 12 years ago
Bryant 481edea88f Renamed slot in ChartPlot to match connect() calls elsewhere. 12 years ago
Bryant 6a0c4b8f6e Renamed the Joystick Test menu option to Joystick Configuration to be more clear. 12 years ago
Bryant c532f41331 The JoystickInput class now emits signals for both button press and button release events. 12 years ago
Bryant 7908dc7d86 The JoystickWidget now has a parent so that it gets cleaned up when the MainWindow is closed preventing zombie-dialog syndrome. 12 years ago
Bryant e169b59ff2 The Joystick Settings window now supports selecting between multiple joysticks for control input and updates its UI accordingly. Much work is left to be done: light/dark styling, settings management, control mappings. 12 years ago
Bryant 64d0741ee8 Joystick axes can now be specified as being exclusively-positive in the range [0:1.0] for the throttle. This should really be a vehicle-specific setting. 12 years ago
Bryant 404045527e The UI now updates properly for when a detected joystick is lacking either buttons or axes (as in the case of an in-built accelerometer). 12 years ago