updated pxt references + hero banner
This commit is contained in:
parent
d371225066
commit
3f50b5c39a
BIN
docs/static/hero.png
vendored
BIN
docs/static/hero.png
vendored
Binary file not shown.
Before Width: | Height: | Size: 40 KiB After Width: | Height: | Size: 585 KiB |
@ -1,5 +1,5 @@
|
|||||||
{
|
{
|
||||||
"automation": "Automation, process control and robotic controllers\n\nProcess control, automation, robotics AI",
|
"automation": "Automation, process control and robotic controllers",
|
||||||
"automation.Behavior": "A behavior",
|
"automation.Behavior": "A behavior",
|
||||||
"automation.Behavior.update": "Called on each behavior iteration even for suppresed behaviors",
|
"automation.Behavior.update": "Called on each behavior iteration even for suppresed behaviors",
|
||||||
"automation.Behavior.update|param|elapsed": "milli seconds since last call",
|
"automation.Behavior.update|param|elapsed": "milli seconds since last call",
|
||||||
@ -8,6 +8,7 @@
|
|||||||
"automation.BehaviorManager.add|param|behavior": "the behavior to add",
|
"automation.BehaviorManager.add|param|behavior": "the behavior to add",
|
||||||
"automation.BehaviorManager.start": "Starts the behavior control loop",
|
"automation.BehaviorManager.start": "Starts the behavior control loop",
|
||||||
"automation.BehaviorManager.stop": "Stops the execution loop",
|
"automation.BehaviorManager.stop": "Stops the execution loop",
|
||||||
|
"automation.PIDController": "A PID controller.\n* Reference: Feedback System, Karl Johan Astrom & Rickard M. Murry",
|
||||||
"automation.PIDController.compute": "Computes the output based on the system state",
|
"automation.PIDController.compute": "Computes the output based on the system state",
|
||||||
"automation.PIDController.setControlSaturation": "Sets the control saturation values",
|
"automation.PIDController.setControlSaturation": "Sets the control saturation values",
|
||||||
"automation.PIDController.setControlSaturation|param|high": "highest control value, eg: 100",
|
"automation.PIDController.setControlSaturation|param|high": "highest control value, eg: 100",
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
{
|
{
|
||||||
"automation.PIDController.compute|block": "%pid|compute for timestep %timestep|(s) at state %y",
|
"automation.PIDController.compute|block": "%pid|compute for timestep %timestep|(ms) at state %y",
|
||||||
"automation.PIDController.setControlSaturation|block": "set %pid|control saturation from %low|to %high",
|
"automation.PIDController.setControlSaturation|block": "set %pid|control saturation from %low|to %high",
|
||||||
"automation.PIDController.setDerivativeFilter|block": "set %pid|derivative filter %N",
|
"automation.PIDController.setDerivativeFilter|block": "set %pid|derivative filter %N",
|
||||||
"automation.PIDController.setGains|block": "set %pid|gains kp %kp|ki %ki|kd %kd",
|
"automation.PIDController.setGains|block": "set %pid|gains kp %kp|ki %ki|kd %kd",
|
||||||
|
@ -29,6 +29,7 @@
|
|||||||
"control.waitForEvent|block": "wait for event|from %src|with value %value",
|
"control.waitForEvent|block": "wait for event|from %src|with value %value",
|
||||||
"control.waitMicros|block": "wait (µs)%micros",
|
"control.waitMicros|block": "wait (µs)%micros",
|
||||||
"control|block": "control",
|
"control|block": "control",
|
||||||
|
"fieldeditors|block": "fieldeditors",
|
||||||
"loops.forever|block": "forever",
|
"loops.forever|block": "forever",
|
||||||
"loops.pause|block": "pause %pause=timePicker|ms",
|
"loops.pause|block": "pause %pause=timePicker|ms",
|
||||||
"loops|block": "loops",
|
"loops|block": "loops",
|
||||||
|
@ -17,7 +17,8 @@
|
|||||||
"control.cpp",
|
"control.cpp",
|
||||||
"control.ts",
|
"control.ts",
|
||||||
"serial.cpp",
|
"serial.cpp",
|
||||||
"serial.ts"
|
"serial.ts",
|
||||||
|
"fieldeditors.ts"
|
||||||
],
|
],
|
||||||
"testFiles": [
|
"testFiles": [
|
||||||
"test.ts"
|
"test.ts"
|
||||||
|
@ -63,13 +63,13 @@
|
|||||||
"control|block": "control",
|
"control|block": "control",
|
||||||
"motors.Motor.angle|block": "%motor|angle",
|
"motors.Motor.angle|block": "%motor|angle",
|
||||||
"motors.Motor.clearCounts|block": "%motor|clear counts",
|
"motors.Motor.clearCounts|block": "%motor|clear counts",
|
||||||
"motors.Motor.setRegulated|block": "set %motor|regulated %value",
|
"motors.Motor.setRegulated|block": "set %motor|regulated %value=toggleOnOff",
|
||||||
"motors.Motor.speed|block": "%motor|speed",
|
"motors.Motor.speed|block": "%motor|speed",
|
||||||
"motors.Motor.tacho|block": "%motor|tacho",
|
"motors.Motor.tacho|block": "%motor|tacho",
|
||||||
"motors.MotorBase.pauseUntilReady|block": "%motor|pause until ready",
|
"motors.MotorBase.pauseUntilReady|block": "%motor|pause until ready",
|
||||||
"motors.MotorBase.reset|block": "%motors|reset",
|
"motors.MotorBase.reset|block": "%motors|reset",
|
||||||
"motors.MotorBase.setBrake|block": "set %motor|brake %brake",
|
"motors.MotorBase.setBrake|block": "set %motor|brake %brake=toggleOnOff",
|
||||||
"motors.MotorBase.setReversed|block": "set %motor|reversed %reversed",
|
"motors.MotorBase.setReversed|block": "set %motor|reversed %reversed=toggleOnOff",
|
||||||
"motors.MotorBase.setSpeed|block": "set %motor|speed to %speed=motorSpeedPicker|%",
|
"motors.MotorBase.setSpeed|block": "set %motor|speed to %speed=motorSpeedPicker|%",
|
||||||
"motors.MotorBase.stop|block": "%motors|stop",
|
"motors.MotorBase.stop|block": "%motors|stop",
|
||||||
"motors.SynchedMotorPair.steer|block": "steer %chassis|turn ratio %turnRatio=motorTurnRatioPicker|speed %speed=motorSpeedPicker|%",
|
"motors.SynchedMotorPair.steer|block": "steer %chassis|turn ratio %turnRatio=motorTurnRatioPicker|speed %speed=motorSpeedPicker|%",
|
||||||
|
@ -271,6 +271,10 @@ void setupThread(Action a, TValue arg = 0, void (*runner)(Thread *) = NULL, TVal
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
void releaseFiber() {
|
||||||
|
// called from main in pxt.cpp
|
||||||
|
}
|
||||||
|
|
||||||
void runInParallel(Action a) {
|
void runInParallel(Action a) {
|
||||||
setupThread(a);
|
setupThread(a);
|
||||||
}
|
}
|
||||||
|
@ -161,8 +161,7 @@ namespace motors {
|
|||||||
* Sets the automatic brake on or off when the motor is off
|
* Sets the automatic brake on or off when the motor is off
|
||||||
* @param brake a value indicating if the motor should break when off
|
* @param brake a value indicating if the motor should break when off
|
||||||
*/
|
*/
|
||||||
//% blockId=outputMotorSetBrakeMode block="set %motor|brake %brake"
|
//% blockId=outputMotorSetBrakeMode block="set %motor|brake %brake=toggleOnOff"
|
||||||
//% brake.fieldEditor=toggleonoff
|
|
||||||
//% weight=60 blockGap=8
|
//% weight=60 blockGap=8
|
||||||
//% group="Move"
|
//% group="Move"
|
||||||
setBrake(brake: boolean) {
|
setBrake(brake: boolean) {
|
||||||
@ -173,8 +172,7 @@ namespace motors {
|
|||||||
/**
|
/**
|
||||||
* Reverses the motor polarity
|
* Reverses the motor polarity
|
||||||
*/
|
*/
|
||||||
//% blockId=motorSetReversed block="set %motor|reversed %reversed"
|
//% blockId=motorSetReversed block="set %motor|reversed %reversed=toggleOnOff"
|
||||||
//% reversed.fieldEditor=toggleonoff
|
|
||||||
//% weight=59 blockGap=8
|
//% weight=59 blockGap=8
|
||||||
//% group="Move"
|
//% group="Move"
|
||||||
setReversed(reversed: boolean) {
|
setReversed(reversed: boolean) {
|
||||||
@ -337,8 +335,7 @@ namespace motors {
|
|||||||
* Indicates if the motor speed should be regulated. Default is true.
|
* Indicates if the motor speed should be regulated. Default is true.
|
||||||
* @param value true for regulated motor
|
* @param value true for regulated motor
|
||||||
*/
|
*/
|
||||||
//% blockId=outputMotorSetRegulated block="set %motor|regulated %value"
|
//% blockId=outputMotorSetRegulated block="set %motor|regulated %value=toggleOnOff"
|
||||||
//% value.fieldEditor=toggleonoff
|
|
||||||
//% weight=58
|
//% weight=58
|
||||||
//% group="Move"
|
//% group="Move"
|
||||||
setRegulated(value: boolean) {
|
setRegulated(value: boolean) {
|
||||||
|
@ -44,8 +44,8 @@
|
|||||||
"webfonts-generator": "^0.4.0"
|
"webfonts-generator": "^0.4.0"
|
||||||
},
|
},
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"pxt-common-packages": "0.17.1",
|
"pxt-common-packages": "0.17.11",
|
||||||
"pxt-core": "3.0.14"
|
"pxt-core": "3.0.25"
|
||||||
},
|
},
|
||||||
"scripts": {
|
"scripts": {
|
||||||
"test": "node node_modules/pxt-core/built/pxt.js travis"
|
"test": "node node_modules/pxt-core/built/pxt.js travis"
|
||||||
|
Loading…
Reference in New Issue
Block a user