// Fall down handler ONCALL:&:Gsensor_status:1:Ripristino:2 // System initialization SET:Power:1 POSE:AIBO:oStanding SET:Melody_id:0 :Start IF:Melody_id:=:49:THEN PUSH:0 CALL:Gestione_Movimento:1 ELSE IF:Melody_id:=:119:THEN PUSH:1 CALL:Gestione_Movimento:1 ELSE IF:Melody_id:=:56:THEN PUSH:2 CALL:Gestione_Movimento:1 ELSE IF:Melody_id:=:70:THEN PUSH:3 CALL:Gestione_Movimento:1 ELSE IF:Melody_id:=:63:THEN PUSH:4 CALL:Gestione_Movimento:1 ELSE IF:Melody_id:=:91:THEN PUSH:5 CALL:Gestione_Movimento:1 ELSE IF:Melody_id:=:98:THEN PUSH:6 CALL:Gestione_Movimento:1 ENDIF ENDIF ENDIF ENDIF ENDIF ENDIF ENDIF SET:Melody_id:0 WAIT WAIT:2000 GO:Start :Gestione_Movimento ARG:TipoMovimento SWITCH:TipoMovimento CASE:0:MOVE:LEGS:WALK:0:1:1 CASE:1:PLAY:LEGS:WSToStand CASE:2:MOVE:LEGS:WALK:0:6:1 CASE:3:MOVE:LEGS:WALK:13:: CASE:4:MOVE:LEGS:WALK:12:: CASE:5:PLAY:ESC:BANZ_SIT3_C CASE:6:GO:Spegnimento RETURN :Ripristino QUIT:AIBO MOVE:AIBO:ReactiveGU WAIT RESUME :Spegnimento POSE:AIBO:slp_slp WAIT HALT