LibrePilot Forum

General Category => General Discussion => Topic started by: maple_leaf on March 17, 2018, 07:36:14 pm

Title: Any tutorials about developing librepilot with eclipse or other IDE?
Post by: maple_leaf on March 17, 2018, 07:36:14 pm
Hello guys,

I am a beginner of LibrePilot. After building the environment, I find two files called Eclipse and gdb under /librepilot/flight, respectively. So I'm wondering if my revolution board firmware project can be opened with eclipse or any other editors along with GDB?

Actually, I want to use VSCode editor to develop, because it looks so cool. Although it is new for me to use an editor as an IDE, I really want to learn about how to do that. If that is possible? If yes, where could I find any tutorials ? (As I know, VSCode  + OpenOCD + GDB can be used as a quite light IDE.)

In addition, my environment is Ubuntu14.04LTS.

Any help is appreciated.

Best Regards
Title: Re: Any tutorials about developing librepilot with eclipse or other IDE?
Post by: TheOtherCliff on March 17, 2018, 07:55:59 pm
I recall that eclipse is used by some of the GCS developers.  For GCS I have just used QT gui tools (in particular "designer"), text editor, and command line.

Many firmware developers just use a text editor and command line.

A lot depends on whether you can do your work without a debugger.  I have only used a debugger for firmware a small number of times.

old webinar video
    https://forum.librepilot.org/index.php?topic=1079.0
Is this old webinar available here for download?  If someone wants, I still have a high def copy (so you can read the text) that I can upload somewhere.
Title: Re: Any tutorials about developing librepilot with eclipse or other IDE?
Post by: maple_leaf on March 18, 2018, 08:46:15 am
Uhhuh,  the webinar video(https://www.youtube.com/watch?v=7MZEfgMuht8 (https://www.youtube.com/watch?v=7MZEfgMuht8)) seems very useful for beginner like me :D :D. I'll watch it and find something I need to do later.

Unclear text in the low res vedio is making me a little bit hard to follow... Maybe you can try to cut the high res one into two parts before uploading to Youtube. :)
Title: Re: Any tutorials about developing librepilot with eclipse or other IDE?
Post by: TheOtherCliff on March 18, 2018, 09:48:59 am
I think the problem is that youtube reduces the resolution / bit rate so even a good copy looks bad.

Maybe someone here can give me access to upload the file and people who want to watch it can download the true high def file.

The version I have is a 1.8gig mp4 file 1024x576 1408kbps.
Title: Re: Any tutorials about developing librepilot with eclipse or other IDE?
Post by: filnet on March 18, 2018, 10:43:28 am
I use Eclipse but only as a source code editor.

Compilation and debugging is done on CLI.
I also use Qt for editing *.ui files (I am not aware of a Qt plugin for Eclipse).

Yet, Eclipse is helpful for code navigation and other editing features.

It is not too difficult to setup Eclipse to make it useful.
Title: Re: Any tutorials about developing librepilot with eclipse or other IDE?
Post by: maple_leaf on March 18, 2018, 05:12:33 pm
@TheOtherCliff If convenient, you can try "Baidu Net Diskhttps://pan.baidu.com/ (https://pan.baidu.com/)" to upload the true high def file,  since it featrues storing and sharing files with each other FOR FREE(just like Onedrive? I don't know, but Baidu Net Disk is the most popular online storing service in China.) And here is an activityhttps://yun.baidu.com/1t, (https://yun.baidu.com/1t,), from which you can aquire free storing room up to 2T(2048G).
If not convenient, could you send it to my gmail? My mail address is: [email protected]. (And then I upload it to Baidu Net Disk?)

@filnet Uh huh, I am going to try qtcreator at first ;), and taking Eclipse as an option. Thank you for your advice :D.
Title: Re: Any tutorials about developing librepilot with eclipse or other IDE?
Post by: TheOtherCliff on March 19, 2018, 11:04:19 pm
My email does not allow large files and I would prefer to copy it to somewhere on LP servers.

I will see if I can set it up so you can just get it directly from me with scp.  I don't want to leave it that way permanently for fear that my data caps will be surpassed.
Title: Re: Any tutorials about developing librepilot with eclipse or other IDE?
Post by: TheOtherCliff on March 20, 2018, 12:25:35 am
You can copy it directly from the server where it is temporarily stored by using this Linux command (password is TZLr15hd8i):
Code: [Select]
scp  -P  443  webinar@<post-in-this-thread-for-ip-address>:OpenPilot*.mp4  . Note the space before the last period.  I changed this command to have two spaces where a space is needed so it would be more obvious.  It also works with one space.

If you mess up the password, wait 5 minutes before trying again.  There are very strict rules in place that permanently ban users that could be brute force logins.  If you trip up, post your IPv4 here and I will reset the block on it.

Note that this specifies using the non-standard port 443.  If you are using something besides "scp" you will have to figure out the command line options that force the use of port 443.  I think that Putty has a -pw option to allow you to put the password right in the command line.

