LibrePilot Forum

Development => Firmware General => Topic started by: Tongala on January 27, 2018, 10:57:14 pm

Title: Next
Post by: Tongala on January 27, 2018, 10:57:14 pm
Hi I am looking to build another quad and was thinking of trying a BF F3 or F4 board.
 
I see that Next has support for a number of F3 boards (SPracingF3, SPracingF3Evo, PikoBLX and tinyFISH FC).
 
What about other BF F3 and F4 boards ? Are they or will they be supported and if so where to find their bootloader or can it be done inside GCS?
Title: Re: Next
Post by: mr_w on January 28, 2018, 07:28:45 pm
The support for various F3 & F4 boards depends on how popular these are, and the probability of developer having one to at least verify the implementation.

Most of the sensors and peripherals used are already supported, it is just the way how these are connected to the MCU that is different.

The next has what it has, and there is also one interesting dev branch that will soon be pending for merge, and that one brings Omnibus F3 & F4 to list of supported board.  My suggestion for new build would be to get one of these (original boards from Airbot or any other based on that design).

Title: Re: Next
Post by: Tongala on January 28, 2018, 08:40:29 pm
Thanks for reply, yes the Omnibus f4 was the one I had in mind.
Looks like this will be in my new build.
Title: Re: Next
Post by: Tongala on February 18, 2018, 04:20:48 am
mr_w I understand you are the main author of the F4 branch.

I have built a new quad (280mm) and waiting for Airbot F4 v5.1 from Unmanned tech.
Is there anyway to get hold of a compiled version of the F4 branch that supports this board?

Been doing research on this board and it offers many more options to configure than Revo (I have three).
Betaflight looks good and I especially like the re-mapping feature but I am a rusted on LP fan.

Thanks
Title: Re: Next
Post by: TheOtherCliff on February 18, 2018, 05:34:38 am
You should consider building LP yourself.  It will free you to try fun things.

Learn how to build next here before moving on:
https://librepilot.atlassian.net/wiki/spaces/LPDOC/pages/4128776/Developer+Manual
https://librepilot.atlassian.net/wiki/spaces/LPDOC/pages/14876735/Windows+Building+and+Packaging

Then look here on how to build the branch that has Omnibus code in it:
https://forum.librepilot.org/index.php?topic=48.msg26090#msg26090
https://forum.librepilot.org/index.php?topic=3864.msg26590#msg26590
Title: Re: Next
Post by: mr_w on February 18, 2018, 12:12:05 pm
@Tongala

I have just updated my Omnibus F4 branch few days ago. There is now GCS support for hardware configuration, just like legacy boards had before.

One thing that I do not understand from this page https://www.unmannedtechshop.co.uk/omnibus-f4-v5-1-flight-controller/ is what type of gyro it has? Is it mpu6000 or icm20608? Although it doesn't matter too much - firmware is compatible with both types.

Title: Re: Next
Post by: Tongala on February 18, 2018, 07:39:36 pm
Will give building LP a try, thanks for links. Should be fun...

mr_w not sure about gyro either. I bought from Unmanned tech because at the time Airbot site was having troubles accepting orders.

Now just waiting for board to turn up.
Title: Re: Next
Post by: Tongala on February 20, 2018, 03:02:23 am
@  TheOtherCliff

I was successful with:

$ git clone https://bitbucket.org/mindnever/librepilot.git

and

$ git checkout omnibus_f3_f4
Checking out files: 100% (317/317), done.
Branch 'omnibus_f3_f4' set up to track remote branch 'omnibus_f3_f4' from 'origin'.                                                                                                   
Switched to a new branch 'omnibus_f3_f4'

I was feeling pretty pleased with myself until.....

I followed directions from both posts listed and keep getting these messages:

$ mingw32-make gcs
/usr/bin/sh: /mingw64/bin/python: No such file or directory
.
.
.
Project MESSAGE: Using python interpreter: "python2"
WARNING: headers.path is not defined: install target not created

Project ERROR: gstreamer-app-1.0 development package not found
mingw32-make: *** [Makefile:296: C:/msys64/home/*****/librepilot/build/librepilot-gcs_release/Makefile] Error 3                                                                                                   

I had a look in  /mingw64/bin/python  there is no python or python2 file or dir. but there is python3 and 3.6.
Coluld that be the problem ?

Got similar messages when trying to make omnibusf4, any ideas would be appreciated.
Title: Re: Next
Post by: TheOtherCliff on February 20, 2018, 03:16:36 am
So you are using Windows with MinGW to build.

I remember something about the 64 bit version of MinGW having problems, but it has been a long time since I tried any MinGW.

From your error message it looks like you need to install python from inside a MinGW prompt, probably using some kind of pacman command.  Others will have to help you further...
Title: Re: Next
Post by: Tongala on February 20, 2018, 03:57:24 am
Yes using Windows with MinGW, just following instructions from :

