删除S3灯颜色
统一S3和mini_g2 的rfid
增加 角度弧度转换 所有板
增加 S3根据气压获取海拔
This commit is contained in:
Irene-Maxine
2025-03-26 19:24:36 +08:00
parent 3f41008f21
commit f835dd2f64
25 changed files with 379 additions and 80 deletions

View File

@@ -674,4 +674,28 @@ export const generate_cartesian_product = {
this.setTitleValue(newName, 'VAR');
}
}
}
}
export const math_radian_to_degree = {
init: function () {
this.setColour(MATH_HUE);
this.setOutput(true)
this.appendValueInput('VAR')
.appendField(Blockly.Msg.MIXLY_SET_RADIAN);
this.appendDummyInput()
.appendField(Blockly.Msg.MIXLY_TRANS_TO_ANGLE);
this.setInputsInline(true);
}
};
export const math_degree_to_radian = {
init: function () {
this.setColour(MATH_HUE);
this.setOutput(true)
this.appendValueInput('VAR')
.appendField(Blockly.Msg.MIXLY_SET_DEGREE);
this.appendDummyInput()
.appendField(Blockly.Msg.MIXLY_TRANS_TO_RADIAN);
this.setInputsInline(true);
}
};