HELP : Lua Code for a Batter Capacity Rest
- skyfreak
- Offline
- Platinum Mitglied
- Beiträge: 2946
- Dank erhalten: 1446
er will einen resett der capacity
die calculated capacity hat sows IMHO da kann er abschauen
denn so wie ich es verstehe will er keine app und auch nicht deine nutzen sondern seine um diese funktion erweitern
die calculated capacity hat sows IMHO da kann er abschauen
denn so wie ich es verstehe will er keine app und auch nicht deine nutzen sondern seine um diese funktion erweitern
Fliegergruss
GUIDO
_________________________________________________________
Too many dicks on the dance floor.
Too many dicks!
GUIDO
_________________________________________________________
Too many dicks on the dance floor.
Too many dicks!
von skyfreak
Bitte Anmelden oder Registrieren um der Konversation beizutreten.
- rolfbartels
- Offline Autor
- Neues Mitglied
- Beiträge: 9
- Dank erhalten: 0
I am using powerboxes in my large scale planes, used/available mah capacity reported by the powerbox can be reset by assigning a switch to a channel, I am trying to find out how I can code a switch activation in lua, which i'll assign to the channel that will reset the capacity in the powerbox,
von rolfbartels
Bitte Anmelden oder Registrieren um der Konversation beizutreten.
- LeonAir
- Offline
- Senior Mitglied
- Beiträge: 57
- Dank erhalten: 58
As page 13 of the Lua api states:
You can register a Lua control via system.registerControl and then set it's state with system.setControl.
Then simply select the lua control as the input of the reset channel.
Leon
You can register a Lua control via system.registerControl and then set it's state with system.setControl.
Then simply select the lua control as the input of the reset channel.
Leon
von LeonAir
Bitte Anmelden oder Registrieren um der Konversation beizutreten.
- davidmcq137
- Offline
- Senior Mitglied
- Beiträge: 75
- Dank erhalten: 82
@rolfbartels,
Lua apps can control an servo output .. look at the system.registerControl and system.setControl API calls. It creates a function (e.g. just like a stick or knob) but that is controlled by lua code and you can assign a servo output to it. I use it all the time, for example for autothrottle, or for my parachute deployment app.
Are you thinking about a lua app that, when it wakes up, and finds that the battery value has jumped up from a previously saved value, it cycles an output channel to tell the PB that the battery was charged?
Dave
Lua apps can control an servo output .. look at the system.registerControl and system.setControl API calls. It creates a function (e.g. just like a stick or knob) but that is controlled by lua code and you can assign a servo output to it. I use it all the time, for example for autothrottle, or for my parachute deployment app.
Are you thinking about a lua app that, when it wakes up, and finds that the battery value has jumped up from a previously saved value, it cycles an output channel to tell the PB that the battery was charged?
Dave
von davidmcq137
Bitte Anmelden oder Registrieren um der Konversation beizutreten.
Moderatoren: Thorn, IG-Modellbau
Ladezeit der Seite: 1.019 Sekunden