@@ -84,29 +84,29 @@ Blockly.Python['xrp_setefforts'] = function (block) {
8484Blockly . Python [ 'xrp_turn' ] = function ( block ) {
8585 var value_angle = Blockly . Python . valueToCode ( block , 'angle' , Blockly . Python . ORDER_ATOMIC ) ;
8686 // TODO: Assemble Python into code variable.
87- var code = `drivetrain.go_turn (${ value_angle } )\n` ;
87+ var code = `drivetrain.turn (${ value_angle } )\n` ;
8888 return code ;
8989} ;
9090
9191Blockly . Python [ 'xrp_turn_effort' ] = function ( block ) {
9292 var value_angle = Blockly . Python . valueToCode ( block , 'angle' , Blockly . Python . ORDER_ATOMIC ) ;
9393 var value_effort = Blockly . Python . valueToCode ( block , 'effort' , Blockly . Python . ORDER_ATOMIC ) ;
94- var code = `drivetrain.go_turn (${ value_angle } , ${ value_effort } )\n` ;
94+ var code = `drivetrain.turn (${ value_angle } , ${ value_effort } )\n` ;
9595 return code ;
9696} ;
9797
9898Blockly . Python [ 'xrp_straight' ] = function ( block ) {
9999 var value_dist = Blockly . Python . valueToCode ( block , 'dist' , Blockly . Python . ORDER_ATOMIC ) ;
100100 // TODO: Assemble Python into code variable.
101- var code = `drivetrain.go_straight (${ value_dist } )\n` ;
101+ var code = `drivetrain.straight (${ value_dist } )\n` ;
102102 return code ;
103103} ;
104104
105105Blockly . Python [ 'xrp_straight_effort' ] = function ( block ) {
106106 var value_dist = Blockly . Python . valueToCode ( block , 'dist' , Blockly . Python . ORDER_ATOMIC ) ;
107107 var value_effort = Blockly . Python . valueToCode ( block , 'effort' , Blockly . Python . ORDER_ATOMIC ) ;
108108 // TODO: Assemble Python into code variable.
109- var code = `drivetrain.go_straight (${ value_dist } , ${ value_effort } )\n` ;
109+ var code = `drivetrain.straight (${ value_dist } , ${ value_effort } )\n` ;
110110 return code ;
111111} ;
112112
@@ -143,14 +143,14 @@ Blockly.Python['xrp_servo_deg'] = function (block) {
143143
144144Blockly . Python [ 'xrp_l_refl' ] = function ( block ) {
145145 // TODO: Assemble Python into code variable.
146- var code = `reflectance.get_left_reflectance ()` ;
146+ var code = `reflectance.get_left ()` ;
147147 // TODO: Change ORDER_NONE to the correct strength.
148148 return [ code , Blockly . Python . ORDER_NONE ] ;
149149} ;
150150
151151Blockly . Python [ 'xrp_r_refl' ] = function ( block ) {
152152 // TODO: Assemble Python into code variable.
153- var code = `reflectance.get_right_reflectance ()` ;
153+ var code = `reflectance.get_right ()` ;
154154 // TODO: Change ORDER_NONE to the correct strength.
155155 return [ code , Blockly . Python . ORDER_NONE ] ;
156156} ;
0 commit comments