Lab6 How to verify my answer from notebook ?? #175
-
想請問大家,由於 submission guideline裡面有提到需要 "verify your answer from notebook" 但是目前有遭遇到兩個問題:
|
Beta Was this translation helpful? Give feedback.
Replies: 3 comments 3 replies
-
幫推個,我們目前也是在這個部分卡住,我們只使用task的方式加上用while卡住等待收值,如下面兩張圖 目前不確定是不是要使用到asyncio的套件裡面更深入的功能來做驗證。 |
Beta Was this translation helpful? Give feedback.
-
我們這組有思考過這個問題,假如能夠找到一個可以從PS端輸入進行procedure的控制的port的話,就可以手動限制速度並且檢查答案,但我們找了一陣子找不太到。 |
Beta Was this translation helpful? Give feedback.
-
雖然說是偷吃步,是一個方法驗證功能的正確性,這在初期驗證階段可以使用,之後可以拿掉。 |
Beta Was this translation helpful? Give feedback.
我們這組有思考過這個問題,假如能夠找到一個可以從PS端輸入進行procedure的控制的port的話,就可以手動限制速度並且檢查答案,但我們找了一陣子找不太到。
所以我們用另一種有點偷吃步的方法,直接讓firmware的執行速度變慢,也就是在收到答案的值得間隔中安插while loop讓它空轉,有測試過這樣就可以收到所有你想檢查的值。