https://librepilot.atlassian.net/wiki/spaces/LPDOC/pages/14876735/Windows+Building+and+Packaging

Tried running pacman -Sy to update but same errors.

I didn't do either of these, Windows couldn't find pacman.conf:

Add LibrePilot MinGW repository

Add the following lines at the end of your /etc/pacman.conf file:
[librepilot-mingw]
SigLevel = Optional TrustAll
Server = http://download.librepilot.org/repo/mingw

or

Paste this code into the bash-window to add the above lines to /etc/pacman.conf
echo "[librepilot-mingw]" >> /etc/pacman.conf
echo "SigLevel = Optional TrustAll" >> /etc/pacman.conf
echo "Server = http://download.librepilot.org/repo/mingw" >> /etc/pacman.conf

Could that be the problem? Although I don't think so.
Edit. appears there is no need to.

thanks for having a look just trying to learn.

Title: Re: Next
Post by: TheOtherCliff on February 20, 2018, 04:27:20 am
I would try running the 32 bit MinGW.

I would also try installing (not just updating) python with the pacman command.  Error message seems to say that python is not installed.
Title: Re: Next
Post by: Tongala on February 20, 2018, 06:19:55 am
Will download the 32 bit version as I only downloaded the 64 bit one.

Regarding python, there are two versions in the correct directory 3 and 3.6 but Mingw does not recognize them.
They both run, if I rename them to just python mingw sees them but then this error.

 File "C:/msys64/home/Larry/librepilot/make/scripts/version-info.py", line 229  print "path:       ", self.path()
 SyntaxError: invalid syntax

Have searched but cannot find out how to use pacman to install different version of python.
MinGw seems to be looking for python2 although not sure if this message means that
 (Project MESSAGE: Using python interpreter: "python2").


I'm lost


   
Title: Re: Next
Post by: Tongala on February 20, 2018, 09:13:49 pm
Switched to 32bit and installed python 2. Error message regarding python is gone MinGW now sees python.

Still failed to build gcs with this message at end:
.
.
Project MESSAGE: Using python interpreter: "python"
WARNING: headers.path is not defined: install target not created

Project ERROR: gstreamer-app-1.0 development package not found
mingw32-make: *** [Makefile:296: C:/msys64/home/*****/librepilot/build/librepilot-gcs_release/Makefile] Error 3

spent too many hours on this. When board turns up will use BF until Omnibusf4 is merged into next.
Thanks for suggestions.
Title: Re: Next
Post by: TheOtherCliff on February 20, 2018, 09:27:16 pm
Quote
Project ERROR: gstreamer-app-1.0 development package not found

Sounds like something like gstreamer-something-dev needs to be installed.
Title: Re: Next
Post by: f5soh on February 20, 2018, 09:30:05 pm
As requested by the error, you should install gstreamer
Code: [Select]
pacman -S --needed mingw-w64-i686-gst-plugins-base mingw-w64-i686-gst-plugins-good mingw-w64-i686-gst-plugins-bad mingw-w64-i686-gst-plugins-ugly  mingw-w64-i686-gst-libav
And
Code: [Select]
pacman -S --needed mingw-w64-i686-gstreamerbut this will be not needed.

Take a look here (https://forum.librepilot.org/index.php?topic=4044.msg27436#msg27436) how to disable osg if you have issues later.
Title: Re: Next
Post by: Tongala on February 21, 2018, 12:34:09 am
@f5soh
Thanks thought I had already done that :)

These are the errors I now get:

mingw32-make[4]: *** [Makefile:474: C:/msys64/home/Larry/librepilot/build/librepilot-gcs_release/src/libs/gstr amer/deps/libgstreamer-1.0-0.dll.deps] Error 127

mingw32-make[3]: *** [Makefile:394: sub-gstreamer-make_first-ordered] Error 2

mingw32-make: *** [Makefile:308: gcs] Error 2


Looks like the third one is an osg/osgearth problem so I try the fix from your link.
But not sure what the other two errors relate to.

This is what my makefile shows:

else ifeq ($(UNAME), Windows)
    UAVOBJGENERATOR := $(BUILD_DIR)/uavobjgenerator/uavobjgenerator.exe
    GCS_WITH_OSG      := 1
    GCS_WITH_OSGEARTH := 1
    GCS_COPY_OSG      := 1
    GCS_WITH_GSTREAMER := 1
    GCS_COPY_GSTREAMER := 1
endif

Should I change all to zeros or just GCS_WITH_OSGEARTH ?

Will try again latter today, have things to do.

Thanks again
Title: Re: Next
Post by: octavvian on March 03, 2018, 11:41:52 am
Hi, I changed only here " GCS_WITH_OSGEARTH := 0"
and compiled OK with some warnings on the way (magenta colored).