Robotics StackExchange | Archived questions

PINE was not declared in this scope

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.

Asked by Usui on 2019-12-20 18:29:45 UTC

Comments

Did you get the answer to your issue? I'm having the same problem. Could you please help?

Asked by Rushikesh on 2021-12-13 22:50:58 UTC

Answers