updated api to align with labview

This commit is contained in:
Peli de Halleux
2018-01-10 22:29:35 -08:00
parent 54cb076002
commit a4164470d8
5 changed files with 18 additions and 13 deletions

View File

@ -111,7 +111,7 @@ namespace motors {
* Stops all motors
*/
//% blockId=motorStopAll block="stop all motors"
//% weight=5
//% weight=1
//% group="Move"
export function stopAllMotors() {
const b = mkCmd(Output.ALL, DAL.opOutputStop, 0)
@ -198,7 +198,9 @@ namespace motors {
/**
* Resets the motor(s).
*/
//%
//% weight=5
//% group="Move"
//% blockId=motorReset block="%motors|reset"
reset() {
this.init();
reset(this._port);