justinloveless / ardupilot-mega

Automatically exported from code.google.com/p/ardupilot-mega
0 stars 0 forks source link

APM Mission Planner issues when run on Linux using Mono #530

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
Tested on Ubuntu 11.10 - installed mono with extras:

sudo apt-get install mono-runtime libmono2.0-cil libmono-winforms2.0-cil 
mesa-common-dev mesa-utils

1.- "update found" appears on every run - how is version detected - some funny 
business ? - even if I click "yes" to update each time - it will not download 
updates more than once when there actually is an update, just check files-)

2.- not all tabs in the setup window can actually close the window - fooling 
around with the tabs let me close the window with the last tab selected.

3.- "disconnect" button does not work.  When connected - "disconnect" does 
nothing, nor does it change back into "connect"  (connected to /dev/ttyUSBx)

Everything else, maps, flight data, setting and reading config seems to work 
fine.

Original issue reported on code.google.com by andre.kj...@gmail.com on 28 Feb 2012 at 5:48

GoogleCodeExporter commented 8 years ago
Crossposting from DIYDrones forum:

4. Code assumes "\" as path separator (at least inside the Updater) which 
results in "foo\bar\baz" folders created on disk (instead of "foo/" containing 
"bar/" containing "baz/").

5. Joystick code uses Microsoft DirectInput native-code assembly. This cannot 
be executed by Mono (on either Mac or Linux) and poses legal problems since 
it's part of the DirectX redistributable.

6. OpenTK used for graphics hard-defaults to Mesa's OpenGL ES on Linux, which 
is not always available. Defaulting to plain Mesa OpenGL would make it a lot 
more robust and portable.

Original comment by csdex...@gmail.com on 28 Feb 2012 at 6:14

GoogleCodeExporter commented 8 years ago
regarding 5&6  - wouldn't it be easier to drop .NOT and use Qt ? 

Original comment by andre.kj...@gmail.com on 28 Feb 2012 at 6:54

GoogleCodeExporter commented 8 years ago
QGroundcontrol is available if you want a Python and QT GCS.

Original comment by mandro...@googlemail.com on 28 Feb 2012 at 10:15

GoogleCodeExporter commented 8 years ago
yes, tried it - not sure whatever qgroundcontrol is as "polished" and complete 
as Mission Planner. 

Original comment by andre.kj...@gmail.com on 28 Feb 2012 at 10:30

GoogleCodeExporter commented 8 years ago
andre.kj> I believe Mission Planner's code is cool enough and the changes 
needed to make it more portable are small enough to warrant the effort, which 
is why I proposed making small changes to the existing codebase instead of 
displaying a "throw it out and do it again" attitude :-)

Original comment by csdex...@gmail.com on 29 Feb 2012 at 11:15

GoogleCodeExporter commented 8 years ago
ok :) - it just sounds sweet to really go multiplatform - not to mention being 
able to compile it for Android as well.

Original comment by andre.kj...@gmail.com on 29 Feb 2012 at 11:23

GoogleCodeExporter commented 8 years ago
i think ive addressed some issue 
1. being .EXE vs .exe
3. fixed, was a "speech" library issue (which needs linux equiv posibly 
"festival")
4. fixed.

Original comment by Meee...@gmail.com on 1 Mar 2012 at 11:41

GoogleCodeExporter commented 8 years ago
Meee...   damn you are good ! 
7 - when using UDP/TCP - it seems the "connecting" window appears before the 
window that asks for port number - also , cosmetic: th OK button on these 
windows is unreadable/and/or influenced by the default (not set?) colors.

Thanks for making it easier/better to use Mono.

Original comment by andre.kj...@gmail.com on 1 Mar 2012 at 11:56

GoogleCodeExporter commented 8 years ago
8- close button (on window) seldom works - (nothing happens).  - switching to 
"terminal" tab, makes the close button close the application properly.

Original comment by andre.kj...@gmail.com on 1 Mar 2012 at 7:55

GoogleCodeExporter commented 8 years ago
regarding #1 - *if* 1.1.45 was supposed to fix it - it did not work.

Original comment by andre.kj...@gmail.com on 1 Mar 2012 at 7:57

GoogleCodeExporter commented 8 years ago
what is your main exe filename? including case for 1?

Original comment by Meee...@gmail.com on 2 Mar 2012 at 5:56

