blocks: fix setpoint block

This commit is contained in:
Oleg Kalachev
2020-10-01 22:19:39 +03:00
parent d52175bb30
commit 2f6d9639c1

View File

@@ -284,7 +284,7 @@ Blockly.Python.setpoint = function(block) {
} else if (type == 'RATES') {
rosDefinitions.setRates = true;
simpleOffboard();
return `set_rate(pitch=${pitch}, roll=${roll}, yaw=${yaw}, thrust=${thrust})\n`;
return `set_rates(pitch_rate=${pitch}, roll_rate=${roll}, yaw_rate=${yaw}, thrust=${thrust})\n`;
}
}