X-Git-Url: https://zdv2.bktei.com/gitweb/EVA-2020-02.git/blobdiff_plain/872c737e707a757ea1e33d3b7a0ed96881d72de4..e47e80485f3c3192111ecf88bb09ae5d192cc208:/exec/bkgpslog-plan.org diff --git a/exec/bkgpslog-plan.org b/exec/bkgpslog-plan.org index 7eb5514..b7cc736 100644 --- a/exec/bkgpslog-plan.org +++ b/exec/bkgpslog-plan.org @@ -16,6 +16,38 @@ used to delay processing until a specified job completes. The ~wait~ command will pause script execution until all backgrounded processes complete. 2020-07-02T16:03Z; bktei> Added ~wait~. +** DONE Rewrite tar initialization function + CLOSED: [2020-07-02 Thu 17:23] +2020-07-02T17:23Z; bktei> Simplify tar initialization function so +VERSION file is used to test appendability of tar as well as to mark +when a new session is started. +** DONE Consolidate tar checking/creation into function + CLOSED: [2020-07-02 Thu 18:33] +2020-07-02T18:33Z; bktei> Simplify how the output tar file's existence +is checked and its status as a valid tar file is validated. This was +done using a new function ~checkMakeTar~. +** DONE Add VERSION if output tar deleted between writes + + CLOSED: [2020-07-02 Thu 20:22] +2020-07-02T20:21Z; bktei> Added bkgpslog-specified function +magicWriteVersion() to be called whenever a new time-stamped ~VERSION~ +file needs to be generated and appended to the output tar file +~PATHOUT_TAR~. +** TODO Rewrite buffer loop to reduce lag between gpspipe runs +2020-07-03T17:10Z; bktei> As is, there is still a 5-6 second lag +between when ~gpspipe~ times out at the end of a buffer round and when +~gpspipe~ is called by the subsequent buffer round. I believe this can +be reduced by moving variable manipulations inside the +asynchronously-executed magicWriteBuffer() function. Ideally, the +while loop should look like: + +#+BEGIN_EXAMPLE +while( $SECONDS < $SCRIPT_TTL); do + gpspipe-r > "$DIR_TMP"/buffer.nmea + writeBuffer & +done +#+END_EXAMPLE + * bkgpslog narrative ** Initialize environment *** Init variables