Implementing emergencystop, with local variable stateEmergencyStop in panel.c

Fixed indentation