@Override
public void onIrEvent(IREvent e) {
// TODO Auto-generated method stub
}
ardrone.addAttitudeUpdateListener(new AttitudeListener() {
@Override
public void attitudeUpdated(float pitch, float roll, float yaw, int altitude) {
System.out.println("altitude : " + altitude);
}
});
i want to take the variables altitude from the second constructor and use it in the first constructor. I tried to use it directly and it didnt work. I also tried to construct the 2nd constructor inside the 1st one, but also didn't work. any idea?
thanks before