-
Notifications
You must be signed in to change notification settings - Fork 55
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
Possible port to linux? #5
Comments
Hi, The problem is similar with MacOS. I'll have to take a look. The problem is similar with MacOS. I'll have to take a look. |
I guessed that. I found this : https://github.com/izissise/Linux-Virtual-Joystick-cpp |
1 similar comment
I guessed that. I found this : https://github.com/izissise/Linux-Virtual-Joystick-cpp |
Hi, I don't know when or if I'll be able to port the actual vJoySerialFeeder to Linux, but I've created a simple script that might help you. I hope you find your way in Linux because there are some steps:
Let me know if that works. |
Oh, I forgot: you also need |
hi, thanks very much for looking into this. Here is what i got: I am having issues connecting the board to betaflight also...so may be that the reason |
Okay, after another board's tests seems that when i plugged the board i can connect to betaflight no issues. I'll test more if i can |
Also a msp.pyc was created in the directory, binary values. |
The error is because the |
okay, after doing sudo modprobe uinput worked |
Does it work in your sim now? (while the script is running of course) |
no, it is not detected in velocidrone |
Hmm.. I have tested with |
just tested it, it appears as js1, but it is not detected. |
I don't really know. I'm testing with Ubuntu 16.04 here. Another test is What Deb release/kernel version? |
jstest-gtk /dev/input/js1 (jstest-gtk:3786): GLib-GObject-WARNING **: value "0" of type 'guint' is invalid or out of range for property 'n-columns' of type 'guint' that's what i get in the terminal, but in the gui no movement |
No, not Try also to replace |
i think is working without the new version that you just posted. But can't get it in velocidrone and the yaw is not working |
Check this again. I changed the axes. Also put a button just in case (although it is not used). When you run the debug version do you see stuff like:
Where do you see the yaw not working? I the debug output or in the I don't have any games on this linux so I can't test. I'll download fpvfreerider linux demo now and see. |
Works fine in freerider.
|
hi, I can see it in velocidrone, i updated the debian and rebooted. |
That's strange. Here's something to try:
Exchange for example |
okay... got it... the indentation on the last line (yaw one) was bad and the if was not taking it... moved it and it is working now! :) |
Well, that's great news! One last thing: If you haven't done so, you can comment ( Happy flying! :) |
Great job! Thank you
…On 12 Mar 2018 7:22 am, "Cleric-K" ***@***.***> wrote:
The error is because the uinput device does not exists. What linux distro
are you using?
Try sudo modprobe uinput
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
<#5 (comment)>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/AOhEpnpzNdc3OzAoJjKIT_ucO7YWxoL6ks5tdiIxgaJpZM4SlN8I>
.
|
Hi @cprpolo , |
Sure! I am a bit tight with time but yeah :)
…On 23 Mar 2018 12:01 pm, "Cleric-K" ***@***.***> wrote:
Hi @cprpolo <https://github.com/cprpolo> ,
Are you interested in trying out a linux port of vJSF?
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<#5 (comment)>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/AOhEpoH2SktMcowVULWQ0jgrFgUmoeNCks5thOQbgaJpZM4SlN8I>
.
|
Ok, don't worry, anytime you can. |
Grand :) thanks
…On 23 Mar 2018 12:07 pm, "Cleric-K" ***@***.***> wrote:
Ok, don't worry, anytime you can.
I'll try to prepare a build today.
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<#5 (comment)>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/AOhEphFMWAPbUAvsftoft7huGIK5gGxUks5thOVkgaJpZM4SlN8I>
.
|
Alright, here are some binaries: Since vjsf is written in C# in needs .NET Runtime - for linux that is Mono. The two files If you have mono installed you can simply: If you want to run as non-root, you'll have to do something like |
Hi, I've uploaded a new release. It should support Linux. You can check it out. |
Sorry I did not have time, would u be able to zip it with 7zip also? Tar.gz
is giving me issues for some reason. Thanks
…On Fri, 23 Mar 2018, 14:42 Cleric-K, ***@***.***> wrote:
Alright, here are some binaries:
https://www.dropbox.com/sh/0jhgb2tmyzd6ffh/AADFS1xkD0YWIc3C_gwl1ABqa?dl=0
Since vjsf is written in C# in needs .NET Runtime - for linux that is Mono.
The two files vJoySerialFeeder_32 and .._64 are *bundles* which are
native ELF executables and they *should* contain all the necessary
runtime stuff inside (that's why they are so big). You'll have to do chmod
+x ...
If you have mono installed you can simply: mono vJoySerialFeeder.exe
If you want to run as non-root, you'll have to do something like sudo
chmod a+wr /dev/uinput (this will be reset to the default on reboot).
There is a more elegant way (
https://tkcheng.wordpress.com/2013/11/11/changing-uinput-device-permission/
) but chmod is faster if you just want to make the test.
You also have to make sure your user is part of the dialout group if you
want to be able to access serial ports as non-root.
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<#5 (comment)>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/AOhEplUvnjB5mmKi48NqBe8zoDmmjZwPks5thQnegaJpZM4SlN8I>
.
|
Hi, here's a 7z file https://www.dropbox.com/s/qr6vc5osjah0q5i/vjsf_linux.7z?dl=0 |
Hi,
thank you for your email.
I am getting:
./vJoySerialFeeder_standalone_64
Unhandled Exception:
System.TypeInitializationException: The type initializer for
'System.Windows.Forms.XplatUI' threw an exception. --->
System.TypeInitializationException: The type initializer for
'System.Drawing.GDIPlus' threw an exception. --->
System.DllNotFoundException: libgdiplus.so
at (wrapper managed-to-native)
System.Drawing.GDIPlus.GdiplusStartup(ulong&,System.Drawing.GdiplusStartupInput&,System.Drawing.GdiplusStartupOutput&)
at System.Drawing.GDIPlus..cctor () [0x000b0] in
<8c8f672d8fd740338ad9b07c40442887>:0
--- End of inner exception stack trace ---
at (wrapper managed-to-native)
System.Object.__icall_wrapper_mono_generic_class_init(intptr)
at System.Drawing.Graphics.FromHdcInternal (System.IntPtr hdc) [0x00000]
in <8c8f672d8fd740338ad9b07c40442887>:0
at System.Windows.Forms.XplatUIX11.SetDisplay (System.IntPtr
display_handle) [0x00073] in <5bce9e20eced4770960bd97a1070c633>:0
at System.Windows.Forms.XplatUIX11..ctor () [0x00077] in
<5bce9e20eced4770960bd97a1070c633>:0
at System.Windows.Forms.XplatUIX11.GetInstance () [0x00019] in
<5bce9e20eced4770960bd97a1070c633>:0
at System.Windows.Forms.XplatUI..cctor () [0x00066] in
<5bce9e20eced4770960bd97a1070c633>:0
--- End of inner exception stack trace ---
at System.Windows.Forms.Application.EnableVisualStyles () [0x00006] in
<5bce9e20eced4770960bd97a1070c633>:0
at vJoySerialFeeder.Program.Main (System.String[] args) [0x00000] in
<52842dd8da3d4f59aa8ad5b8cf8bf553>:0
[ERROR] FATAL UNHANDLED EXCEPTION: System.TypeInitializationException: The
type initializer for 'System.Windows.Forms.XplatUI' threw an exception.
---> System.TypeInitializationException: The type initializer for
'System.Drawing.GDIPlus' threw an exception. --->
System.DllNotFoundException: libgdiplus.so
at (wrapper managed-to-native)
System.Drawing.GDIPlus.GdiplusStartup(ulong&,System.Drawing.GdiplusStartupInput&,System.Drawing.GdiplusStartupOutput&)
at System.Drawing.GDIPlus..cctor () [0x000b0] in
<8c8f672d8fd740338ad9b07c40442887>:0
--- End of inner exception stack trace ---
at (wrapper managed-to-native)
System.Object.__icall_wrapper_mono_generic_class_init(intptr)
at System.Drawing.Graphics.FromHdcInternal (System.IntPtr hdc) [0x00000]
in <8c8f672d8fd740338ad9b07c40442887>:0
at System.Windows.Forms.XplatUIX11.SetDisplay (System.IntPtr
display_handle) [0x00073] in <5bce9e20eced4770960bd97a1070c633>:0
at System.Windows.Forms.XplatUIX11..ctor () [0x00077] in
<5bce9e20eced4770960bd97a1070c633>:0
at System.Windows.Forms.XplatUIX11.GetInstance () [0x00019] in
<5bce9e20eced4770960bd97a1070c633>:0
at System.Windows.Forms.XplatUI..cctor () [0x00066] in
<5bce9e20eced4770960bd97a1070c633>:0
--- End of inner exception stack trace ---
at System.Windows.Forms.Application.EnableVisualStyles () [0x00006] in
<5bce9e20eced4770960bd97a1070c633>:0
at vJoySerialFeeder.Program.Main (System.String[] args) [0x00000] in
<52842dd8da3d4f59aa8ad5b8cf8bf553>:0
What am I missing?
thanks
Carlos
2018-04-16 22:09 GMT+01:00 Cleric-K <[email protected]>:
… Hi, here's a 7z file https://www.dropbox.com/s/
qr6vc5osjah0q5i/vjsf_linux.7z?dl=0
I used tar because it preserves file attributes. Now you'll have to
manually set the standalone files to executable after extract.
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<#5 (comment)>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/AOhEpuQmgD_4QD8mzyj4Z-jOGCH9xWoRks5tpQh4gaJpZM4SlN8I>
.
--
Carlos Polo Rubio
|
Hi, So I guess I'll remove the standalone versions from the releases. In that case the only solution left is to install Mono. If you are interested you'll have to follow the instructions at https://www.mono-project.com/download/stable/#download-lin-debian for your platform, then download the mono release of vjsf and start from console with But if you don't want to go through all this - it is fine, don't waste your time. |
Hi, is there any chance of an executable for linux (rpm or deb)? mainly interested in the multiwii part where you use the Flight controller connected to the PC.
or any advice for compilation if it would be doable with the same code?
Thank you for this work :)
The text was updated successfully, but these errors were encountered: