@@ -84,29 +84,29 @@ Blockly.Python['xrp_setefforts'] = function (block) {
84
84
Blockly . Python [ 'xrp_turn' ] = function ( block ) {
85
85
var value_angle = Blockly . Python . valueToCode ( block , 'angle' , Blockly . Python . ORDER_ATOMIC ) ;
86
86
// TODO: Assemble Python into code variable.
87
- var code = `drivetrain.go_turn (${ value_angle } )\n` ;
87
+ var code = `drivetrain.turn (${ value_angle } )\n` ;
88
88
return code ;
89
89
} ;
90
90
91
91
Blockly . Python [ 'xrp_turn_effort' ] = function ( block ) {
92
92
var value_angle = Blockly . Python . valueToCode ( block , 'angle' , Blockly . Python . ORDER_ATOMIC ) ;
93
93
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` ;
95
95
return code ;
96
96
} ;
97
97
98
98
Blockly . Python [ 'xrp_straight' ] = function ( block ) {
99
99
var value_dist = Blockly . Python . valueToCode ( block , 'dist' , Blockly . Python . ORDER_ATOMIC ) ;
100
100
// TODO: Assemble Python into code variable.
101
- var code = `drivetrain.go_straight (${ value_dist } )\n` ;
101
+ var code = `drivetrain.straight (${ value_dist } )\n` ;
102
102
return code ;
103
103
} ;
104
104
105
105
Blockly . Python [ 'xrp_straight_effort' ] = function ( block ) {
106
106
var value_dist = Blockly . Python . valueToCode ( block , 'dist' , Blockly . Python . ORDER_ATOMIC ) ;
107
107
var value_effort = Blockly . Python . valueToCode ( block , 'effort' , Blockly . Python . ORDER_ATOMIC ) ;
108
108
// 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` ;
110
110
return code ;
111
111
} ;
112
112
@@ -143,14 +143,14 @@ Blockly.Python['xrp_servo_deg'] = function (block) {
143
143
144
144
Blockly . Python [ 'xrp_l_refl' ] = function ( block ) {
145
145
// TODO: Assemble Python into code variable.
146
- var code = `reflectance.get_left_reflectance ()` ;
146
+ var code = `reflectance.get_left ()` ;
147
147
// TODO: Change ORDER_NONE to the correct strength.
148
148
return [ code , Blockly . Python . ORDER_NONE ] ;
149
149
} ;
150
150
151
151
Blockly . Python [ 'xrp_r_refl' ] = function ( block ) {
152
152
// TODO: Assemble Python into code variable.
153
- var code = `reflectance.get_right_reflectance ()` ;
153
+ var code = `reflectance.get_right ()` ;
154
154
// TODO: Change ORDER_NONE to the correct strength.
155
155
return [ code , Blockly . Python . ORDER_NONE ] ;
156
156
} ;
0 commit comments