Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
const { adapters } = require('slcan');
const { dataTypes } = require('uavcan');
let body = {
dataTypeID: 'uavcan.protocol.param.GetSet',
value: {
index: 0,
value: {
integerValue: 123
},
nameStr: ""
},
destinationNodeID: 111
};
setInterval(()=>{
adapters['/dev/tty.usbmodem204F3261564D1'].adapterNode.sendRequest(
body.value,
body.dataTypeID,
body.destinationNodeID
);
},2000)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment