116 Commits

Author SHA1 Message Date
Glenn Maynard
8620da2405 Refactor displaying threshold sliders.
Instead of having the sliders show and hide themselves, create the ones that are
active in MainWindow.
2019-09-18 22:00:42 -05:00
Glenn Maynard
ae25ed327a Fix AreUnifiedThresholdsSynced modifying config. 2019-09-18 21:59:03 -05:00
Glenn Maynard
baf9b47fe9 Add an internal API to assign serial numbers. 2019-09-17 23:40:47 -05:00
Glenn Maynard
109cd1f6f6 Fix highlighting selected diagnostics buttons on P2. 2019-09-14 21:30:08 -05:00
Glenn Maynard
bbb49b6ae4 Show a warning if the low FSR threshold is set too low. 2019-09-14 21:18:42 -05:00
Glenn Maynard
37e5b445cd Fix exporting load cell thresholds to JSON. 2019-09-14 21:17:52 -05:00
Glenn Maynard
80b08dbe0c Fix exception parsing empty JSON arrays. 2019-09-14 21:17:18 -05:00
Glenn Maynard
63f7aa5beb Adjust the high FSR preset.
The 100-112 thresholds are extremely low, and don't work for all play styles, since
with harder presses, the 100 low threshold may not be reached quickly enough, which
causes missed inputs.  Raise the high preset thresholds to something more reasonable.
Users can still set the lower values in the advanced tab if it works for them.
This might be tuned further.

This won't affect users who are already set to the higher thresholds, since it'll
just act like custom thresholds.  To update thresholds to the new values, click the
"High" preset button again.
2019-09-11 17:53:05 -05:00
Glenn Maynard
67a1789ea2 Update SDK documentation for SMX_SetLights2. 2019-07-18 20:41:12 -05:00
Glenn Maynard
12794762a8 Fix "light panels" getting stuck on if the controller is disconnected while the button is pressed. 2019-07-18 20:25:47 -05:00
Glenn Maynard
672541015f Add SMX_SetOnlySendLightsOnChange for smx-panel-test. 2019-07-18 20:25:47 -05:00
Glenn Maynard
69b2239922 Refactor SMXManager::SendLightUpdates to queue multiple lights commands if possible.
This also fixes a memory leak if lights are queued too quickly.
2019-07-18 20:25:47 -05:00
Glenn Maynard
0c19451d7d Show the diagnostics mode dropdown by default. 2019-07-18 20:25:47 -05:00
Glenn Maynard
ec848441d7 Update SDKSample to use SMX_SetLights2 and set the new panel lights. 2019-07-18 20:25:47 -05:00
Glenn Maynard
c53c3d45c6 Make sure we don't send lights commands before we have a config packet, and adjust the V3 command timing. 2019-07-18 20:25:47 -05:00
Glenn Maynard
1959a1eaa9 Hide the floor lighting button on older pads. 2019-07-18 20:25:47 -05:00
Glenn Maynard
3d6a3008ae Fix the center preset to match the firmware and the game. 2019-07-18 20:25:47 -05:00
Glenn Maynard
6249359373 Add an option to enable the center panel top sensor. 2019-07-18 20:25:47 -05:00
Glenn Maynard
27be716768 Add disabled combined thresholds. 2019-07-18 20:25:47 -05:00
Glenn Maynard
9facc93548 8-bit FSR thresholds. 2019-04-23 21:17:49 -05:00
Glenn Maynard
b1f675c56c Add config packet backwards-compatibility. 2019-04-18 19:20:03 -05:00
Glenn Maynard
05f4100d98 Add support for importing/exporting FSR thresholds to disk. 2019-04-18 19:19:33 -05:00
Glenn Maynard
4c07c5572e Add some default values for SMXConfig. 2019-04-17 20:36:45 -05:00
Glenn Maynard
6cc979b1dc Implement the V5 config packet. 2019-04-16 22:23:22 -05:00
Glenn Maynard
0184e46022 Make sure GetConfig returns a valid stub SMXConfig if the DLL isn't present. 2019-04-16 22:22:12 -05:00
Glenn Maynard
00271c3e15 Rename iBadJumper to iWrongSensorJumper. 2019-04-16 22:21:33 -05:00
Glenn Maynard
122cbe7b0d FSR threshold tuning. 2019-04-10 17:31:39 -05:00
Glenn Maynard
23ef413d91 Only show enabled panels in the diagnostics tab. 2019-04-10 17:31:39 -05:00
Glenn Maynard
b25b363c96 FSR threshold tuning. 2019-04-02 21:24:04 -05:00
Glenn Maynard
cce566624a Improve minimizing to tray, and restore the existing instance if SMXConfig is launched when it's already minimized to the tray. 2019-04-02 21:10:59 -05:00
Glenn Maynard
ded697cf4c Add sensor icons. 2019-04-02 19:36:42 -05:00
Glenn Maynard
c4eb3a548c Log when we don't see data from a panel. 2019-03-31 18:02:19 -05:00
Glenn Maynard
f858e25434 Reenable bbadSensorInput (unintentionally disabled while testing). 2019-03-31 18:01:37 -05:00
Glenn Maynard
1b01f53796 Add an option to enable or disable lighting on panels with no sensors. 2019-03-21 16:00:36 -05:00
Glenn Maynard
f35f596cee Update the config block with new fields. 2019-03-20 15:13:33 -05:00
Glenn Maynard
195cba96ec Fix doc. 2019-03-20 15:10:07 -05:00
Glenn Maynard
5556d4fd65 Fix bad Color::operator== causing GIF frames to be merged incorrectly. 2019-02-26 18:03:11 -06:00
Glenn Maynard
af82a1e423 Remove the reset command on startup (just causes flicker). 2019-02-08 20:56:02 -06:00
Glenn Maynard
ec061d4223 Refactor uploading animations to allow uploading automatically instead of having a separate upload button, and iron out some inconsistencies. 2019-02-08 20:52:01 -06:00
Glenn Maynard
74f94c5bf5 Add panel test mode to the UI. 2019-02-06 20:29:22 -06:00
Glenn Maynard
d38307d3bc Fix GIF loop frames. 2019-02-06 20:01:13 -06:00
Glenn Maynard
ce261c1ecb Add internal support for panel test modes, and rename "test mode" to "sensor test mode" to make the distinction clearer. 2019-02-06 20:01:06 -06:00
Glenn Maynard
63e76f29cc Use opaque white instead of just opaque for the marker pixel, so transparent GIFs aren't needed when markers aren't being used. 2019-02-05 18:09:07 -06:00
Glenn Maynard
501b297c8f Rename iBadSensorDIP -> iBadJumper. 2019-02-05 16:05:48 -06:00
Glenn Maynard
990a6ba488 Fix refreshing the selected diags button. 2019-02-01 23:16:46 -06:00
Glenn Maynard
8307e24550 Allow FSR threshold distances down to 5. 2019-02-01 23:03:34 -06:00
Glenn Maynard
bf9b8b185c Coalesce identical GIF frames on load. 2019-02-01 23:03:20 -06:00
Glenn Maynard
a094588055 Hide the "expected DIP" display if we have no data at all. 2019-01-30 16:21:30 -06:00
Glenn Maynard
6d370ee092 Show a warning if an incorrect sensor DIP switch is detected. 2019-01-19 17:56:19 -06:00
Glenn Maynard
6d0820f495 Add the PlatformFlags_FSR config flag. 2019-01-19 17:38:05 -06:00