GoogleCodeExporter commented 8 years ago
also what version of mono are you using? the window order issue seems very mono 
version related.

Original comment by Meee...@gmail.com on 2 Mar 2012 at 5:56

GoogleCodeExporter commented 8 years ago
Using "Mono JIT compiler version 2.10.5 (Debian 2.10.5-1)"

Filename is "ArdupilotMegaPlanner.exe"  

Original comment by andre.kj...@gmail.com on 2 Mar 2012 at 7:06

GoogleCodeExporter commented 8 years ago
I can confirm that 4. is fixed now, no more funny-named folders and the Updater 
overwrites the right files :-) Thanks!

Original comment by csdex...@gmail.com on 2 Mar 2012 at 3:08

GoogleCodeExporter commented 8 years ago
Testing in openSuse 11.4 (x86_64) with Mono JIT compiler version 2.8.2

I can't chose connection port because Ardupilot is connecte to port /dev/ttyACM0

[ 6878.025053] usb 2-3: new full speed USB device using ohci_hcd and address 3
[ 6878.209690] usb 2-3: New USB device found, idVendor=2341, idProduct=0010
[ 6878.209700] usb 2-3: New USB device strings: Mfr=1, Product=2, 
SerialNumber=220
[ 6878.209706] usb 2-3: Product: Arduino Mega 2560
[ 6878.209712] usb 2-3: Manufacturer: Arduino (www.arduino.cc)
[ 6878.209716] usb 2-3: SerialNumber: 64033343837351C0A0D1
[ 6878.352788] cdc_acm 2-3:1.0: ttyACM0: USB ACM device
[ 6878.355954] usbcore: registered new interface driver cdc_acm
[ 6878.355961] cdc_acm: v0.26:USB Abstract Control Model driver for USB modems 
and ISDN adapters
[ 7701.672108] usb 2-3: USB disconnect, address 3

Workarround ln -s /dev/ttyACM0 /dev/ttyS0

Original comment by mmartinm...@gmail.com on 7 Mar 2012 at 10:35

GoogleCodeExporter commented 8 years ago
New bug with Planner on Mono caused by the 1.1.73 update: Upper right corner 
spacing all messed up. Were new fields added?

Screenshot: http://infohost.nmt.edu/~aarongc/apmPlannerMono.png

Original comment by foobarbecue on 21 Apr 2012 at 9:09

GoogleCodeExporter commented 8 years ago
Testing in openSuse 11.4 (x86_64) with Mono JIT compiler version 2.8.2

I can't chose my Joystick. Message: Error geting joystick list do you have the 
directx redist installed?

But using wine i havet problems to find joystick and configure.

Kernel information about joystick

Apr 23 23:09:07 altair kernel: [ 2589.481078] usb 2-3: new low speed USB device 
using ohci_hcd and address 3
Apr 23 23:09:07 altair kernel: [ 2589.667551] usb 2-3: New USB device found, 
idVendor=0402, idProduct=0402
Apr 23 23:09:07 altair kernel: [ 2589.667561] usb 2-3: New USB device strings: 
Mfr=0, Product=2, SerialNumber=0
Apr 23 23:09:07 altair kernel: [ 2589.667568] usb 2-3: Product: ADC
Apr 23 23:09:07 altair kernel: [ 2589.678782] input: ADC as 
/devices/pci0000:00/0000:00:13.0/usb2/2-3/2-3:1.0/input/input5
Apr 23 23:09:07 altair kernel: [ 2589.679136] generic-usb 0003:0402:0402.0001: 
input,hidraw0: USB HID v1.00 Joystick [ADC] on usb-0000:00:13.0-3/input0

Original comment by mmartinm...@gmail.com on 23 Apr 2012 at 10:41

GoogleCodeExporter commented 8 years ago
mmartinm> Joystick functionality doesn't currently work on anything but the 
native .NET (and Windows) because they are using native libraries (the .NET 
analogue to Java's JNI) to talk to DirectX's DirectInput. See bullet (5) 
comment #1 above.

Original comment by csdex...@gmail.com on 24 Apr 2012 at 9:30

GoogleCodeExporter commented 8 years ago
any chance joystick input being fixed ?

Original comment by andre.kj...@gmail.com on 5 Dec 2012 at 8:16