Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Lua & Can Transmit #4

Open
NMSTEC opened this issue Jan 11, 2023 · 0 comments
Open

Lua & Can Transmit #4

NMSTEC opened this issue Jan 11, 2023 · 0 comments

Comments

@NMSTEC
Copy link
Member

NMSTEC commented Jan 11, 2023

Not included info in RusEFI lua wiki:

In order to transmit data, the array must be fully initialized first.

This works:

txPayload = {0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00}
  txPayload[3] = clt
  txPayload[8] = fll * 0.5

  txCan(1, 0x203, 1, txPayload)

This doesn't and is shown in wiki examples: https://wiki.rusefi.com/Lua-Scripting/#can-transmit

txPayload = {}
  txPayload[3] = clt
  txPayload[8] = fll * 0.5

  txCan(1, 0x203, 1, txPayload)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant