Search found 2494 matches

by Corjan
Fri Nov 26, 2021 11:25 am
Forum: Air Player Desktop
Topic: Error loading instrument script: size_t size mismatch
Replies: 5
Views: 70

Re: Error loading instrument script: size_t size mismatch

Hi,


AP is 32 bit, and AM is 64 bit.
It is not recommended to precompile any lua scripts, since it will break platform compatibility.


Corjan
by Corjan
Wed Nov 17, 2021 1:00 pm
Forum: Lua and API Scripting Help
Topic: Rotate() animation parameters “SLOWEST” & “FASTEST” same behavior?
Replies: 8
Views: 408

Re: Rotate() animation parameters “SLOWEST” & “FASTEST” same behavior?

Hi,

I remember doing something to the rotation way back in AM 4.1 BETA.
Under the description in the wiki, there is the list of possible arguments. Anchor_z is there also.

Corjan
by Corjan
Wed Nov 17, 2021 9:27 am
Forum: General Instrument Help
Topic: Confused by panels (two types?)
Replies: 2
Views: 147

Re: Confused by panels (two types?)

Normally you don't have to bother with the create/edit tab, only if you are planning on creating panels for the community store to share with others.

Corjan
by Corjan
Wed Nov 17, 2021 9:26 am
Forum: General Instrument Help
Topic: Confused by panels (two types?)
Replies: 2
Views: 147

Re: Confused by panels (two types?)

Hi, The panels in the first tab are just a collection of instruments. It is a flat architecture: panel -> instruments[] The panel plugins in the create/edit are used as a blueprint to create panels from. It has a more complicated architecture: panel -> aircraft model[] -> layout[] -> instrument[] Th...
by Corjan
Wed Nov 17, 2021 9:22 am
Forum: Lua and API Scripting Help
Topic: Rotate() animation parameters “SLOWEST” & “FASTEST” same behavior?
Replies: 8
Views: 408

Re: Rotate() animation parameters “SLOWEST” & “FASTEST” same behavior?

Hi, In both cases it seems to work fine here. It always takes the longest path when SLOWEST is specified, and the shortest path when FASTEST is specified. Note that it will do that relative to the latest angle, which was -90. Tested on the latest BETA. The anchor_z doens't do anything, it was added ...
by Corjan
Sun Nov 14, 2021 10:22 am
Forum: Lua and API Scripting Help
Topic: Rotate() animation parameters “SLOWEST” & “FASTEST” same behavior?
Replies: 8
Views: 408

Re: Rotate animation parameters “SLOWEST” & “FASTEST” same behavior?

Hi, Just tested with this code, and seems to work fine: my_canvas = canvas_add(0, 0, 200, 200, function() _rect(50, 50, 100, 100) _fill("red") end) rotate(my_canvas, 90, "LOG", 0.04, "SLOWEST") Tested with latest BETA. Please provide a small code snippet if it doesn't work in your case, Corjan
by Corjan
Thu Nov 11, 2021 7:17 pm
Forum: Lua and API Scripting Help
Topic: Instrument fade in and test
Replies: 17
Views: 733

Re: Instrument fade in and test

Hi,

You are doing the same thing, only different :).
Opac will stay at 1.0 during the complete execution of the code and will also be used in the opacity function.

Have you tried my snipplet?

Corjan
by Corjan
Thu Nov 11, 2021 6:49 pm
Forum: Lua and API Scripting Help
Topic: Instrument fade in and test
Replies: 17
Views: 733

Re: Instrument fade in and test

Something like this might work:

Code: Select all

opac = 1.0

function timer_callback(count, max)	
	opacity(img_hide, opac)
	opac = opac -.2
end

timer_start(0, 1000, 5, timer_callback)

You where resetting the opac variable at every timer tick,

Corjan
by Corjan
Wed Nov 10, 2021 9:11 pm
Forum: Arduino
Topic: MessagePort
Replies: 7
Views: 357

Re: MessagePort

Hi, A delay will grind the complete Arduino to a halt for the amount of time specified. That is not really great for the communication with AM as well :). Have a look at this example: https://www.arduino.cc/en/Tutorial/BuiltInExamples/BlinkWithoutDelay Somewhere at the bottom there is an example of ...
by Corjan
Wed Nov 10, 2021 8:16 pm
Forum: Air Manager Bug Reports
Topic: AM 4.1 Beta 18 not operational with Arduino MEGA
Replies: 3
Views: 284

Re: AM 4.1 Beta 18 not operational with Arduino MEGA

Hi,


Good to hear that is fixed.

Not sure why the reconnect would be fixed though, have not done anything there I think...


Corjan