Image tracking processing

hi brother. when i try this code

          if (temp_angle != this_angle) 
          {
            //write the servo angle to the serial port
           // byte b1;
            b1 = (byte) this_angle;
            longAngle = this_angle;
            port.write(longAngle);            
            temp_angle = this_angle;
            //println(this_angle);
            //println(String.format("%6d %4d", this_angle, b1));
          }

the console write an error said
“The method write(byte[]) in the type Serial is not applicable for the arguments (long)”

and when i write these part

      if (temp_angle != this_angle) 
          {
            //write the servo angle to the serial port
           // byte b1;
            b1 = (byte) this_angle;
            longAngle = this_angle;
            port.write(this_angle);            
            temp_angle = this_angle;
            println(this_angle);
            //println(String.format("%6d %4d", this_angle, b1));
          }

there is no error in processing console but nothing sent to ard

In the first one above, longAngle is presumably declared as a long, and write() does not accept it. Clear enough, and you probably don’t need a long to reprisent the angle (0…359 unless you go around many many times).

The second should work, comment in the println there, to prove that code is executing, look at the RX light on Ard.