Hardware support for the Raspberry Pi

Latest Information on Sim Innovation's flagship product Air Manager

Moderators: russ, Ralph

Message
Author
User avatar
Amok
Posts: 43
Joined: Fri Nov 20, 2015 9:57 pm

Re: Hardware support for the Raspberry Pi

#21 Post by Amok »

Perhaps we will give it a try with the Java Version ...

User avatar
Ralph
Posts: 7933
Joined: Tue Oct 27, 2015 7:02 pm
Location: De Steeg
Contact:

Re: Hardware support for the Raspberry Pi

#22 Post by Ralph »

It's difficult to find a RASPBIAN distribution that still supports JavaFX, therefore we've removed the Raspberry Pi support. If you can still find one, then it should work. Good luck ;)

User avatar
Amok
Posts: 43
Joined: Fri Nov 20, 2015 9:57 pm

Re: Hardware support for the Raspberry Pi

#23 Post by Amok »

I have it already running on the Pi2, so the only question is: Is the Hardware so much better on the Pi3

Of course you have to manually install the latest Java supporting FX on ARM ...

User avatar
Ralph
Posts: 7933
Joined: Tue Oct 27, 2015 7:02 pm
Location: De Steeg
Contact:

Re: Hardware support for the Raspberry Pi

#24 Post by Ralph »

For the Java version it probably helps to have a faster CPU, because Java has a big impact on the CPU usage.

User avatar
yogi149
Posts: 23
Joined: Wed Nov 18, 2015 9:21 pm
Location: Aachen
Contact:

Re: Hardware support for the Raspberry Pi

#25 Post by yogi149 »

Hi,
Ralph wrote:therefore we've removed the Raspberry Pi support.
:cry:
complete?
The OpenGL version too?
best regards
yogi

User avatar
Corjan
Posts: 2941
Joined: Thu Nov 19, 2015 9:04 am

Re: Hardware support for the Raspberry Pi

#26 Post by Corjan »

Hi,


No, we drop support for the java version on the Raspberry Pi, because Oracle stopped supporting javafx on it.
The openGL version will be the future. When we release AM 2.2, we will also release an official raspberry openGL image.


Corjan

User avatar
Ralph
Posts: 7933
Joined: Tue Oct 27, 2015 7:02 pm
Location: De Steeg
Contact:

Re: Hardware support for the Raspberry Pi

#27 Post by Ralph »

Yup, and the OpenGL version hasn't been officially supported anyway :)

User avatar
Ralph
Posts: 7933
Joined: Tue Oct 27, 2015 7:02 pm
Location: De Steeg
Contact:

Re: Hardware support for the Raspberry Pi

#28 Post by Ralph »

We added PWM support. It's linked to the slip indicator.

The code for this project is very simple:

Code: Select all

output_pwm = hw_output_pwm_add("RPI_V2_P1_03", 50, 10)

function new_data(slip)

	-- The duty cycle goes from 3 minimum to 13 maximum (full left <---> full right)
	slip = var_cap((5 / 7 * slip) + 8, -7, 7)
	hw_output_pwm_duty_cycle(output_pwm, slip)

end

xpl_dataref_subscribe("sim/cockpit2/gauges/indicators/slip_deg", "FLOAT", new_data)

User avatar
Amok
Posts: 43
Joined: Fri Nov 20, 2015 9:57 pm

Re: Hardware support for the Raspberry Pi

#29 Post by Amok »

Is it possible to use Stepper motors, too?

User avatar
Corjan
Posts: 2941
Joined: Thu Nov 19, 2015 9:04 am

Re: Hardware support for the Raspberry Pi

#30 Post by Corjan »

I theory, this should certainly be possible, since you can simply drive pins high or low from the code.
You should code the logic yourself though. It is not implemented in the API.

Corjan

Post Reply