Error creating "Wait 1 second" in Javascript, inserts 0.1 second instead

uArm Serial No.:UARM05051705CA V1
Firmware Version: 3.1.17
Operation System: Win10
uArm Controlling Method: uArm Studio/uArm

When I use a series of Wait blocks in blockly, several of the delays are 0.1 second (as seen in the javascriot) instead of a 1 second delay (see text in bold below). The code does not pause for a full second. I can’t seem to get rid of them. Is this an error writing the Javascript file?

Thanks;

Richard

await UArm.set_position({ “x”: 200, “y”: 0, “z”: 100 });

BlocklyLib.KeyPressEvent.addEventListener(65, async function() {
await UArm.set_position({ “x”: 200, “y”: 0, “z”: 150 });
await BlocklyLib.wait(1);
await UArm.base_turn({ “angle”: 60, “wait”: true });
await BlocklyLib.wait(0.1);
await BlocklyLib.wait(3);
await UArm.set_position({ “z”: 0 - 50, “relative”: true });
await BlocklyLib.wait(1);
await UArm.set_position({ “z”: 150, “relative”: true });
await BlocklyLib.wait(1);
await UArm.set_position({ “z”: 0 - 150, “relative”: true });
await BlocklyLib.wait(1);
await UArm.set_position({ “z”: 150, “relative”: true });
await BlocklyLib.wait(1);
await UArm.base_turn({ “angle”: 90, “wait”: true });
await BlocklyLib.wait(0.1);
await BlocklyLib.wait(1);
await UArm.base_turn({ “angle”: 120, “wait”: true });
await BlocklyLib.wait(0.1);
await BlocklyLib.wait(1);
await UArm.set_position({ “z”: 0 - 50, “relative”: true });
await BlocklyLib.wait(1);
await UArm.set_position({ “z”: 150, “relative”: true });
await BlocklyLib.wait(1);
await UArm.set_position({ “z”: 0 - 50, “relative”: true });
await BlocklyLib.wait(1);
await UArm.set_position({ “z”: 150, “relative”: true });
await BlocklyLib.wait(1);
await UArm.base_turn({ “angle”: 90, “wait”: true });
await BlocklyLib.wait(0.1);
});
}());

UFACTORY Website
Official Store
uArm User Facebook Group

Feedback:
English Channel
中文通道

Hi @Richard_Siderits

Do you mean that your command is wait 1 sec but it turned out to be wait0.1?