Also … while I have you here
When attempting to initialise the distance sensor (which is plugged in already in my I2C port:
this.distanceSensor = this.gpg.initDistanceSensor();
I am getting the below:
Dexter Industries GoPiGo3 0.3.4
Sensor init
Pin mode OUTPUT
Port Id -2
TypeError: Cannot read property 'setGroveType' of undefined
at DistanceSensor.Sensor (/home/pi/roveros/node_modules/node-gopigo3/lib/components/sensor.js:56:29)
at new DistanceSensor (/home/pi/roveros/node_modules/node-gopigo3/lib/components/distanceSensor.js:41:122)
at EasyGoPiGo3.initDistanceSensor (/home/pi/roveros/node_modules/node-gopigo3/lib/easyGopigo3.js:415:20)
at new Rover (/home/pi/roveros/libs/rover.js:16:44)
at Object.<anonymous> (/home/pi/roveros/index.js:7:13)
at Module._compile (module.js:624:30)
at Object.Module._extensions..js (module.js:635:10)
at Module.load (module.js:545:32)
at tryModuleLoad (module.js:508:12)
at Function.Module._load (module.js:500:3)
TypeError: Cannot read property 'device' of undefined
at new DexterI2C (/home/pi/roveros/node_modules/di-sensors/lib/sensors/dexterI2c.js:23:27)
at VL53L0X.Sensor (/home/pi/roveros/node_modules/di-sensors/lib/sensors/base/sensor.js:33:22)
at new VL53L0X (/home/pi/roveros/node_modules/di-sensors/lib/sensors/VL53L0X.js:30:108)
at new DistanceSensor (/home/pi/roveros/node_modules/di-sensors/lib/sensors/distanceSensor.js:22:23)
at new DistanceSensor (/home/pi/roveros/node_modules/node-gopigo3/lib/components/distanceSensor.js:47:36)
at EasyGoPiGo3.initDistanceSensor (/home/pi/roveros/node_modules/node-gopigo3/lib/easyGopigo3.js:415:20)
at new Rover (/home/pi/roveros/libs/rover.js:16:44)
at Object.<anonymous> (/home/pi/roveros/index.js:7:13)
at Module._compile (module.js:624:30)
at Object.Module._extensions..js (module.js:635:10)