Hi,
Re: Air Player 4.1.6 and Air Manager 4.1.6
I am currently working on an instrument that uses User Properties to enter configuration parameters. When I run the instrument in a Panel in Air Manager the User Properties section is displayed correctly. However when I add the instrument to a panel running in Air Player on another PC, the User Properties section displays "No user properties". If I add a Garmin G5 to the Air Player panel the User Properties are displayed correctly.
What am I missing?
Thanks Rob
User Properties not displayed in Air Player
-
- Posts: 15
- Joined: Sun Jul 26, 2020 11:53 am
User Properties not displayed in Air Player
---
Rob Secombe
Melbourne Australia
Rob Secombe
Melbourne Australia
-
- Posts: 15
- Joined: Sun Jul 26, 2020 11:53 am
Re: User Properties not displayed in Air Player
What I was missing...
So, it was late at night and my first time trying to get a Custom Instrument to run in Air Player. This morning I went back with fresh eyes, RTFM and discovered I neglected to "PUSH" the instrument to Air Player.
My Motorised Trim Wheel is now working as expected!
Rob
So, it was late at night and my first time trying to get a Custom Instrument to run in Air Player. This morning I went back with fresh eyes, RTFM and discovered I neglected to "PUSH" the instrument to Air Player.
My Motorised Trim Wheel is now working as expected!
Rob
---
Rob Secombe
Melbourne Australia
Rob Secombe
Melbourne Australia
Re: User Properties not displayed in Air Player
Nice job Rob
Can you post some images of the trim wheel ?
Cheers
Joe
Can you post some images of the trim wheel ?
Cheers
Joe
Joe. CISSP, MSc.
-
- Posts: 15
- Joined: Sun Jul 26, 2020 11:53 am
Re: User Properties not displayed in Air Player
Hi Joe,
Ah, when I said the "trim wheel" what I really meant to say was that the trim wheel software is now behaving as expected.
I am using Air Manager and messageport to communicate with an Arduino that controls a DC servomotor/encoder. Now that I have a proof of concept I will fabricate a suitable trim wheel. I'll be happy to post something when I have something more to show.
Cheers
Rob.
Ah, when I said the "trim wheel" what I really meant to say was that the trim wheel software is now behaving as expected.
I am using Air Manager and messageport to communicate with an Arduino that controls a DC servomotor/encoder. Now that I have a proof of concept I will fabricate a suitable trim wheel. I'll be happy to post something when I have something more to show.
Cheers
Rob.
---
Rob Secombe
Melbourne Australia
Rob Secombe
Melbourne Australia
Re: User Properties not displayed in Air Player
Hi Rob,
That's great!. Nice way to go with the geared motor with encoder at the end and the H bridge driver board - also looks like a GT2 type pulley so a great way of adding drive. One thing of interest will be how you propose to allow a user to 'override' the trim wheel, and also I presume the encoder is a relative encoder not an absolute encoder ?. If this is the case the sim will have no way of knowing the position at startup.
It might be worth considering adding a potentiometer to the system to an ADC input to read the absolute position, or you may well have this part covered.
I like it
Joe
That's great!. Nice way to go with the geared motor with encoder at the end and the H bridge driver board - also looks like a GT2 type pulley so a great way of adding drive. One thing of interest will be how you propose to allow a user to 'override' the trim wheel, and also I presume the encoder is a relative encoder not an absolute encoder ?. If this is the case the sim will have no way of knowing the position at startup.
It might be worth considering adding a potentiometer to the system to an ADC input to read the absolute position, or you may well have this part covered.
I like it
Joe
Joe. CISSP, MSc.
-
- Posts: 15
- Joined: Sun Jul 26, 2020 11:53 am
Re: User Properties not displayed in Air Player
Hi Joe,
It was an interesting problem to solve given that X-plane 11 responds as though the autopilot is trimming when using the trim switch. Also the sim is loosely modelled on a Rockwell Shrike Commander which has a electric trim indicator, so I really don't care about the physical position of the wheel. If I do decide to include absolute position my preference would be to use a Hall sensor. I just hate pots! The motor is a carriage motor out of an old DEC LA210 printer that I happened to have lying around.
The Arduino code is written as a state machine that operates in manual, electric and autopilot modes. A PI(D) controller controls the speed and direction depending on the mode and trim change required.
Manual mode calls for a speed of 0 RPM with an Ki of 0 to simulate mechanical drag and the encoder pulses are sent back to AM to command the sim to pitch up or down. Electric mode uses the AM Game controller interface to read the yoke switch and send a state change to the Arduino, which in turn drives the motor and the encoder pulses command the sim. At present when the autopilot servos are engaged and the autopilot is trimming up or down, an appropriate state change is sent to the Arduino to run the motor but NOT send back the encoder pulses. When the autopilot has finished trimming it reverts to manual mode so that it can be overridden. If you hit the trim switch in autopilot mode the sim disengages the autopilot as expected and it reverts to manual mode.
I have just finished fiddling around with the autopilot constants and the Brunner FFB Yoke settings and it is working reasonably well. There is a bit too much gain in the PI(D) controller but it is not worth trying to tune those until I have the mass/inertia of the trim wheel and pulleys in the system. I pass those parameters to the Arduino via AM and messageport so I don't have to keep flashing the Arduino during tuning. Hence this thread.
Cheers
Rob.
It was an interesting problem to solve given that X-plane 11 responds as though the autopilot is trimming when using the trim switch. Also the sim is loosely modelled on a Rockwell Shrike Commander which has a electric trim indicator, so I really don't care about the physical position of the wheel. If I do decide to include absolute position my preference would be to use a Hall sensor. I just hate pots! The motor is a carriage motor out of an old DEC LA210 printer that I happened to have lying around.
The Arduino code is written as a state machine that operates in manual, electric and autopilot modes. A PI(D) controller controls the speed and direction depending on the mode and trim change required.
Manual mode calls for a speed of 0 RPM with an Ki of 0 to simulate mechanical drag and the encoder pulses are sent back to AM to command the sim to pitch up or down. Electric mode uses the AM Game controller interface to read the yoke switch and send a state change to the Arduino, which in turn drives the motor and the encoder pulses command the sim. At present when the autopilot servos are engaged and the autopilot is trimming up or down, an appropriate state change is sent to the Arduino to run the motor but NOT send back the encoder pulses. When the autopilot has finished trimming it reverts to manual mode so that it can be overridden. If you hit the trim switch in autopilot mode the sim disengages the autopilot as expected and it reverts to manual mode.
I have just finished fiddling around with the autopilot constants and the Brunner FFB Yoke settings and it is working reasonably well. There is a bit too much gain in the PI(D) controller but it is not worth trying to tune those until I have the mass/inertia of the trim wheel and pulleys in the system. I pass those parameters to the Arduino via AM and messageport so I don't have to keep flashing the Arduino during tuning. Hence this thread.
Cheers
Rob.
---
Rob Secombe
Melbourne Australia
Rob Secombe
Melbourne Australia
Re: User Properties not displayed in Air Player
Nice work Rob,
Yes, hall would work fine, the solid state units are amazing these days. Have a look at the AS5600 if you haven't already. The Chinese do a knock off on AliX at less that a Euro and they work superbly, and include the appropriately polarised magnet. The benefit of know where it is in your hardware is so that it can set the sim at startup and not the other way around. I think you will have an amazing system there. The motor was a great find, perfect for the job. It will be interesting to see what the drag is like in manual mode with reverse driving the geared output. What a fun project using great parts.
Keep us updated!
Joe
Yes, hall would work fine, the solid state units are amazing these days. Have a look at the AS5600 if you haven't already. The Chinese do a knock off on AliX at less that a Euro and they work superbly, and include the appropriately polarised magnet. The benefit of know where it is in your hardware is so that it can set the sim at startup and not the other way around. I think you will have an amazing system there. The motor was a great find, perfect for the job. It will be interesting to see what the drag is like in manual mode with reverse driving the geared output. What a fun project using great parts.
Keep us updated!
Joe
Joe. CISSP, MSc.
-
- Posts: 15
- Joined: Sun Jul 26, 2020 11:53 am
Re: User Properties not displayed in Air Player
Hi Joe,
As it is, with no power on the motor, it is quite free to turn. I have control of the drag by adjusting the PI gain so it shouldn't be a problem.
Yeah it's a bit of fun, I just wanted a procedural trainer that would not take up too much room and help me keep my IFR skills up. It kept me sane during long periods of Covid lockdown here in Victoria in Oz.
Cheers
Rob.
As it is, with no power on the motor, it is quite free to turn. I have control of the drag by adjusting the PI gain so it shouldn't be a problem.
Yeah it's a bit of fun, I just wanted a procedural trainer that would not take up too much room and help me keep my IFR skills up. It kept me sane during long periods of Covid lockdown here in Victoria in Oz.
Cheers
Rob.
---
Rob Secombe
Melbourne Australia
Rob Secombe
Melbourne Australia
-
- Posts: 15
- Joined: Sun Jul 26, 2020 11:53 am
Re: User Properties not displayed in Air Player
Thanks Joe! ,
Cheers
Rob.
Cheers
Rob.
---
Rob Secombe
Melbourne Australia
Rob Secombe
Melbourne Australia