Index: mttroot/mtt/lib/examples/Hybrid/BouncingRod/BouncingRod_logic.txt ================================================================== --- mttroot/mtt/lib/examples/Hybrid/BouncingRod/BouncingRod_logic.txt +++ mttroot/mtt/lib/examples/Hybrid/BouncingRod/BouncingRod_logic.txt @@ -4,14 +4,13 @@ ############################################################### ## Version control history ############################################################### ## $Id$ ## $Log$ +## Revision 1.1 2000/12/28 17:45:59 peterg +## To RCS +## ############################################################### # Set the switches -## Removed by MTT on Mon Dec 4 08:30:13 GMT 2000: bouncingrod_groundl= (x(3)<=0); -## Removed by MTT on Mon Dec 4 08:30:13 GMT 2000: bouncingrod_groundr= (x(4)<=0); - -bouncingrod_groundl_1_mtt_switch_logic = (x(3)<=0); -bouncingrod_groundr_1_mtt_switch_logic = (x(4)<=0); - +bouncingrod_groundl_mtt_switch_logic = (bouncingrod_intfl_mttc <= 0); +bouncingrod_groundr_mtt_switch_logic = (bouncingrod_intfr_mttc <= 0); Index: mttroot/mtt/lib/examples/Hybrid/BouncingRod/BouncingRod_state.txt ================================================================== --- mttroot/mtt/lib/examples/Hybrid/BouncingRod/BouncingRod_state.txt +++ mttroot/mtt/lib/examples/Hybrid/BouncingRod/BouncingRod_state.txt @@ -3,31 +3,24 @@ ############################################################### ## Version control history ############################################################### ## $Id$ ## $Log$ +## Revision 1.2 2002/05/10 12:38:11 gawthrop +## Updated to new format +## ## Revision 1.1 2000/12/28 17:45:59 peterg ## To RCS ## ############################################################### # Set the states -## Removed by MTT on Mon Dec 4 08:27:53 GMT 2000: mttx(1) = 0.0; # MTT_SWITCH (BouncingRod_groundL) -## Removed by MTT on Mon Dec 4 08:27:53 GMT 2000: mttx(2) = 0.0; # MTT_SWITCH (BouncingRod_groundR) -## Removed by MTT on Mon Dec 4 08:27:53 GMT 2000: mttx(3) = 10+sin(pi/4); # 3 (BouncingRod_intfL) -## Removed by MTT on Mon Dec 4 08:27:53 GMT 2000: mttx(4) = 10-sin(pi/4); # 3 (BouncingRod_intfR) -## Removed by MTT on Mon Dec 4 08:27:53 GMT 2000: mttx(5) = 0.0; # J (BouncingRod_rod) -## Removed by MTT on Mon Dec 4 08:27:53 GMT 2000: mttx(6) = 0.0; # m_x (BouncingRod_rod) -## Removed by MTT on Mon Dec 4 08:27:53 GMT 2000: mttx(7) = 0.0; # m_y (BouncingRod_rod) -## Removed by MTT on Mon Dec 4 08:27:53 GMT 2000: mttx(8) = pi/4; # 3 (BouncingRod_rod_th) -bouncingrod_groundl_1_mtt_switch = 0.0; # Added by MTT on Mon Dec 04 08:27:59 GMT 2000 -bouncingrod_groundr_1_mtt_switch = 0.0; # Added by MTT on Mon Dec 04 08:27:59 GMT 2000 -## Removed by MTT on Fri May 10 13:32:17 BST 2002: bouncingrod_intfl_1_mtt3 = 10+sin(pi/4); -## Removed by MTT on Fri May 10 13:32:17 BST 2002: bouncingrod_intfr_1_mtt3 = 10-sin(pi/4); -bouncingrod_rod_1_j = 0.0; # Added by MTT on Mon Dec 04 08:27:59 GMT 2000 -bouncingrod_rod_1_m_x = 0.0; # Added by MTT on Mon Dec 04 08:27:59 GMT 2000 -bouncingrod_rod_1_m_y = 0.0; # Added by MTT on Mon Dec 04 08:27:59 GMT 2000 -## Removed by MTT on Fri May 10 13:32:17 BST 2002: bouncingrod_rod_1_th_1_mtt3 = pi/4; -bouncingrod_intfl_1_x = 0.0; # Added by MTT on Fri May 10 13:32:24 BST 2002 -bouncingrod_intfr_1_x = 0.0; # Added by MTT on Fri May 10 13:32:24 BST 2002 -bouncingrod_rod_1_th_1_x = 0.0; # Added by MTT on Fri May 10 13:32:24 BST 2002 + +bouncingrod_groundl_mtt_switch = 0.0; +bouncingrod_groundr_mtt_switch = 0.0; +bouncingrod_intfl_mttc = 10 + sin(pi/4); +bouncingrod_intfr_mttc = 10 - sin(pi/4); +bouncingrod_rod_j = 0.0; +bouncingrod_rod_m_x = 0.0; +bouncingrod_rod_m_y = 0.0; +bouncingrod_rod_th_mttc = pi/4;