774bae6 | Ron Burkey | 17 December 2017, 18:28:28 UTC | Fleshed out humanizeScript.py with lots more i/o ports ... all of them, I think, with the exception of a couple of "fictitious" i/o ports that I don't think were ever of interest to anybody but me. | 17 December 2017, 18:28:28 UTC |
2ea71c6 | Ron Burkey | 16 December 2017, 13:27:43 UTC | And another. | 16 December 2017, 13:27:43 UTC |
a531aff | Ron Burkey | 16 December 2017, 13:25:50 UTC | Corrected formatting of a warning message. | 16 December 2017, 13:25:50 UTC |
d6130d5 | Ron Burkey | 16 December 2017, 13:19:18 UTC | Fixed a missing "continue" in the maintenance menu, and eliminated a bunch of pointless "continues" that were already there. (Pointless because they would have fallen through to a "continue" anyway.) | 16 December 2017, 13:19:18 UTC |
b57005b | Ron Burkey | 16 December 2017, 13:12:06 UTC | There's now a mission-menu option to use an external AGC (i.e., one not on the Pi), such as connecting to NASSP), as well as a maintenance menu option for selection the IP address and port number for the external AGC. This has nothing to do with wireless setup, which is assumed to be handled differently somehow. | 16 December 2017, 13:12:06 UTC |
79edc81 | Ron Burkey | 16 December 2017, 13:10:16 UTC | Added the program humanizeScript.py for producing a relatively human-readable form of a DSKY playback-script. Probably still needs some work, but it seems to be useful. | 16 December 2017, 13:10:16 UTC |
395f7b5 | Ron Burkey | 16 December 2017, 13:09:23 UTC | There's now a maintenance-menu item for updating VirtualAGC (from github). | 16 December 2017, 13:09:23 UTC |
6fc6d57 | Ron Burkey | 13 December 2017, 20:39:23 UTC | Reversed sense of key-backlighting. (Now generally on as opposed to generally off, and temporarily goes off rather than on when a key is pressed as part of the playback.) | 13 December 2017, 20:39:23 UTC |
14b2659 | Ron Burkey | 13 December 2017, 14:33:59 UTC | This time for sure! | 13 December 2017, 14:33:59 UTC |
c021c94 | Ron Burkey | 13 December 2017, 14:32:28 UTC | Fixed graphic for Update icon. | 13 December 2017, 14:32:28 UTC |
d5c9daa | Ron Burkey | 13 December 2017, 14:30:20 UTC | Fixed a bug in the lamp control, I hope. Made the Update desktop icon update the entire virtualagc directory rather than just piPeripheral. | 13 December 2017, 14:30:20 UTC |
a9d3869 | Ron Burkey | 13 December 2017, 14:10:05 UTC | Changed Update icon to update the entire virtualagc directory, not just piPeripheral. | 13 December 2017, 14:10:05 UTC |
7a1f70d | Ron Burkey | 13 December 2017, 14:06:57 UTC | Added an Update desktop icon for Raspbian. (All it does is update the virtualagc/piPeripheral directory.) | 13 December 2017, 14:06:57 UTC |
3a9a412 | Ron Burkey | 13 December 2017, 14:02:14 UTC | Added Apollo 8 launch replay to mission menu. Apollo 11 landing also added, but the script doesn't exist as of yet, so it will simply give an apology message if selected right now. | 13 December 2017, 14:02:14 UTC |
4be828f | Ron Burkey | 13 December 2017, 13:37:55 UTC | Finished implementing the backlight-on-keypress feature for script playback in piDSKY2.py. I don't actually have a DSKY with wired-up backlighting (or keys, for that matter), but I think this is working or very close to it. | 13 December 2017, 13:37:55 UTC |
36d937f | Ron Burkey | 12 December 2017, 21:50:49 UTC | Recording/playback of AGC output-channel logs can now account for some input channels as well, specifically input channels 015 & 032 which carry DSKY keystrokes. The NASSP log converter and yaDSKY2 fully handle this, while piDSKY2.py presently only has hooks for it. The idea is that in playback of the scripts, the DSKY's keys visually indicate the keys the log data says were pressed. yaDSKY2 can now also handle recording of the logs, by clicking the TRACKER key to start and then again to finish. The logs are supposed to go into the documents directory, but they go into the home directory in Linux, so I don't know where they would go on other platforms. | 12 December 2017, 21:50:49 UTC |
69c2d19 | Ron Burkey | 12 December 2017, 00:09:02 UTC | Added to yaDSKY2 the same ability as piDSKY2.py to play back pre-recorded scripts of AGC output channels. These can be recorded either with piDSKY2.py or else with NASSP (and then converted using ConvertNasspLog.py). I've also added such a canned script, namely Apollo8-launch.canned. In piDSKY2.py the playback is done with the --playback CLI switch, but in yaDSKY2 it's done by clicking the PROG indicator lamp, which opens a file dialog. | 12 December 2017, 00:09:02 UTC |
1d2283a | Ron Burkey | 11 December 2017, 19:38:30 UTC | Added the aliases 'dsky' and 'all' for specific channel numbers. | 11 December 2017, 19:38:30 UTC |
b9f035a | Ron Burkey | 11 December 2017, 14:11:19 UTC | Nik pointed out that the conversion script also needed to account for initial conditions of the DSKY display that had been set up prior to the start of the simulation. | 11 December 2017, 14:11:19 UTC |
83bf83d | Ron Burkey | 11 December 2017, 12:59:16 UTC | Allowed piDSKY2.py to accept floating-point timestamp references in playback scripts, though I don't think we actually will ever need to use that for anything. Added a script to convert from the NASSP logging format Nik Beug has shown me a sample of to the playback format required by piDSKY2.py. It's more-convenient (for me!) to get the NASSP scripts as-is rather than to ask them to convert them. | 11 December 2017, 12:59:16 UTC |
87c36ac | Ron Burkey | 10 December 2017, 15:12:03 UTC | Added a Raspbian desktop icon for runPiDSKY2.sh. Got rid of the xterm window for piPeripheral.py (when run from runPiDSKY2.sh) except for the --debug case. | 10 December 2017, 15:12:03 UTC |
0e1072a | Ron Burkey | 09 December 2017, 22:41:31 UTC | Corrected the menu. | 09 December 2017, 22:41:31 UTC |
a55a0cc | Ron Burkey | 09 December 2017, 22:28:13 UTC | The --playback switch is now implemented, though primitively. It doesn't have a lot of stuff I thought would be cool, such as comments, blank lines, file-inclusion, or time-references other than simple event-to-event relative ones. But it's a start, and possibly a finish. | 09 December 2017, 22:28:13 UTC |
b6a8c33 | Ron Burkey | 09 December 2017, 21:13:23 UTC | Fixed up redundant log messages, particularly for channel 010, in which the check for redundancy didn't account for the presence of the relay-numbers in the output values. | 09 December 2017, 21:13:23 UTC |
9fc5ece | Ron Burkey | 09 December 2017, 18:53:09 UTC | Added --record options to piDSKY2.py and runPiDSKY2.sh. These record all DSKY-relevant output-channel events, timestamped, to a file, presumably for later playback by the --playback option (not implemented yet). The recorded log is a text file, with each line containing the time (integer milliseconds) since the preceding event, the channel number in octal, and the channel value in octal. A record is made only if when the value of a channel changes, so multiple outputs to the same channel with the same value do not produce multiple records. | 09 December 2017, 18:53:09 UTC |
b19a64e | Ron Burkey | 09 December 2017, 12:49:14 UTC | Corrected a program comment. | 09 December 2017, 12:49:14 UTC |
824fcc2 | Ron Burkey | 09 December 2017, 12:24:43 UTC | Pepped up the formatting of the time and date on the DSKY in the sample custom AGC program. Also, pepped up the generic routines in that program for displaying decimal numbers in registers, so that they properly display the sign now. | 09 December 2017, 12:24:43 UTC |
5782444 | Ron Burkey | 09 December 2017, 03:47:07 UTC | Changed runPiDSKY2.sh so that it builds piPeripheral.agc at runtime when its option is selected from the mission menu. | 09 December 2017, 03:47:07 UTC |
fd0b815 | Ron Burkey | 09 December 2017, 03:41:23 UTC | The sample Python template for creating AGC peripherals, piPeripheral.py, has been fleshed out so that it sends the AGC the current date&time on a set of AGC input channels it has defined. Similarly, the sample custom AGC program, piPeripheral.agc has been fleshed out to read those input channels, and to display the info on the DSKY. Finally, if runPiDSKY2.sh is run with the command-line switch --custom-bare, the mission menu adds a new selection which can be used to run piPeripheral.py and piPeripheral.agc. The executable for piPeripheral.agc, however, is not built by default, and so that has to be done explicitly before using this option. | 09 December 2017, 03:41:23 UTC |
7c43acf | Ron Burkey | 07 December 2017, 20:34:50 UTC | Added a demo AGC program, piPeripheral.agc, from a howto I'm writing (DIY.html). | 07 December 2017, 20:34:50 UTC |
27d5dd5 | Ron Burkey | 07 December 2017, 13:22:42 UTC | Save screenshot in home directory rather than on the ram disk. | 07 December 2017, 13:22:42 UTC |
0571b49 | Ron Burkey | 06 December 2017, 15:56:20 UTC | Added three support dots. | 06 December 2017, 15:56:20 UTC |
291df16 | Ron Burkey | 06 December 2017, 14:00:08 UTC | Worked around the problem that pressing NUM LOCK turns key-repeat on. Added a "maintenance menu" to runPiDSKY2.sh. | 06 December 2017, 14:00:08 UTC |
6507730 | Ron Burkey | 05 December 2017, 02:46:54 UTC | Fixed PIGPIO control of lamps in piDSKY2.py, I think. | 05 December 2017, 02:46:54 UTC |
b41411a | Ron Burkey | 05 December 2017, 02:40:11 UTC | Everything was offset by 1 row. | 05 December 2017, 02:40:11 UTC |
c2a81b6 | Ron Burkey | 05 December 2017, 02:37:32 UTC | Not updating properly for fictitious channel 0163 | 05 December 2017, 02:37:32 UTC |
eb45aca | Ron Burkey | 05 December 2017, 02:32:26 UTC | The order still isn't right ... | 05 December 2017, 02:32:26 UTC |
79988cd | Ron Burkey | 05 December 2017, 02:24:42 UTC | Changed order of lamps. | 05 December 2017, 02:24:42 UTC |
20f691b | Ron Burkey | 05 December 2017, 02:00:51 UTC | Eliminated startup lamp test and fixed the shutdown configuration bit. | 05 December 2017, 02:00:51 UTC |
b546aba | Ron Burkey | 04 December 2017, 21:06:57 UTC | First, halting steps towards a piDEDA.py program. | 04 December 2017, 21:06:57 UTC |
e51d543 | Ron Burkey | 04 December 2017, 21:06:31 UTC | Slight cleanup in --help message. | 04 December 2017, 21:06:31 UTC |
6bc8e85 | Ron Burkey | 02 December 2017, 13:50:13 UTC | Added --ags option to piPeripheral.py, in expectation of starting to create a piDEDA.py program. Completely untested. | 02 December 2017, 13:50:13 UTC |
27d3d14 | Ron Burkey | 02 December 2017, 13:24:50 UTC | Backported various fixes from piDSKY2.py to piDSKY.py (actually, just replaced the one by the other and stripped out the unneeded gunk), and added a --piDSKY switch to runPiDSKY2.sh to allow running piDSKY.py from it. | 02 December 2017, 13:24:50 UTC |
891d787 | Ron Burkey | 30 November 2017, 19:49:27 UTC | Just documentation changes and code rearrangement for improved maintainability. | 30 November 2017, 19:49:27 UTC |
d16750b | Ron Burkey | 29 November 2017, 18:08:13 UTC | Corrected 7-segment mappings to actual lamps, I hope. | 29 November 2017, 18:08:13 UTC |
ff1ae53 | Ron Burkey | 29 November 2017, 16:25:08 UTC | More of the same. | 29 November 2017, 16:25:08 UTC |
21c8820 | Ron Burkey | 29 November 2017, 16:21:21 UTC | More of the same. | 29 November 2017, 16:21:21 UTC |
eb4cdf9 | Ron Burkey | 29 November 2017, 16:17:49 UTC | More of the same. | 29 November 2017, 16:17:49 UTC |
fa4514e | Ron Burkey | 29 November 2017, 16:15:59 UTC | More of the same. | 29 November 2017, 16:15:59 UTC |
7c867c0 | Ron Burkey | 29 November 2017, 16:12:34 UTC | First cut at PIGPIO code to replace 'led-panel' directly within piDSKY2.py. | 29 November 2017, 16:12:34 UTC |
c73b9d7 | Ron Burkey | 28 November 2017, 20:24:10 UTC | I have seen a few lost keystrokes in commands other than V35E with an interkey delay of 0.1 second, so I put it back to 0.25. I attribute them to AGC timing rather than to piDSKY2.py but we'll see! | 28 November 2017, 20:24:10 UTC |
44a220c | Ron Burkey | 28 November 2017, 20:03:22 UTC | Changed the automateV35 script to do a sequence of several operations, and not just V35E, since I don't seem to be about to detect any further errors with just V35E. | 28 November 2017, 20:03:22 UTC |
2415ac9 | Ron Burkey | 28 November 2017, 16:36:41 UTC | I think there may be a memory leak how I'm displaying the graphics. This is an attempt to fix that. | 28 November 2017, 16:36:41 UTC |
14e0cd4 | Ron Burkey | 28 November 2017, 15:59:37 UTC | Tweaked slightly to make sure that only psutil.NoSuchProcess exceptions were being taken care of. | 28 November 2017, 15:59:37 UTC |
3d477b5 | Ron Burkey | 28 November 2017, 15:35:14 UTC | Changed my approach to the psutil problem; I don't think it's reentrancy at all, but merely disappearance of some processes before their attributes can be determined. I've added try/excepts to get around that. | 28 November 2017, 15:35:14 UTC |
effa5f6 | Ron Burkey | 28 November 2017, 14:59:05 UTC | My mutexes didn't fix the psutil problem. Tried rearranging code to fix it. | 28 November 2017, 14:59:05 UTC |
4583c02 | Ron Burkey | 28 November 2017, 14:48:22 UTC | Added specific monitoring of piDSKY2.py to backgroundStatus.sh, in order to be able to see its memory usage. | 28 November 2017, 14:48:22 UTC |
165f66e | Ron Burkey | 28 November 2017, 14:27:27 UTC | Tried to fix a psutil bug with mutexes. Buffered GUI keystrokes/presses in a queue to avoid losing any. Reduced delays in automateV35.py. piDSKY2.py now prints out how many V35E's it has seen, for easy comparison with automateV35.py's corresponding messages. | 28 November 2017, 14:27:27 UTC |
fc34e14 | Ron Burkey | 27 November 2017, 19:02:29 UTC | Added automateV35.py. | 27 November 2017, 19:02:29 UTC |
22def11 | Ron Burkey | 27 November 2017, 18:57:15 UTC | Added a script, automateV35.py, which can feed V35E into piDSKY2.py every 10 seconds. | 27 November 2017, 18:57:15 UTC |
8c2eb59 | Ron Burkey | 27 November 2017, 18:16:35 UTC | Split load/clock/temperature monitoring window from --debug into a separate --monitor switch that's independent. Swapped BackSpace and Tab aliases (now for PRO and KEY REL) to allow PRO's alias to have key-release detection. The RRRRR exit hadn't been working for a while, apparently. | 27 November 2017, 18:16:35 UTC |
26b3168 | Ron Burkey | 27 November 2017, 15:45:28 UTC | Added vncserverui detection, with consequent trigger of a "hidden" lamp. | 27 November 2017, 15:45:28 UTC |
c50d574 | Ron Burkey | 27 November 2017, 13:24:05 UTC | Changed the DSKY separator-line graphic. Added another popup window for --debug that monitors temperature, load average, clock frequency. Eliminated the DSKY keypad backlighting. | 27 November 2017, 13:24:05 UTC |
6e912c9 | Ron Burkey | 26 November 2017, 19:57:29 UTC | Added correct detection of PRO-key release (except for TAB alias) rather than simply timing out. | 26 November 2017, 19:57:29 UTC |
bc9d3d2 | Ron Burkey | 26 November 2017, 19:03:04 UTC | Fixed dumb bugs in TEMP, UPLINK, and VEL indicators. | 26 November 2017, 19:03:04 UTC |
549005d | Ron Burkey | 26 November 2017, 13:42:46 UTC | Added a new cli option, --slow, which hopefully will make this work not as awfully on a Pi B+. | 26 November 2017, 13:42:46 UTC |
7289e35 | Ron Burkey | 26 November 2017, 13:31:30 UTC | I wasn't happy with the CPU utilization on the Pi for the last commit. | 26 November 2017, 13:31:30 UTC |
90aab44 | Ron Burkey | 26 November 2017, 13:00:35 UTC | Added some timing filters to try and work around design issues related to shelling out to the 'led-panel' program. | 26 November 2017, 13:00:35 UTC |
e314760 | Ron Burkey | 25 November 2017, 19:27:51 UTC | Fixes for piDSKY2.py similar to Mike Stewart's for yaDSKY2, for RESTART, STANDBY, OPR ERR, and KEY REL lamps. I may not have managed to capture all of them. | 25 November 2017, 19:27:51 UTC |
5a1b9fd | Ron Burkey | 25 November 2017, 13:12:12 UTC | At Sam Ammons's, piDSKY2 now shells out to the 'led-panel' program to control indicator lamps. runPiDSKY2.sh now has several improvements to the command-line structure, with the cli parameters no longer being positional, and with the addition of the new --led-panel and --debug options. | 25 November 2017, 13:12:12 UTC |
546196b | Ron Burkey | 24 November 2017, 21:19:15 UTC | Missed the delet key on the numeric keypad. | 24 November 2017, 21:19:15 UTC |
d2cf8cd | Ron Burkey | 24 November 2017, 21:02:45 UTC | Added stuff for numeric keypad. | 24 November 2017, 21:02:45 UTC |
1415c10 | Ron Burkey | 22 November 2017, 20:37:08 UTC | Added a splash-screen capability. | 22 November 2017, 20:37:08 UTC |
50f9da5 | Ron Burkey | 22 November 2017, 20:13:57 UTC | Added a dummy splash screen and blank screen. | 22 November 2017, 20:13:57 UTC |
387a209 | Ron Burkey | 22 November 2017, 19:29:42 UTC | Added alternate image directories. | 22 November 2017, 19:29:42 UTC |
3deb20c | Ron Burkey | 22 November 2017, 17:21:45 UTC | More of the same. | 22 November 2017, 17:21:45 UTC |
fcad1e0 | Ron Burkey | 22 November 2017, 17:05:36 UTC | Added screen-grab function | 22 November 2017, 17:05:36 UTC |
ec4800b | Ron Burkey | 22 November 2017, 16:28:24 UTC | Turned off mouse cursor in full-screen mode. | 22 November 2017, 16:28:24 UTC |
7694fc5 | Ron Burkey | 22 November 2017, 16:17:51 UTC | Added new option, w/ password, for exiting. | 22 November 2017, 16:17:51 UTC |
d0f331d | Ron Burkey | 22 November 2017, 15:59:48 UTC | When --window=1 is used, the display window is positioned at upper left rather than centered. | 22 November 2017, 15:59:48 UTC |
fe056fe | Ron Burkey | 22 November 2017, 15:53:51 UTC | Changed timeout from 10 seconds to 15. | 22 November 2017, 15:53:51 UTC |
205c9ae | Ron Burkey | 22 November 2017, 13:39:46 UTC | Drawing the widgets for piDSKY2.py is now "lazy", meaning that it won't bother to redraw any widget whose image hasn't changed. That is intended to reduce CPU load and temperature, and ultimately keep the clock speed on a Pi up in order to reduce drawing artifacts. | 22 November 2017, 13:39:46 UTC |
c1955df | Ron Burkey | 22 November 2017, 13:19:52 UTC | Various runPiDSKY2.sh fixes: I found that on some platforms, you can't execute a program from the /run/user/1000/ ramdisk, so now it runs them directly from their original locations rather than copying them. Actually, it no longer copies ANY file that it only needs to use once and can be used from its original location. It uses /run/user/$UID/ as the ramdisk instead of /run/user/1000/, in case the user isn't #1000. It falls back on the home directory if /run/user/$UID/ doesn't exist. It has a new CLI option: if $2=="--yaDSKY2", then it runs yaDSKY2 in addition to piDSKY2.py so that you can see them operate in parallel, although this is really only meaningful if $1=="--window=1" is used as well. | 22 November 2017, 13:19:52 UTC |
0e4e33c | Ron Burkey | 21 November 2017, 20:47:23 UTC | Eliminated some pre-menu messages from runPiDSKY2.sh. | 21 November 2017, 20:47:23 UTC |
9bd5f51 | Ron Burkey | 21 November 2017, 20:35:11 UTC | piDSKY2.py now treats 5 consecutive RST presses as if it were an 'X' ... i.e., it exits the simulation, thus allowing runPiDSKY2.sh to loop back to mission selection. | 21 November 2017, 20:35:11 UTC |
702d03e | Ron Burkey | 21 November 2017, 20:21:59 UTC | runPiDSKY2.sh now loops back to mission selection after exiting from the simulation. All of the extraneous messages have been cleaned up, as well the menu. Unfortunately, there's no actual 'X' key to press among the physical DSKY's buttons, so there's no way at present to do this loop in the actual hardware. | 21 November 2017, 20:21:59 UTC |
f03bcd4 | Ron Burkey | 21 November 2017, 18:51:52 UTC | Removed an unused graphic. | 21 November 2017, 18:51:52 UTC |
c11a6d0 | Ron Burkey | 21 November 2017, 14:32:11 UTC | Added large (8X) un anti-aliased versions of all of the piDSKY2 graphics, to make rescaling and and recoloring a lot easier. | 21 November 2017, 14:32:11 UTC |
f7a4b63 | Ron Burkey | 21 November 2017, 14:27:22 UTC | Ported the fixes to the NOUN and PRO buttons from piDSKY2.py into piDSKY.pi. | 21 November 2017, 14:27:22 UTC |
567cac8 | Ron Burkey | 21 November 2017, 14:26:48 UTC | Increased PRO timeout to 0.5 seconds. Replaced all the imagery with cleaned-up images, specifically having black backgrounds. Removed the bogus white borders that the widgets were being displayed with. | 21 November 2017, 14:26:48 UTC |
ba201ae | Ron Burkey | 21 November 2017, 02:14:02 UTC | Yikes! That didn't work. I changed it to an explicit cast. | 21 November 2017, 02:14:02 UTC |
1023892 | Ron Burkey | 21 November 2017, 01:59:51 UTC | Got rid of some compiler warnings that were thwarting me in Raspbian Stretch. | 21 November 2017, 01:59:51 UTC |
eabaddd | Ron Burkey | 20 November 2017, 20:18:12 UTC | Decided to make --window a parameter of runPiDSKY2.sh. | 20 November 2017, 20:18:12 UTC |
a346bae | Ron Burkey | 20 November 2017, 20:16:16 UTC | Whoops! Had temporarily left the --window switch turned on. | 20 November 2017, 20:16:16 UTC |
9cf8799 | Ron Burkey | 20 November 2017, 20:09:07 UTC | The NOUN and PRO keys turned out not to be working right, and the +/- weren't working right from the GUI. | 20 November 2017, 20:09:07 UTC |
b180822 | Ron Burkey | 20 November 2017, 19:09:50 UTC | The 'X' command no longer worked properly once the tkinter event loop was running. Fixed that. | 20 November 2017, 19:09:50 UTC |
6ad3fe9 | Ron Burkey | 20 November 2017, 15:27:06 UTC | Fixed lots of annoyances in piDSKY2.py and fleshed out runPiDSKY2.sh to the point of being very usable. | 20 November 2017, 15:27:06 UTC |
275c00c | Ron Burkey | 19 November 2017, 17:00:52 UTC | Added piDSKY2.py, which is a variation on piDSKY.py that relates to a certain specific Raspberry Pi setup. It's only partially working, and I'll document it more fully later. | 19 November 2017, 17:00:52 UTC |
089201b | Ron Burkey | 18 November 2017, 17:37:27 UTC | Forgot to account for the effect of cap-lock on the + and - keys. | 18 November 2017, 17:37:27 UTC |
d0d3935 | Ron Burkey | 18 November 2017, 14:18:19 UTC | I'd decided to split piPeripheral.py into two separate scripts, piPeripheral.py and piDSKY.py. piDSKY.py retains all of the simple DSKY code, whereas piPeripheral.py proper has been stripped back to its bare essentials, since I realized that all of the DSKY code had made it much harder to use if you wanted to create a peripheral other than a DSKY. | 18 November 2017, 14:18:19 UTC |