fix IR Avoid
This commit is contained in:
parent
8f498e8111
commit
772f701daa
|
|
@ -1,6 +1,6 @@
|
|||
# mbit
|
||||
|
||||
Extension for Yahboom_mbit_en V3.0.3
|
||||
Extension for Yahboom_mbit_en V3.0.4
|
||||
|
||||
## License
|
||||
|
||||
|
|
|
|||
1
main.ts
1
main.ts
|
|
@ -935,6 +935,7 @@ namespace mbit_Robot {
|
|||
|
||||
let temp: boolean = false;
|
||||
pins.digitalWritePin(DigitalPin.P9, 0);
|
||||
control.waitMicros(10);
|
||||
switch (value) {
|
||||
case enAvoidState.OBSTACLE: {
|
||||
if (pins.analogReadPin(AnalogPin.P3) < 800) {
|
||||
|
|
|
|||
Loading…
Reference in New Issue