Skip to content

Commit

Permalink
[task_05] Add Solution (brstu#158)
Browse files Browse the repository at this point in the history
dfsfafe

Co-authored-by: Yana Sitkovets <[email protected]>
  • Loading branch information
KulibinI and NogameNo-life authored Nov 16, 2024
1 parent 08ccc31 commit 356d638
Show file tree
Hide file tree
Showing 3 changed files with 41 additions and 1 deletion.
2 changes: 1 addition & 1 deletion readme.md
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@
|18|Поплавский Владислав|[as000220021](./trunk/as000220021/)|:white_check_mark:|:white_check_mark:||||||||
|19|Савко Павел|[as0006319](./trunk/as0006319/)|:white_check_mark:|:white_check_mark:||||||||||
|20|Соколова Маргарита|[as0006320](./trunk/as0006320/)|:white_check_mark:|:white_check_mark:||||||||||
|21|Стельмашук Иван|[as0006321](./trunk/as0006321/)|:white_check_mark:|:white_check_mark:||||||||||
|21|Стельмашук Иван|[as0006321](./trunk/as0006321/)|:white_check_mark:|:white_check_mark:|:white_check_mark:|:white_check_mark:|:white_check_mark:|:white_check_mark:||||||
|22|Тунчик Антон|[as0006322](./trunk/as0006322/)|:white_check_mark:|:white_check_mark:|:white_check_mark:|:white_check_mark:|:white_check_mark:|||||
|23|Филипчук Дмитрий|[as0006323](./trunk/as0006323/)|:white_check_mark:|:white_check_mark:||||||||
|24|Ярмола Александр|[as0006325](./trunk/as0006325/)|:white_check_mark:|:white_check_mark:|:white_check_mark:|:white_check_mark:|:white_check_mark:|:white_check_mark:|:white_check_mark:|||
Expand Down
Binary file added trunk/as0006321/task_05/doc/images/monitor.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
40 changes: 40 additions & 0 deletions trunk/as0006321/task_05/doc/readme.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,40 @@
<p align="center">Ìèíèñòåðñòâî îáðàçîâàíèÿ Ðåñïóáëèêè Áåëàðóñü</p>
<p align="center">Ó÷ðåæäåíèå îáðàçîâàíèÿ</p>
<p align="center">“Áðåñòñêèé Ãîñóäàðñòâåííûé òåõíè÷åñêèé óíèâåðñèòåò”</p>
<p align="center">Êàôåäðà ÈÈÒ</p>
<br><br><br><br><br><br>
<p align="center"><strong>Ëàáîðàòîðíàÿ ðàáîòà ¹5</strong></p>
<p align="center"><strong>Ïî äèñöèïëèíå</strong> “Òåîðèÿ è ìåòîäû àâòîìàòè÷åñêîãî óïðàâëåíèÿ”</p>
<p align="center"><strong>Òåìà:</strong> “Ðàáîòà ñ êîíòðîëëåðîì AXC F 2152”</p>
<br><br><br><br><br><br>
<p align="right"><strong>Âûïîëíèë</strong>:</p>
<p align="right">Ñòóäåíò 3 êóðñà</p>
<p align="right">Ãðóïïû ÀÑ-63</p>
<p align="right">Ñòåëüìàøóê È.À.</p>
<p align="right"><strong>Ïðîâåðèë:</strong></p>
<p align="right">Èâàíþê Ä. Ñ.</p>
<br><br><br><br><br>
<p align="center"><strong>Áðåñò 2024</strong></p>

---

### Õîä ðàáîòû:

 ôóíêöèþ "user_eval" ôàéëà main.plua áûë äîáàâëåí ñëåäóþùèé êîä:
```bash
function user_init()
local DELTA = 200
A5HL8_info.start_time = get_millisec()
A5HL6_info.start_time = A5HL8_info.start_time - DELTA
A5HL4_info.start_time = A5HL6_info.start_time - DELTA
A5HL2_info.start_time = A5HL4_info.start_time - DELTA
A5HL7_info.start_time = A5HL2_info.start_time - DELTA
A5HL5_info.start_time = A5HL7_info.start_time - DELTA
A5HL3_info.start_time = A5HL5_info.start_time - DELTA
A5HL1_info.start_time = A5HL3_info.start_time - DELTA
end
```

## Ðåçóëüòàò

Óñòàíàâëèâàåòñÿ èíòåðâàë â 200 ìñ ìåæäó ñòàðòîâûìè âðåìåíàìè îáúåêòîâ, çàòåì óñòàíàâëèâàåòñÿ ñòàðòîâîå âðåìÿ äëÿ A5HL8_info â êà÷åñòâå òåêóùåãî âðåìåíè â ìèëëèñåêóíäàõ. Äàëåå ðàçíèöà âî âðåìåíè ìåæäó íèìè ñîñòàâëÿåò 200 ìñ. Òàêèì îáðàçîì, ïðè ðàáîòå êîäà ìåíÿåòñÿ ïîðÿäîê ñâå÷åíèÿ äèîäîâ.

0 comments on commit 356d638

Please sign in to comment.