The issue below (#23) has not been resolved.
And even though it is declared as below in shims.d.ts, it still shows 'of undefined', not 'of dynamixel' ...
Strangely, despite this error, the board works fine.
declare namespace dynamixel {
/**
* Opens a DYNAMIXEL communication driver
*/
//% shim=dynamixel::internalCreateDXLDevice
function internalCreateDXLDevice(tx: DigitalInOutPin, rx: DigitalInOutPin, dir: DigitalInOutPin, id: int32): DynamixelDevice;
}
And, the below .png file is the example code with the above error.
Your link is not a shim, but a sim file (for simulation). Isn't it right to refer to shims.d.ts for shim?
Of course, I haven't implemented simulation yet, so when implementing sim it's right to refer to the file you gave the link to.
I've also seen errors related to simulation, so I know I need to implement sim someday. However, the current error is about shim.
I think it was implemented properly except for simulation, isn't it?
Like docs, should it be uploaded to the cloud to be recognized as a namespace called dynamixel, not undefined?
If so, please merge. I will implement the simulator later.
@pelikhan,
The issue below (#23) has not been resolved. And even though it is declared as below in shims.d.ts, it still shows 'of undefined', not 'of dynamixel' ... Strangely, despite this error, the board works fine.
And, the below .png file is the example code with the above error.
Originally posted by @OpusK in https://github.com/microsoft/pxt-robotis/pull/23
I think I wrote a shim through the code above as per the manual.
Your link is not a shim, but a sim file (for simulation). Isn't it right to refer to shims.d.ts for shim? Of course, I haven't implemented simulation yet, so when implementing sim it's right to refer to the file you gave the link to. I've also seen errors related to simulation, so I know I need to implement sim someday. However, the current error is about shim.
I think it was implemented properly except for simulation, isn't it? Like docs, should it be uploaded to the cloud to be recognized as a namespace called dynamixel, not undefined? If so, please merge. I will implement the simulator later.
Originally posted by @OpusK in https://github.com/microsoft/pxt-robotis/pull/23