Community
cancel
Showing results for 
Search instead for 
Did you mean: 
wliu28
Beginner
1,814 Views

Optical Flow on Aero not working

Hi,

I connected the LIDAR Lite 3 to the AERO. And when checking in QGC, The topic DISTANCE_SENSOR is there and working normal except some noise.

I then ran the following commands from the terminal:

systemctl enable aero-optical-flow

systemctl status aero-optical-flow

and received the picture attached.

When looking in QGC on the widget QGroundControl>Widgets>MAVLink Inspector> ,

There is no topic named OPTICAL_FLOW_RAD.

the output of this command : get_aero_version.py is the second picture attached.

How can I fix my problem? In fact, I have two Aero Drones, and one is using PX4flow, so the second one should be equipped with Lidar as I excepted.

Thanks!

0 Kudos
23 Replies
idata
Community Manager
197 Views

Hello Weiqi,

 

 

Thank you for your interest in the Intel Aero drone.

 

 

Your request has been received and is currently being investigated.

 

We will get back to you as soon as possible.

 

 

Regards,

 

Octavian
wliu28
Beginner
197 Views

Thank you.

but I found that when I reboot my drone, optical flow works well. However then I shutdown it just for a full battery, and then power on, I got the same result as yesterday.

That's to say, sometimes it works but sometimes not.

And so I wondered, How on earth could I make it well?

idata
Community Manager
197 Views

Hello Weiqi,

 

 

Please make sure that your drone is activated as an access point (hotspot) when running this code and test it a few times this way.

 

It's possible you need the hotspot activated so let me know if this makes a difference.

 

 

Regards,

 

Octavian
wliu28
Beginner
197 Views

Hi,

I tried many times with my drone activated as an access point. Also, I test the code when drone connecting wifi in my office.

but the optical flow does not work. I think the hotspot activated or not makes no difference.

Thanks you.

idata
Community Manager
197 Views

Hello Weiqi,

 

 

Please try updating your Bios again, and also, from your first screenshot it look like the flight controller firmware shows as unknown.

 

 

Please flash your flight controller following these steps and then try again the optical flow:

 

https://github.com/intel-aero/meta-intel-aero/wiki/02-Initial-Setup# flashing-the-flight-controller-rtf-only

 

 

Also make sure to follow the steps on Github for the optical flow and let me know what specific step are you having trouble with.

 

 

https://github.com/intel-aero/aero-optical-flow https://github.com/intel-aero/aero-optical-flow

 

 

Hope this helps.

 

 

Regards,

 

Octavian
wliu28
Beginner
197 Views

Hi Octavian,

Thank you for your help.

Should I download the latest BIOS or the latest intel aero image to update my BIOS again?

I will try what you provide as soon as possible and then feedback.

Regards

Weiqi_liu

idata
Community Manager
197 Views

Hello Weiqi,

 

 

The bios version has recently been updated.

 

Please follow the steps here in order to update your Bios with the latest version:

 

https://github.com/intel-aero/meta-intel-aero/wiki/02-Initial-Setup# flashing-the-bios

 

 

Regards,

 

Octavian
wliu28
Beginner
197 Views

Hi,

When I update my BIOS, I get an error shown below. It seems that rpm can not use directly on ubuntu. So the command should be change as:

$: alien aero-bios-01.00.13-r1.corei7_64.rpm

$: sudo dpkg -i aero-bios-01.00.13-r1.corei7_64.deb

Is it that?

Is there any special parameters need to be added?

Thanks!

idata
Community Manager
197 Views

Hello Weiqi,

 

 

That is indeed correct, you need to convert it to a deb package using alien, although, you need to install the .16 package not the .13 one.

 

 

Download the latest bios from here: https://downloadcenter.intel.com/download/27399/Intel-Aero-Platform-for-UAVs-Installation-Files?v=t

 

 

and run this command:

 

sudo alien -d -i .rpm

 

 

Then you can run the aero-bios-update command and reboot your drone.

 

 

Thank you for bringing this to our attention. We will take steps to correct the documentation.

 

 

Regards,

 

Octavian
wliu28
Beginner
197 Views

Hi Octavian,

Sorry for my later reply.

But I think I should first remove the previous version (v1.00.13) and then install the latest (v1.00.16). what is the command for removing previous?

Thanks!

weiqi_liu

idata
Community Manager
197 Views

Hello Weiqi,

 

 

We've tested on Ubuntu and it updated properly without having to remove the previous version manually.

 

 

Regards,

 

Octavian
wliu28
Beginner
197 Views

Hi,

I am so sad that I get an error when running this command: sudo alien -d -i aero-bios-01.00.16-r1.corei7_64.rpm.

So what should I do?

Thanks!

wliu28
Beginner
197 Views

Hi,

In addition, I flashed my flight controller following these commands:

cd /etc/aerofc/px4/

sudo aerofc-update.sh nuttx-aerofc-v1-default.px4

everything goes normal but the FC version is still unknown.

Thanks!

weiqi_liu

idata
Community Manager
197 Views

Hello Weiqi,

 

 

I'm not able to see the link you sent me.

 

 

If the error you are talking about has something to do with the architecture, you can follow these steps:

You need to modify the control file.

sudo alien -g package-name.rpm (this will generate a folder with the package contents) cd package-dir/ sudo nano debian/control

Now change the architecture (i386 in my case) to be the one you need. For example, I added the amd64 archicture and this is how the line ended up:

Architecture: i386, amd64

Last step:

sudo debian/rules binary

This will produce the .deb file.

In regards to the issue with the FC firmware, what I would recommend is to reinstall the Ubuntu image on Aero and then try to install the FC firmware again.

 

 

Regards,

 

Octavian
wliu28
Beginner
197 Views

Hi Octavian,

Yes. the error I got was about the architecture. I found that you are talking about this issue:

And I did all you suggest there and got the same result with Coline.

As for FC firmware, so Must I reinstall ubuntu on my drone? you know, this means that I have to do all steps including installing some packages and so on. It is not difficult but time consuming.

Thank you for you help.

idata
Community Manager
197 Views

Hello Weiqi,

 

 

I understand it's time consuming, that's why I'm only suggesting this as a last resort.

 

 

Can you please provide me some screenshots with the output of this command:

 

sudo dpkg -i package-name.deb

 

 

and also the output when you try to flash the FC firmware?

 

 

Regards,

 

Octavian
wliu28
Beginner
197 Views

Hello,

In order to flash my BIOS, I followed these steps:

1. sudo alien -g aero-bios-01.00.16-r1.corei7_64.rpm

cd aero-bios-01.00.16/ (this step generated two folders, aero-bios-01.00.16 and aero-bios-01.00.16)

 

sudo gedit debian/control

sudo debian/rules binary

but I can't find .deb anywhere in the aero-bios-01.00.16 folder or the dir of home. So I try:

2.

rpm2cpio aero-bios-01.00.16-r1.corei7_64.rpm | cpio -idmv

sudo mv BIOSUPDATE.fv /boot (also sudo cp /boot/BIOSUPDATE.fv /boot/efi/)

sudo reboot

but when I reboot, the aero-get-version.py still returns Aero-01.00.13.

The output of flashing FC firmware is shown in the pictures.

idata
Community Manager
197 Views

Hello Weiqi,

 

 

Let's check if the sensor is properly connected.

 

 

Please run this command in Qgroundcontrol, in the Mavlink console: ll40ls test i2c

 

 

and share with me the results.

 

 

Regards,

 

Octavian
wliu28
Beginner
197 Views

Hello,

It seems that there is something wrong with the I2C port.

Thank you for your help.

idata
Community Manager
65 Views

Hello Weiqi,

 

 

Please try to recalibrate the sensors and make sure they are properly connected.

 

 

Regards,

 

Octavian
Reply