The name of the file is:
OpenPilot Webinar - Intro to OP Development - 135758844.mp4
in case you need to know before copying.
Title: Re: Any tutorials about developing librepilot with eclipse or other IDE?
Post by: TheOtherCliff on March 20, 2018, 03:29:38 am
Transfer complete.  I am disabling webinar@<post-in-this-thread-for-ip-address>
If someone needs this file in the future, post here and I will enable it again.
Title: Re: Any tutorials about developing librepilot with eclipse or other IDE?
Post by: maple_leaf on March 31, 2018, 05:40:59 am
I haven't been here and have missed the vedio transfer, since I am busy these days and have no idea where to start with the project... :P

Could you please reopen the tranfer if convenient? I'll get it this time.  ;)
Title: Re: Any tutorials about developing librepilot with eclipse or other IDE?
Post by: TheOtherCliff on March 31, 2018, 05:03:02 pm
Re-enabled.  Give it a try.  Same username and pw.  Transfer takes 7 hours at 250kBps.
Title: Re: Any tutorials about developing librepilot with eclipse or other IDE?
Post by: maple_leaf on March 31, 2018, 06:49:24 pm
The IP <post-in-this-thread-for-ip-address> cannot be connected, it failed when I try to ping that on Windows7. :P

Check if it is enabled correctly please? :)
Title: Re: Any tutorials about developing librepilot with eclipse or other IDE?
Post by: maple_leaf on March 31, 2018, 07:06:33 pm
And here is my server IP: 119.29.162.38. :D
Title: Re: Any tutorials about developing librepilot with eclipse or other IDE?
Post by: TheOtherCliff on March 31, 2018, 10:58:37 pm
I have that system locked down pretty tight.  I don't recall whether I even allow ping.  Just try with scp.  I verified that I can ssh out to another server and ssh in to webinar@<post-in-this-thread-for-ip-address>

You MUST use an option that changes the connect port from 22 to 443.

Code: [Select]
[root@firewall chucky]# ssh -p 443 webinar@<post-in-this-thread-for-ip-address>
This server may only be used by authorized accounts.
IP's and break in attempts are logged with emails
sent to authorities at offenders ISP.

Password:
...
Title: Re: Any tutorials about developing librepilot with eclipse or other IDE?
Post by: maple_leaf on April 01, 2018, 05:18:39 am
Yes, I tried connecting with scp but not success.
Code: [Select]
cwq@ubuntu:~/code$ scp  -P  443  webinar@<post-in-this-thread-for-ip-address>:OpenPilot*.mp4  .
This server may only be used by authorized accounts.
IP's and break in attempts are logged with emails
sent to authorities at offenders ISP.
Information regarding international or sponsored
attacks are offered to the NSA.
Offenders TOS'ed in 2016: 52

Password:
OpenPilot Webinar - Intro to OP Development -   0%    0     0.0KB/s - stalled -
OpenPilot Webinar - Intro to OP Development -   0%    0     0.0KB/s - stalled -

Neither did ssh cmd.
Code: [Select]
cwq@ubuntu:~/code$ ssh -p 443 webinar@<post-in-this-thread-for-ip-address>
ssh: connect to host <post-in-this-thread-for-ip-address> port 443: Connection refused
Title: Re: Any tutorials about developing librepilot with eclipse or other IDE?
Post by: TheOtherCliff on April 01, 2018, 06:45:05 am
I ssh out to a different IP and scp it, using that exact line.  It works.

It worked when I originally put it up because someone else copied it off then.

When it locks you out, you don't get any response, and you did get a transfer started.

Code: [Select]
[chucky@firewall ~]$ scp  -P  443  webinar@<post-in-this-thread-for-ip-address>:OpenPilot*.mp4  .
This server may only be used by authorized accounts.
IP's and break in attempts are logged with emails
sent to authorities at offenders ISP.
...

Password:
OpenPilot Webinar - Intro to OP Development - 135758844.mp4        0% 1648KB 139.0KB/s 3:35:17 ETA
(I pressed ^C here)
Killed by signal 2.
[chucky@firewall ~]$

This did copy some of the file.  I had to erase the partial file.
Title: Re: Any tutorials about developing librepilot with eclipse or other IDE?
Post by: maple_leaf on April 01, 2018, 10:12:25 am
Transfer complete!  :D
Thank you very much.  ;D
Title: Re: Any tutorials about developing librepilot with eclipse or other IDE?
Post by: vodavyd on April 23, 2018, 10:11:48 pm
Hi! I'm also a beginner and have an OpenPIlot Revolution + GPS board. I have bought it in 2015 :)
Could you please let me to download this video too?)
Title: Re: Any tutorials about developing librepilot with eclipse or other IDE?
Post by: TheOtherCliff on April 24, 2018, 06:57:15 am
webinar@<post-in-this-thread-for-ip-address> is again temporarily re-enabled.  :)

FYI: this video is available if you Google for:
openpilot webinar

The reason you might want to download the high res version I have is so you can read the tiny text the instructor types on the screen.
Title: Re: Any tutorials about developing librepilot with eclipse or other IDE?
Post by: vodavyd on April 24, 2018, 08:13:21 pm
Thanks! Downloaded :)

"The reason you might want to download the high res version I have is so you can read the tiny text the instructor types on the screen." Yes, you are right :)