-
Notifications
You must be signed in to change notification settings - Fork 130
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Tlm screen api #652
Merged
Merged
Tlm screen api #652
Changes from all commits
Commits
Show all changes
19 commits
Select commit
Hold shift + click to select a range
57808c4
start updating replay
ryanmelt daaeb0e
merge master
ryanmelt 23f8716
continue replay changes
ryanmelt 3c11763
tool replay mode
ryanmelt c7fa4d7
continue replay changes
ryanmelt 9c87cb1
Merge branch 'master' into combine_replay
ryanmelt 32dae96
replay api and gui
ryanmelt 76b5f8e
ensure sort order
ryanmelt 3376479
create tlm screen api
ryanmelt f659888
fix item specs
ryanmelt 7a7893a
Merge branch 'master' into ensure_sort_order
ryanmelt 693d6d2
fix leaving open file handle in put_into_archive
ryanmelt 1e357ec
merge ensure_sort_order
ryanmelt a18fa3b
fix specs
ryanmelt 681fca2
fix specs
ryanmelt abd673f
prevent calling start twice in CmdTlmServer.
ryanmelt 2f4bbd5
merge other branch
ryanmelt eae2b12
improve commenting, change delay values, address jasons comments
ryanmelt 99a130f
Merge branch 'combine_replay' into tlm_screen_api
ryanmelt File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,32 @@ | ||
set_line_delay(0) | ||
set_replay_mode(true) | ||
filenames = get_output_logs_filenames() | ||
replay_select_file(filenames[-1]) | ||
status = 'Analyzing' | ||
while status =~ /Analyzing/ | ||
status, playback_delay, filename, file_start, file_current, file_end, file_index, file_max_index = replay_status | ||
wait(1) | ||
end | ||
100.times do | ||
replay_step_forward() | ||
end | ||
100.times do | ||
replay_step_back() | ||
end | ||
replay_move_end() | ||
replay_move_index(file_max_index / 2) | ||
replay_move_start() | ||
replay_set_playback_delay(0.1) | ||
replay_play() | ||
wait(2) | ||
replay_set_playback_delay(0.125) | ||
wait(5) | ||
replay_set_playback_delay(nil) | ||
wait(2) | ||
replay_set_playback_delay(0.0) | ||
wait(4) | ||
replay_stop() | ||
replay_reverse_play() | ||
wait(5) | ||
cmd_tlm_clear_counters() | ||
cmd_tlm_reload() |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,60 @@ | ||
# encoding: ascii-8bit | ||
|
||
# Copyright 2017 Ball Aerospace & Technologies Corp. | ||
# All Rights Reserved. | ||
# | ||
# This program is free software; you can modify and/or redistribute it | ||
# under the terms of the GNU General Public License | ||
# as published by the Free Software Foundation; version 3 with | ||
# attribution addendums as found in the LICENSE.txt | ||
|
||
module Cosmos | ||
|
||
module Script | ||
private | ||
|
||
def replay_select_file(filename, packet_log_reader = "DEFAULT") | ||
$cmd_tlm_server.replay_select_file(filename, packet_log_reader) | ||
end | ||
|
||
def replay_status | ||
$cmd_tlm_server.replay_status | ||
end | ||
|
||
def replay_set_playback_delay(delay) | ||
$cmd_tlm_server.replay_set_playback_delay(delay) | ||
end | ||
|
||
def replay_play | ||
$cmd_tlm_server.replay_play | ||
end | ||
|
||
def replay_reverse_play | ||
$cmd_tlm_server.replay_reverse_play | ||
end | ||
|
||
def replay_stop | ||
$cmd_tlm_server.replay_stop | ||
end | ||
|
||
def replay_step_forward | ||
$cmd_tlm_server.replay_step_forward | ||
end | ||
|
||
def replay_step_back | ||
$cmd_tlm_server.replay_step_back | ||
end | ||
|
||
def replay_move_start | ||
$cmd_tlm_server.replay_move_start | ||
end | ||
|
||
def replay_move_end | ||
$cmd_tlm_server.replay_move_end | ||
end | ||
|
||
def replay_move_index(index) | ||
$cmd_tlm_server.replay_move_index(index) | ||
end | ||
end | ||
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Is there a reason this got commented out?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Every time I start CmdTlmServer it pops up and annoys me. I could be convinced to put it back as the default with a good argument.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I only mention because #655 found a bug in the basic install because we we NOT using it. As long as it's part of the AHK test I'm ok leaving it out.