Skip to content

Commit fd7cc36

Browse files
committed
Comms client testing with high timewarps
1 parent 0ccaf85 commit fd7cc36

2 files changed

Lines changed: 7 additions & 2 deletions

File tree

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1 +1,2 @@
11
/.DS_Store
2+
/build

Documentation/examples/callbackcomms.py

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,13 +22,17 @@ def main():
2222

2323
comms.set_on_connect_callback(c)
2424
comms.set_on_mail_callback(m)
25-
pymoos.set_moos_timewarp(10)
25+
pymoos.set_moos_timewarp(20)
2626
comms.set_comms_control_timewarp_scale_factor(0.4)
2727
comms.run('localhost',9000,'pymoos')
2828

29+
last_time = time.time()
30+
2931
while True:
30-
time.sleep(1)
32+
time.sleep(1.0)
33+
# if time.time() - last_time > 1.0:
3134
comms.notify('simple_var','a string',pymoos.time())
35+
# last_time = time.time()
3236

3337
if __name__=="__main__":
3438
main()

0 commit comments

Comments
 (0)