PINE was not declared in this scope

asked 2019-12-20 17:29:45 -0500

Usui gravatar image

Okay so I am writing code for wheel encoder to upload into arduino.

my includes are:

#include <ros.h>
#include <std_msgs/Float32.h>
#include <std_msgs/Int8.h>
#include <rosserial_arduino/Adc.h>
#include <avr/io.h>
#include <avr/sfr_defs.h>
ros::Publisher encoder("encoder", &en);

the part that is errored is

 void encoder1()  {                                    
if (PINE & 0b00100000){
en2Pos--;
pen2Pos--;              
}
else{
en2Pos++;
pen2Pos++;              
}
}

I don't think I need to declare a PINE.

edit retag flag offensive close merge delete