Willkommen, Gast
Benutzername: Passwort: Angemeldet bleiben:
  • Seite:
  • 1

THEMA:

LUA API system.setControl as an integer value 15 Okt 2021 13:57 #1

  • andreobi
  • andreobis Avatar Autor
  • Offline
  • Fresh Boarder
  • Fresh Boarder
  • Beiträge: 19
  • Dank erhalten: 23
Hello,

today I can use system.setControl to set an value between -1 and 1 that is basicly okay, but if I wand to send an exact value on the exbus it is not possible because of the floatingpoint rounding. My request is to expand the system.setControl API to system.setControlInt(controlNo,value) so I can send a value from 0-0xffff or if there are linitations in the receiver or in the system at least in the range of 0-0x3fff maybe with a fix offset.

The wish is to receive an exact value on the exbus which is identical to the defined value in the lua app.

Regards
Andre
Folgende Benutzer bedankten sich: Sepp62

Bitte Anmelden oder Registrieren um der Konversation beizutreten.

LUA API system.setControl as an integer value 16 Okt 2021 00:03 #2

  • Raf
  • Rafs Avatar
  • Offline
  • Expert Boarder
  • Expert Boarder
  • Beiträge: 133
  • Dank erhalten: 179
Many requests for Lua enhancement. I hope that at least some of them will be implemented :-)
The EX Bus value is calculated from float in this way:
result = lroundf(valuef * 4000) + 12000
Voltario T30, Touch Switch, MicroVario, AMS, SE6
Folgende Benutzer bedankten sich: Thorn, IG-Modellbau

Bitte Anmelden oder Registrieren um der Konversation beizutreten.

  • Seite:
  • 1
Ladezeit der Seite: 0.169 Sekunden
Powered by Kunena Forum