Search found 4740 matches

by Keith Baxter
Fri Sep 27, 2024 11:39 am
Forum: Lua and API Scripting Help
Topic: JustFlight Archer III Ignition Mapping in XP
Replies: 16
Views: 1147

Re: JustFlight Archer III Ignition Mapping in XP

Hi, Give this one a try. switch_left = switch_add(nil, nil, nil, nil, nil, 0,0,100,100, function (position, direction) new_position = position + direction switch_set_position(switch_left , new_position) if new_position == 4 then xpl_command("sim/ignition/engage_starter_1","BEGIN") end if new ...
by Keith Baxter
Fri Sep 27, 2024 7:22 am
Forum: Lua and API Scripting Help
Topic: JustFlight Archer III Ignition Mapping in XP
Replies: 16
Views: 1147

Re: JustFlight Archer III Ignition Mapping in XP

Hi, Try this. much shorter. function ignition_left(position,direction) pos = position xpl_dataref_write("sim/cockpit2/engine/actuators/ignition_key", "INT[8]", {pos},0) end function ignition_right(position,direction) pos = position xpl_dataref_write("sim/cockpit2/engine/actuators/ignition_key", "INT ...
by Keith Baxter
Fri Sep 27, 2024 6:40 am
Forum: Lua and API Scripting Help
Topic: JustFlight Archer III Ignition Mapping in XP
Replies: 16
Views: 1147

Re: JustFlight Archer III Ignition Mapping in XP

Hi,

In your code you are only writing to the first instance <0> of the array. Is that what you want?


Keith
by Keith Baxter
Sat Sep 14, 2024 10:26 am
Forum: Air Manager Bug Reports
Topic: character display with max7219
Replies: 2
Views: 590

Re: character display with max7219

I found the problem. You have to provide 8 characters to get a 5 digit display with max7219 working Hi, Actually 9. to test if I am wrong send a string 8888888.8 then send 8 white spaces you will end up with an 8 as the last segment.If you send 9 white spaces then you will get a blank display Keith
by Keith Baxter
Thu Sep 12, 2024 8:39 am
Forum: Arduino
Topic: Arduino Nano 5x5 button Matrix unreliable
Replies: 3
Views: 958

Re: Arduino Nano 5x5 button Matrix unreliable

Hi,

The matrix requires diodes to work properly.

Something like this.
ice_screenshot_20240912-103839.png

Keith
by Keith Baxter
Tue Sep 10, 2024 11:11 am
Forum: Air Manager Help
Topic: XPlane Pop out Instruments
Replies: 1
Views: 327

Re: XPlane Pop out Instruments

Hi,
Pop out only on the sim computer.
However XP12 can stream video via air player, so you can stream things like DU's, fms, G1000 etc

Keith
by Keith Baxter
Sat Sep 07, 2024 5:50 pm
Forum: Air Manager Help
Topic: Issue: Air Manager 4.2.11 connected but not sending to MSFS2020
Replies: 12
Views: 2576

Re: Issue: Air Manager 4.2.11 connected but not sending to MSFS2020

Ralph wrote: Sat Sep 07, 2024 5:28 pm I didn't do much or anything at all :lol:
Same as every day. :mrgreen:
by Keith Baxter
Wed Aug 28, 2024 8:14 pm
Forum: Air Manager feedback & feature requests
Topic: Request: viewport_circle(x,y,radius) -- EXAMPLE ADDED
Replies: 7
Views: 5530

Re: Request: viewport_circle(x,y,radius) -- EXAMPLE ADDED

For grins, I thought I'd try to "trick" the viewport into making a circle... This works: my_canvas = canvas_add(0, 0, 100, 100, function() _rect(0,0,100,100,50) _stroke("red", 1) end) So I was hoping this might work: my_image = img_add("my_image.png",0,0,100,100) viewport_rect(my_image, 0, 0, 100 ...
by Keith Baxter
Tue Aug 20, 2024 6:21 pm
Forum: Air Manager
Topic: Air Manager 4.3
Replies: 116
Views: 122784

Re: Air Manager 4.3

Hi,

OK @Corjan I see you sneaking in some new toys for us. :mrgreen: And I want to play with the new feature..

I don't want to cause a big "SCENE" but there is little in the API on how to use. :lol:
Will this come in AM4.3 beta2

Tell us more please.

Keith
by Keith Baxter
Mon Aug 19, 2024 10:39 am
Forum: Air Manager feedback & feature requests
Topic: AM4.2
Replies: 33
Views: 11284

Re: AM4.2

Hi, Corjan , Is it possible to have a <video_stream_mirror(video_stream_id)> feature please. I know this is a specific ask but I want to be able to use a video projector to project on the back of a piece of glass. Also the ability to distort the projection. ie make the top or bottom rectangle ...