Finite State Machine for Astra sw