legoboost.vwf.json 2.0 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273
  1. {
  2. "extends": "proxy/aframe/aentity.vwf",
  3. "type": "legoboost",
  4. "properties": {
  5. "boostID": {
  6. "set": "this.value = value; this.boostID = value; this.displayName = value",
  7. "get": "return this.value"
  8. },
  9. "led": null,
  10. "rawLed": null,
  11. "roll": {
  12. "set": "this.setRoll(value)",
  13. "get": "return this.getRoll()"
  14. },
  15. "pitch": {
  16. "set": "this.setPitch(value)",
  17. "get": "return this.getPitch()"
  18. },
  19. "motorA": null,
  20. "motorB": null,
  21. "motorC": null,
  22. "rawMotorA": null,
  23. "rawMotorB": null,
  24. "rawMotorC": null,
  25. "tracking": null
  26. },
  27. "methods": {
  28. "createVisual": {},
  29. "gotDeviceInfo": {
  30. "parameters": ["info", "key"],
  31. "type": "application/javascript"
  32. },
  33. "getDeviceInfo": {
  34. "parameters": ["value"],
  35. "body": "\/\/get device info \n",
  36. "type": "application/javascript"
  37. },
  38. "setLed": {
  39. "parameters": ["value", "sync"],
  40. "type": "application/javascript"
  41. },
  42. "setDelay": {
  43. "parameters": ["value", "sync"],
  44. "type": "application/javascript"
  45. },
  46. "sat_setLed": {
  47. "parameters": ["value"]
  48. },
  49. "sat_setDelay": {
  50. "parameters": ["value"]
  51. },
  52. "setMotorAngle":{
  53. "parameters": ["port", "angle", "dutyCycle", "sync"]
  54. },
  55. "sat_setMotorAngle":{
  56. "parameters": ["port", "angle", "dutyCycle"]
  57. },
  58. "setVisualMotorRotation":{
  59. "parameters": ["port", "angle", "dutyCycle"]
  60. },
  61. "setVisualLed":{
  62. "parameters": ["value"]
  63. },
  64. "getRoll":{},
  65. "setRoll":{},
  66. "getPitch":{},
  67. "setPitch":{},
  68. "trackLego":{}
  69. },
  70. "scripts": {
  71. "source": "legoboost.js"
  72. }
  73. }