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 extentions to enable heli wizard #1647

Closed
ArchmageAU opened this issue Aug 27, 2014 · 11 comments
Closed

LUA extentions to enable heli wizard #1647

ArchmageAU opened this issue Aug 27, 2014 · 11 comments

Comments

@ArchmageAU
Copy link

In order to create an LUA heli setup wizard, the following API enhancements are required:

  • getCurve, setCurve
  • insertMix, getMix must include curve data

Heli's require curves as both throttle and collective are controlled by a single stick (throttle). Creating an LUA wizard for helis is impossible without the above functions.

Optional but desired:

  • getHeli, setHeli (CCPM data)
  • getInternalRF, setInternalRF
  • getExternalRF, setExternalRF
  • getTrainerPort, setTrainerPort

Being able to bind to the heli in the wizard enables proper guided setting of CCPM (required for flybarred helis and some flybarless ones).

Other desirable functions:

  • getFlightMode, setFlightMode
  • getModelSetup, setModelSetup (name, icon, warnings)

These enable creating more advanced functions (like named modes and model personalization).

@bsongis bsongis added this to the OpenTX 2.1 milestone Aug 27, 2014
@ckleanth
Copy link

Guys just realised I need the getcurve (and related functions) as well.
any chance to move the milestone earlier than 2.1?

@jermoo
Copy link

jermoo commented Feb 16, 2015

we need model.addInput() as well.

@projectkk2glider
Copy link
Member

we need model.addInput() as well.

Already available bymodel.insertInput()

@jermoo
Copy link

jermoo commented Feb 16, 2015

I can only get this to work for adding a line to an existing input. Perhaps my syntax is incorrect?
local ivalue={name="test", source=MIXSRC_Thr, weight=55, offset=3}
two lines I've tried
model.insertInput(4, 0, ivalue)
and
model.insertInput(4, ivalue)

if I change the line to

model.insertInput(0, 1, ivalue)

it correctly adds the line to the first input as the 2nd entry.

Thanks in advance.

@projectkk2glider
Copy link
Member

@jermoo you found a new bug, issue #2084 created for it.

@jermoo
Copy link

jermoo commented Feb 16, 2015

yay..

@u8mydog
Copy link

u8mydog commented Nov 13, 2015

Also need the additional properties for insertInput.
For example:
inputName (vs line name)
curveType
curveValue
flightModes
carryTrim

@stale
Copy link

stale bot commented Aug 17, 2019

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

@stale stale bot added the stale label Aug 17, 2019
@bsongis bsongis removed this from the OpenTX 2.1.X milestone Oct 11, 2019
@stale stale bot removed the stale label Oct 11, 2019
@stale
Copy link

stale bot commented Apr 8, 2020

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

@stale stale bot added the stale label Apr 8, 2020
@lshems
Copy link
Contributor

lshems commented Apr 8, 2020

Not stale as seen by recent demand for lua setflightmode support

@stale stale bot removed the stale label Apr 8, 2020
@stale
Copy link

stale bot commented Oct 7, 2020

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

@stale stale bot added the stale label Oct 7, 2020
@stale stale bot closed this as completed Jan 6, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

7 participants