hardbyte / hardbyte/python-can

send periodic a list of messages without wrapping

Đang mở
#992 4 bình luận 0 reaction 0 người được giao Xem trên GitHub
Ngôn ngữ chính
Python
Star
1.6k
Fork
697
Chỉ số merge pull request
Không có pull request nào được merge trong 30 ngày

Mô tả

Is it possible to send a list of messages periodically without wrapping when reaching the end of the list?
using the duration based on len(send_list) * cycle_time will overshoot and retransmit.

Creating a list of messages to send cyclic (including 20 or so muxed frames)

```
send_list = list()
for bmsg in bmsg_list:
send_list.append(can.Message(arbitration_id=txid, is_extended_id=False, data=bmsg._data))

duration = len(send_list) * inhibit
task = c.bus.send_periodic(send_list, inhibit, duration=duration)
```

Hướng dẫn đóng góp

Mở hướng dẫn đóng góp

Đánh giá

Issue này chưa được đánh giá.

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.