MRE_SECONDARY_CAN
This commit is contained in:
parent
c3bfaeb63c
commit
2c5d6cb6c9
|
@ -632,17 +632,17 @@ void mreSecondaryCan(DECLARE_CONFIG_PARAMETER_SIGNATURE) {
|
||||||
" auxV = getAuxAnalog(0)\n"
|
" auxV = getAuxAnalog(0)\n"
|
||||||
" print('Hello analog ' .. auxV )\n"
|
" print('Hello analog ' .. auxV )\n"
|
||||||
" -- first byte: integer part, would be autoboxed to int\n"
|
" -- first byte: integer part, would be autoboxed to int\n"
|
||||||
" txPayload[0] = auxV\n"
|
" txPayload[1] = auxV\n"
|
||||||
" -- second byte: fractional part, would be autoboxed to int, overflow would be ignored\n"
|
" -- second byte: fractional part, would be autoboxed to int, overflow would be ignored\n"
|
||||||
" txPayload[1] = auxV * 256;\n"
|
" txPayload[2] = auxV * 256;\n"
|
||||||
" auxV = getAuxAnalog(1)\n"
|
" auxV = getAuxAnalog(1)\n"
|
||||||
" print('Hello analog ' .. auxV )\n"
|
" print('Hello analog ' .. auxV )\n"
|
||||||
" txPayload[2] = auxV\n"
|
" txPayload[3] = auxV\n"
|
||||||
" txPayload[3] = auxV * 256;\n"
|
" txPayload[4] = auxV * 256;\n"
|
||||||
" auxV = getAuxAnalog(2)\n"
|
" auxV = getAuxAnalog(2)\n"
|
||||||
" print('Hello analog ' .. auxV )\n"
|
" print('Hello analog ' .. auxV )\n"
|
||||||
" txPayload[4] = auxV\n"
|
" txPayload[5] = auxV\n"
|
||||||
" txPayload[5] = auxV * 256;\n"
|
" txPayload[6] = auxV * 256;\n"
|
||||||
" txCan(1, 0x600, 1, txPayload)\n"
|
" txCan(1, 0x600, 1, txPayload)\n"
|
||||||
"end"
|
"end"
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue