Skip to content

Commit

Permalink
commit
Browse files Browse the repository at this point in the history
  • Loading branch information
puttley committed Aug 29, 2023
1 parent b521670 commit dabe291
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 9 deletions.
2 changes: 1 addition & 1 deletion index.html
Original file line number Diff line number Diff line change
Expand Up @@ -246,7 +246,7 @@ <h1><!--a href="https://www.pitsco.com"> PITSCO LUMA Robot</a-->
<block type="motor_rotate_target">
<value name="count">
<shadow type="math_number">
<field name="NUM">1440</field>
<field name="NUM">2200</field>
</shadow>
</value>
<value name="speed">
Expand Down
6 changes: 1 addition & 5 deletions msl-3.xml
Original file line number Diff line number Diff line change
Expand Up @@ -2022,16 +2022,12 @@
<field name="TEXT">ToF Sensor</field>
<next>
<block type="field_dropdown" id="[$KPM4TWNJVm~dapTKC;">
<mutation options="[&quot;text&quot;,&quot;text&quot;,&quot;text&quot;,&quot;text&quot;]"></mutation>
<mutation options="[&quot;text&quot;,&quot;text&quot;]"></mutation>
<field name="FIELDNAME">value</field>
<field name="USER0">1</field>
<field name="CPU0">1</field>
<field name="USER1">2</field>
<field name="CPU1">2</field>
<field name="USER2">3</field>
<field name="CPU2">3</field>
<field name="USER3">4</field>
<field name="CPU3">4</field>
</block>
</next>
</block>
Expand Down
6 changes: 3 additions & 3 deletions msl_blocks.js
Original file line number Diff line number Diff line change
Expand Up @@ -380,7 +380,7 @@ Blockly.Blocks['set_drive_speed'] = {
Blockly.Blocks['start_driving'] = {
init: function() {
this.appendDummyInput()
.appendField("drive")
.appendField("start driving")
.appendField(new Blockly.FieldDropdown([["forward","forward"], ["reverse","reverse"], ["pivot right","pivotR"], ["pivot left","pivotL"], ["spin right","spinR"], ["spin left","spinL"]]), "action");
this.appendValueInput("speed")
.setCheck("Number")
Expand Down Expand Up @@ -533,8 +533,8 @@ Blockly.Blocks['get_encoder'] = {
Blockly.Blocks['get_lidar'] = {
init: function() {
this.appendDummyInput()
.appendField("ToF sensor")
.appendField(new Blockly.FieldDropdown([["1","1"], ["2","2"], ["3","3"], ["4","4"]]), "value");
.appendField("ToF Sensor")
.appendField(new Blockly.FieldDropdown([["1","1"], ["2","2"]]), "value");
this.setInputsInline(true);
this.setOutput(true, null);
this.setColour("#ec5b13");
Expand Down

0 comments on commit dabe291

Please sign in to comment.