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
Glenn Maynard
681c7adfef
Fix up calculating animation frame counts.
2019-01-18 19:46:26 -06:00
Glenn Maynard
a202063287
Truncate the config packet for firmware that doesn't need all of it.
2019-01-18 19:46:26 -06:00
Glenn Maynard
cc07e07649
Fix auto-lighting not reactivating quickly.
2019-01-18 19:46:19 -06:00
Glenn Maynard
331bdc5b56
Fix the checkmark next to the preset buttons not reflecting the current preset.
2019-01-18 19:46:19 -06:00
Glenn Maynard
13bad26fe6
Compare individualPanelFSR in SamePreset, and add placeholder FSR presets.
2019-01-18 19:46:19 -06:00
Glenn Maynard
9167c9e0ed
Use GetOverlappedResult instead of GetOverlappedResultEx for Windows 7.
2019-01-18 19:46:19 -06:00
Glenn Maynard
88052ee318
Updates to graphic upload handling.
2019-01-18 19:46:10 -06:00
Glenn Maynard
3d41d8ea15
Fix the application window being created when launched on startup. It should only launch to the tray.
2019-01-18 19:46:10 -06:00
Glenn Maynard
def39becf9
Add labels to the DIP switch display.
2019-01-18 19:46:10 -06:00
Glenn Maynard
f806ad8a00
Scale the diagnostics bars differently for FSRs.
2019-01-18 19:46:10 -06:00
Glenn Maynard
a2eb0c7591
Reorder the diags threshold bars (only cosmetic).
2019-01-07 17:37:41 -06:00
Glenn Maynard
849fd7a975
Simplify overlapped I/O handling, and add a command timeout.
...
If we don't get a response from a command in a while, resend it. This doesn't
normally happen (it only happened during firmware development), but it makes
command sending more robust, so let's keep it. This also uses a single OVERLAPPED
for a whole command, which is simpler.
2019-01-03 18:13:51 -06:00
Glenn Maynard
9ae9a506c6
Add the initial floor lighting button in the UI.
...
This also refactors the panel button code to rely less on WPF bindings.
They just get in the way for anything nontrivial. Doing it this way
lets us treat the panel buttons as an interface for setting colors, to
handle the different fields that are set for the panel colors and floor
color.
2019-01-03 18:13:51 -06:00
Glenn Maynard
84c467a485
Cleanup.
2019-01-01 18:00:27 -06:00
Glenn Maynard
48c75ba224
Pass the packet response to completion callbacks.
2019-01-01 18:00:27 -06:00
Glenn Maynard
879df7152c
Fix m_bSendingConfig not being reset on close.
...
This could cause us to stop sending config updates, since we're still
waiting for the previous one to complete. This is probably the cause
of threshold changes, etc. not being applied.
2018-12-29 22:11:30 -06:00
Glenn Maynard
478a0618fb
Fix exception if ThresholdSlider refreshes when no pads are active.
...
GetFirstActivePadConfig returns a dummy config if nothing is connected, which
didn't have any of its arrays created. Fill in dummy arrays for enabledSensors,
etc. so refreshes don't throw exceptions if they're updated right when the
last controller disconnects. (This is a rare race condition and I've only
seen it while stepping in the debugger and disconnecting while stopped.)
2018-12-29 22:10:27 -06:00
Glenn Maynard
aba274603c
Set LIGHTS_PER_PANEL to 25.
...
At 16 the lights data was overflowing, which is probably what was causing the
smxconfig crashes.
2018-12-27 18:26:02 -06:00
Glenn Maynard
6b58194235
Handle FSR thresholds in the threshold sliders.
2018-12-25 17:52:40 -06:00
Glenn Maynard
1c980f24e0
Add config fields for FSR sensitivity and the platform strip color.
...
This also sets pack:1 so we don't rely on compiler struct alignment.
2018-12-09 16:33:40 -06:00
Glenn Maynard
776baf1aca
Set all lights in the UI when previewing light colors.
2018-12-09 16:11:12 -06:00
Glenn Maynard
3d5be3017b
Add support for 25 light panels (SDK side).
2018-12-09 16:11:12 -06:00