Cannot add sensors to Dataframe, maybe a bug? #287
Unanswered
FergusCoulter
asked this question in
Q&A
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Hi,
I'm currently prototyping a positioning system using OpenHPS and for have so far been really enjoying it!
However, I have hit a hurdle while trying to add sensors to a DataFrame in a processing node. I wasn't sure if it was a bug or if I was just being stupid though, so I didn't want to create an issue for it.
` private async commitFrame(obj: DataObject) {
let frame = new DataFrame(obj)
let sensorData: SensorData = await this._imu.readData(this._bus);
On both line
frame.addObject(acc)andframe.addSensor(gyro)I am getting a typescript error, stating that the sensors are of incompatible types.I had a look at the code for adding sensors and saw that it was just adding an object , hence trying it with
addObject()too.The error I am getting is
Any ideas what this might be?
Cheers!
Beta Was this translation helpful? Give feedback.
All reactions