tpmkms 9.6.3-beta.27 → 9.6.3-beta.29

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/common/actions.js CHANGED
@@ -32,6 +32,7 @@ const config = {
32
32
  },
33
33
  {
34
34
  id: 'delayTime',
35
+ where: where(),
35
36
  after: ['doAction'],
36
37
  level: 1,
37
38
  bridge: `{
@@ -47,12 +48,12 @@ const config = {
47
48
  action: "(@<= 'action')",
48
49
  },
49
50
  },
50
- semantic: async ({context, fragments, e, toFinalValue, kms}) => {
51
+ semantic: async ({context, fragments, e, s, toFinalValue, kms}) => {
51
52
  const instantiation = await fragments("quantity in milliseconds", { quantity: context.delayTime })
52
53
  const result = await e(instantiation)
53
54
  const milliseconds = toFinalValue(toFinalValue(result).amount)
54
- kms.time.api.sleep(milliseconds)
55
- await e(context.action)
55
+ await kms.time.api.sleep(milliseconds)
56
+ await s(context.action)
56
57
  }
57
58
  },
58
59
  {
package/common/drone.js CHANGED
@@ -16,6 +16,10 @@ const { rotateDelta, degreesToRadians, radiansToDegrees, cartesianToPolar, small
16
16
  /*
17
17
  NEED TO CHECK ON ACTUAL DRONE
18
18
 
19
+ again 2 times
20
+ 2 more times
21
+ do that again 3 times
22
+
19
23
  do route 1 skipping point 2
20
24
 
21
25
  base <number> is a pattern for base names
@@ -705,7 +709,11 @@ class API {
705
709
 
706
710
  async pauseDrone(durationInSeconds, options) {
707
711
  this._objects.history.push({ marker: 'history', pause: durationInSeconds, time: this.now(true, durationInSeconds*1000), ...options })
708
- this.testDate = new Date(this.testDate.getTime() + (durationInSeconds-1)*1000)
712
+ if (false) {
713
+ this.testDate = new Date(this.testDate.getTime() + (durationInSeconds-1)*1000)
714
+ } else {
715
+ this.testDate = new Date(this.now(false, 0).getTime() + (durationInSeconds-1)*1000)
716
+ }
709
717
  }
710
718
 
711
719
  // meters per second
package/package.json CHANGED
@@ -392,8 +392,8 @@
392
392
  "scriptjs": "^2.5.9",
393
393
  "table": "^6.7.1",
394
394
  "uuid": "^9.0.0",
395
- "theprogrammablemind": "9.6.3-beta.27"
395
+ "theprogrammablemind": "9.6.3-beta.29"
396
396
  },
397
- "version": "9.6.3-beta.27",
397
+ "version": "9.6.3-beta.29",
398
398
  "license": "UNLICENSED"
399
399
  }