updated pxt references + hero banner
This commit is contained in:
		
							
								
								
									
										
											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.update": "Called on each behavior iteration even for suppresed behaviors",
 | 
			
		||||
  "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.start": "Starts the behavior control 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.setControlSaturation": "Sets the control saturation values",
 | 
			
		||||
  "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.setDerivativeFilter|block": "set %pid|derivative filter %N",
 | 
			
		||||
  "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.waitMicros|block": "wait (µs)%micros",
 | 
			
		||||
  "control|block": "control",
 | 
			
		||||
  "fieldeditors|block": "fieldeditors",
 | 
			
		||||
  "loops.forever|block": "forever",
 | 
			
		||||
  "loops.pause|block": "pause %pause=timePicker|ms",
 | 
			
		||||
  "loops|block": "loops",
 | 
			
		||||
 
 | 
			
		||||
@@ -17,7 +17,8 @@
 | 
			
		||||
        "control.cpp",
 | 
			
		||||
        "control.ts",
 | 
			
		||||
        "serial.cpp",
 | 
			
		||||
        "serial.ts"
 | 
			
		||||
        "serial.ts",
 | 
			
		||||
        "fieldeditors.ts"
 | 
			
		||||
    ],
 | 
			
		||||
    "testFiles": [
 | 
			
		||||
        "test.ts"
 | 
			
		||||
 
 | 
			
		||||
@@ -63,13 +63,13 @@
 | 
			
		||||
  "control|block": "control",
 | 
			
		||||
  "motors.Motor.angle|block": "%motor|angle",
 | 
			
		||||
  "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.tacho|block": "%motor|tacho",
 | 
			
		||||
  "motors.MotorBase.pauseUntilReady|block": "%motor|pause until ready",
 | 
			
		||||
  "motors.MotorBase.reset|block": "%motors|reset",
 | 
			
		||||
  "motors.MotorBase.setBrake|block": "set %motor|brake %brake",
 | 
			
		||||
  "motors.MotorBase.setReversed|block": "set %motor|reversed %reversed",
 | 
			
		||||
  "motors.MotorBase.setBrake|block": "set %motor|brake %brake=toggleOnOff",
 | 
			
		||||
  "motors.MotorBase.setReversed|block": "set %motor|reversed %reversed=toggleOnOff",
 | 
			
		||||
  "motors.MotorBase.setSpeed|block": "set %motor|speed to %speed=motorSpeedPicker|%",
 | 
			
		||||
  "motors.MotorBase.stop|block": "%motors|stop",
 | 
			
		||||
  "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) {
 | 
			
		||||
    setupThread(a);
 | 
			
		||||
}
 | 
			
		||||
 
 | 
			
		||||
@@ -161,8 +161,7 @@ namespace motors {
 | 
			
		||||
         * Sets the automatic brake on or off when the motor is off
 | 
			
		||||
         * @param brake a value indicating if the motor should break when off
 | 
			
		||||
         */
 | 
			
		||||
        //% blockId=outputMotorSetBrakeMode block="set %motor|brake %brake"
 | 
			
		||||
        //% brake.fieldEditor=toggleonoff
 | 
			
		||||
        //% blockId=outputMotorSetBrakeMode block="set %motor|brake %brake=toggleOnOff"
 | 
			
		||||
        //% weight=60 blockGap=8
 | 
			
		||||
        //% group="Move"
 | 
			
		||||
        setBrake(brake: boolean) {
 | 
			
		||||
@@ -173,8 +172,7 @@ namespace motors {
 | 
			
		||||
        /** 
 | 
			
		||||
         * Reverses the motor polarity
 | 
			
		||||
        */
 | 
			
		||||
        //% blockId=motorSetReversed block="set %motor|reversed %reversed"
 | 
			
		||||
        //% reversed.fieldEditor=toggleonoff
 | 
			
		||||
        //% blockId=motorSetReversed block="set %motor|reversed %reversed=toggleOnOff"
 | 
			
		||||
        //% weight=59 blockGap=8
 | 
			
		||||
        //% group="Move"
 | 
			
		||||
        setReversed(reversed: boolean) {
 | 
			
		||||
@@ -337,8 +335,7 @@ namespace motors {
 | 
			
		||||
         * Indicates if the motor speed should be regulated. Default is true.
 | 
			
		||||
         * @param value true for regulated motor
 | 
			
		||||
         */
 | 
			
		||||
        //% blockId=outputMotorSetRegulated block="set %motor|regulated %value"
 | 
			
		||||
        //% value.fieldEditor=toggleonoff
 | 
			
		||||
        //% blockId=outputMotorSetRegulated block="set %motor|regulated %value=toggleOnOff"
 | 
			
		||||
        //% weight=58
 | 
			
		||||
        //% group="Move"
 | 
			
		||||
        setRegulated(value: boolean) {
 | 
			
		||||
 
 | 
			
		||||
@@ -44,8 +44,8 @@
 | 
			
		||||
    "webfonts-generator": "^0.4.0"
 | 
			
		||||
  },
 | 
			
		||||
  "dependencies": {
 | 
			
		||||
    "pxt-common-packages": "0.17.1",
 | 
			
		||||
    "pxt-core": "3.0.14"
 | 
			
		||||
    "pxt-common-packages": "0.17.11",
 | 
			
		||||
    "pxt-core": "3.0.25"
 | 
			
		||||
  },
 | 
			
		||||
  "scripts": {
 | 
			
		||||
    "test": "node node_modules/pxt-core/built/pxt.js travis"
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user