diff --git a/ctrlTerm/commandTerm.jar b/ctrlTerm/commandTerm.jar index a4f6a3d..6e3fd56 100644 Binary files a/ctrlTerm/commandTerm.jar and b/ctrlTerm/commandTerm.jar differ diff --git a/ctrlTerm/src/ControlTerminal/PlaneContainer.java b/ctrlTerm/src/ControlTerminal/PlaneContainer.java index ba82d67..60bb4a3 100644 --- a/ctrlTerm/src/ControlTerminal/PlaneContainer.java +++ b/ctrlTerm/src/ControlTerminal/PlaneContainer.java @@ -47,11 +47,21 @@ public class PlaneContainer { //System.out.println("Processing "+nbrPlane+" planes"); if(this.expectedFlags != flag){ - System.out.println("\033[5;37;41m Plane could not apply data \033[0m"); + if((this.expectedFlags&(byte)0x02) == 2 && (flag&(byte)0x02) != 2){ + System.out.println("\033[5;37;41m Could not apply cap \033[0m"); + } + if((this.expectedFlags&(byte)0x04) == 4 && (flag&(byte)0x04) != 4){ + System.out.println("\033[5;37;41m Could not apply speed \033[0m"); + } + if((this.expectedFlags&(byte)0x08) == 8 && (flag&(byte)0x08) != 8){ + System.out.println("\033[5;37;41m Could not apply alt \033[0m"); + } + System.out.println("\033[5;37;41m One or more fields could not be updated \033[0m"); if((flag&(byte)0x10) == 1){ System.out.println("\033[5;37;41m Plane crashed gracefully \033[0m"); } try { + this.expectedFlags = 0x01; Thread.sleep(2000); } catch (InterruptedException e) { // TODO Auto-generated catch block