LogicBots

LogicBots

评价数不足
1-8 Under budget
   
奖励
收藏
已收藏
取消收藏
文件大小
发表于
更新日期
382.835 KB
2017 年 9 月 20 日 下午 12:27
2017 年 9 月 20 日 下午 12:39
2 项改动说明 ( 查看 )

订阅以下载
1-8 Under budget

描述
Logic:
---
Start = Reset all numbers.
---
//Counter:
If 'Colour sensor' = 1,then 'Add' to 'Count'.
If 'Colour sensor' > 1,then 'Subtract' to 'Count'.
---
//Electronic compass:
Divide 'Cumulative Rotation' to 90 (For reaching counter numbers - 0÷90=0,90÷90=1,180÷90=2,etc...)
---
//Left motor:
'Cumulative Rotation÷90' Greater then 'Counter result + Accuracy range' ?
If yes,then change 'Left motor direction'
---
//Right motor:
'Cumulative Rotation÷90' Less then 'Counter result - Accuracy range' ?
If yes,then change 'Left motor direction'
---
//End.

The greater numbers in 'Accuracy range',the faster it is(but lower compass accuracy ofc.).

Also,you can reach "time" goal if you add a caster wheel on the front side of the bot and decrease his "compas following" accuracy in "circuit board" in "Static value(named 'Accuracy range') gate".