trust

  • ****
  • 301
Re: East west oscillation in VelocityRoam
« Reply #60 on: February 01, 2021, 10:10:25 pm »
If a switch was assigned to toggle VTOL/FW mode, can this be done in flight and have it change modes?
 As a start, this seems like a way I can get both modes usable in any given flight.

Re: East west oscillation in VelocityRoam
« Reply #61 on: February 02, 2021, 03:30:02 am »
That is not a current feature.   :'(

trust

  • ****
  • 301
Re: East west oscillation in VelocityRoam
« Reply #62 on: February 03, 2021, 05:38:03 am »
Well, I bit the bullet, cloned a copy of next, installed MSYS2 and all the build files, and ran make package.
It seems to compile most of it, but I get this python error:
  File "F:/librepilot/next/make/scripts/version-info.py", line 229
    print "path:       ", self.path()
          ^
SyntaxError: invalid syntax

And it won't link the binaries.
?

Re: East west oscillation in VelocityRoam
« Reply #63 on: February 03, 2021, 11:10:42 am »
My recollection is that you must use a MINGW[32/64] shell and not an MSYS2 shell to do the builds after installing on Windows.

If that doesn't fix it, I would go back over the parts of installation that have to do with python.  It may be missing a python add-on or dependency.

You should be able to run:
python --version
  <and>
python F:/librepilot/next/make/scripts/version-info.py --info

Code: [Select]
cliff@i925 ~/dev/librepilot/1609 $ python --version
Python 2.7.6

cliff@i925 ~/dev/librepilot/1609 $ python make/scripts/version-info.py --info
path:        .
origin:      ssh://[email protected]/librepilot/librepilot.git
Unix time:   1604888485
commit date: 20201109
hash:        cfd288db8f914763f3a4e50060ef5dce1ae102b7
short hash:  cfd288db
branch:      1609_cliffs_changes
commit tag: 
dirty:       yes
label:       16.09+r1-gcfd288d-dirty
revision:    1609_cliffs_changes:cfd288db-dirty 20201109 02:21

trust

  • ****
  • 301
Re: East west oscillation in VelocityRoam
« Reply #64 on: February 03, 2021, 10:16:46 pm »
I did use minw32-make package to do the build.
My python is version 3.8.7
Maybe the make code is using an older version of python? 2.7.6 is a while ago

Re: East west oscillation in VelocityRoam
« Reply #65 on: February 04, 2021, 06:56:53 am »
I'm not talking about the version of the make utility that you use, but the shell that the make runs inside of.

As I recall, there is an environment variable...

At the command prompt where you would do the make command to do the build, what does the following command print (capitalization exactly this way)?
  echo $MSYSTEM

Then, it's been a long time since I set up a build environment, and never a plain Windows environment, so anyone else that has done so recently, please chime in.  :)

I do recall some noise that sounded like "Windows build is broken" a ?year? back.  Help?

trust

  • ****
  • 301
Re: East west oscillation in VelocityRoam
« Reply #66 on: February 04, 2021, 08:05:02 am »
That command gives:
MINGW64

trust

  • ****
  • 301
Re: East west oscillation in VelocityRoam
« Reply #67 on: February 04, 2021, 08:08:09 am »
What editor do you like to use for working with the source code?

jdl

  • ***
  • 246
Re: East west oscillation in VelocityRoam
« Reply #68 on: February 04, 2021, 02:35:23 pm »
Here is a .7z archive copy of my working msys32 (Python 2.7).  I'm using it on 64-bit Windows. Unzip it in drive E: !

I've alreday uploaded it once ago but deleted it recently from google drive (space needed). I'll keep this archive there for a week or two.

No success with MINGW64 to build the package, so I'm using MINGW32.

https://drive.google.com/file/d/1LRey8WiC4oizbZj3w0PkAxM6002Hs948/view?usp=sharing

jdl

  • ***
  • 246
Re: East west oscillation in VelocityRoam
« Reply #69 on: February 04, 2021, 02:36:05 pm »
What editor do you like to use for working with the source code?

Notepad++ ;)

trust

  • ****
  • 301
Re: East west oscillation in VelocityRoam
« Reply #70 on: February 04, 2021, 09:55:34 pm »
I tried fiddling with the python code that was causing the error. It seems to choke on the print statement as invalid syntax - but I don't see anything wrong with it. Indenting seems ok.
  Any ideas how to fix?
I'm downloading your files. I'll have to make a partition for e:
How big its it after decompressing?

Re: East west oscillation in VelocityRoam
« Reply #71 on: February 04, 2021, 11:23:36 pm »
Now that you mention it, I also recall to avoid MINGW64 and use MINGW32.  32 is what I have installed on 64 bit Linux.

I also remember needing to use the MINGW image rather than the install program.  That may be a Linux thing.

This is all on the order of 5 years ago.

trust

  • ****
  • 301
Re: East west oscillation in VelocityRoam
« Reply #72 on: February 05, 2021, 03:14:35 am »
Well, I fixed one of the problems.
In python 3, print statements are functions so must have arguments inside () - I edited that in so those errors went away.
Now I get this error:
Traceback (most recent call last):
  File "F:/librepilot/next/make/scripts/version-info.py", line 540, in <module>
    sys.exit(main())
  File "F:/librepilot/next/make/scripts/version-info.py", line 481, in main
    r = Repo(args.path)
  File "F:/librepilot/next/make/scripts/version-info.py", line 124, in __init__
    self._hash = self._out.strip(' \t\n\r')
TypeError: a bytes-like object is required, not 'str'
mingw32-make: *** [F:/librepilot/next/flight/Makefile:265: flight_uavobjects] Error 127

Any ideas?

Re: East west oscillation in VelocityRoam
« Reply #73 on: February 05, 2021, 03:26:41 am »
My first thought, rather than fixing python version issues when you see them and wondering about issues you might not see ... is to try to get a Python 2 version installed.

I kind of recall both 2 and 3 being available for just this reason?

Sounds like we need a Jira/tracking created to convert to python3.  Maybe part of getting build working with current tools and on current OS's?

jdl

  • ***
  • 246
Re: East west oscillation in VelocityRoam
« Reply #74 on: February 05, 2021, 09:07:09 am »
.... I'll have to make a partition for e:
How big its it after decompressing?

15.4GB / 15.7GB on disk. Librepilot files not included. If counting them - 17.9GB.