aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDimitri Sokolyuk <demon@dim13.org>2017-08-19 13:18:37 +0200
committerDimitri Sokolyuk <demon@dim13.org>2017-08-19 13:18:37 +0200
commit11832cc3432423747b41dd58af0b9cbc09ae48ad (patch)
treeedf1ebb581f5a08cce0cdc2babb8af19e0a68811
parent67d25d837ac55f28a366c0a3b262e439a6e75fc3 (diff)
Disable broken IR
-rw-r--r--car/car.ino8
1 files changed, 5 insertions, 3 deletions
diff --git a/car/car.ino b/car/car.ino
index 54e138b..772aff3 100644
--- a/car/car.ino
+++ b/car/car.ino
@@ -2,7 +2,7 @@
// 01.01.2017
#include <Servo.h>
-#include <IRremote.h>
+//#include <IRremote.h>
//#include <os48.h>
#include "config.h"
#include "ir.h"
@@ -10,7 +10,7 @@
#include "elegoo.pb.h"
Servo head;
-IRrecv irrecv(IR);
+//IRrecv irrecv(IR);
void motor(int e, int a, int b, int v) {
if (v > 0) {
@@ -81,6 +81,7 @@ void ultra() {
}
}
+/* FIXME broken package
void ir() {
decode_results results;
if (irrecv.decode(&results)) {
@@ -105,6 +106,7 @@ void ir() {
delay(150);
}
}
+*/
void setup() {
Serial.begin(57600);
@@ -126,7 +128,7 @@ void setup() {
pinMode(S3, INPUT);
pinMode(IR, INPUT);
- irrecv.enableIRIn();
+// irrecv.enableIRIn();
head.attach(SRV);
lookahead();