#include <Servo.h>
#include "SensorInterfacing.h"
int pot1=A0;
int pot2=A1;
int temp1=A2;
bool eps=true;
int LED=13;
Servo myServo;
void setup() {
// put your setup code here, to run once:
Serial.begin(115200);
myServo.attach(9);
pinMode(LED, OUTPUT);
pinMode(pot1, INPUT);
pinMode(pot2, INPUT);
pinMode(temp1, INPUT);
}
void loop() {
// put your main code here, to run repeatedly:
int Steering=readSteeringAngle(pot1,45,135);
int torque=readSteeringAngle(pot2,-30,30);
float temp=checkTemperature(temp1);
epsEnable(eps,LED);
delay(10);
}