Adding CI testing for `tdma_slotted_aloha_node`
New Features / Improvements
- New ci test node:
test_tdma_slotted_aloha.py
- test cases for
tdma_slotted_aloha
-
test_high_pass()
- publishes 3 msgs (on low priority topic) to a node with only aloha slots so it must timeout to pass
-
test_low_pass()
- publishes 1 msg on high priority topic, confirms it's next rx.
-
test_collision()
- makes sure we're not active and at least 1 slot away from shared
aloha_slot
- creates subscriber for
/modem0/from_acomms/test_msg_aloha
and/modem1/from_acomms/test_msg_aloha
- publishes 1 msg on modem0 high priority topic (
/modem0/test_msg_aloha
),priority: 80
- publishes 1 msg on modem1 high priority topic (
/modem1/test_msg_aloha
),priority: 80
- when callback set for subscribers has set modem0_last and modem1_last, we check that the time delta and values indicate a collision (which we expect)
- makes sure we're not active and at least 1 slot away from shared
-
test_low_priority()
- publishes 3 msgs on low priority topic
- makes sure we recv all of them on rx side
-