Update: 5/5/2013

------------------------------

Done:

1- The MATLAB frame work is complete now

2- 7-state EKF is used for attitude estimation

3- the yaw correction is done using GPS course over ground

4- C-code is generated to work on the gumstix

5- implementation on the gumstix is done

ToDo:

1- use magnetometer for heading estimation, instead of GPS.

2- do real flight test to evaluate the EKF performance against the standard DCM that is used on the APM2.0.

===============

Dear all,

I am a PhD student working in the filed of UAVs. Specifically, UAV-Based Flood detection system.

Although I am not going to talk about my project in details, I prefer to jump directly to the particular task that I am currently working on, which is getting a better (if not the best) attitude estimation from an IMU board, APM2. 

As you might know, in order for people who are working on UAV control and stabilization to get the best output of their control algorithms, it's of a paramount importance to receive a highly reliable input signals, particularly, from measurement sensors.

More specifically, as many of you already know, several researchers' interests that are related to attitude estimation have been conducted in order to find an optimal method to get the best attitude estimation from MEMS-Based sensors (e.g. Tri-Axis acclerometer, Gyros, and Magnetometers ).

In summary, I am trying to apply Kalman-Based filtering (e.g. EKF, UKF) in order to get better estimates. 

The hardware I am using:

1- APM2 with telemetry

2- Laptop

3- embedded computer (Gumstix), https://www.gumstix.com/store/product_info.php?products_id=227

Software:

1- Ardupilot (open source code for APM)

2- Mission Planner for Visualization

3- MATLAB : for lab testing.

I am dividing my framework into two parts. First one is the lab testing and simulation part. The second one is the field test on our C-17 GlobeMaster UAV. 

3691014354?profile=original

 

I have already finished a big part on the first sub-task. We implemented EKF/UKF in matlab (using this reference: http://www.ncbi.nlm.nih.gov/pubmed/23012559) and interfaced the APM2 with MATLAB as well (using USB). Finally, I am visualizing the attitude estimates using the Virtual Reality tool box in MATLAB as well.

3691014182?profile=original

We already managed to have a full circuit auto-flights (auto takeoff, auto flight, and auto landing) using the original Ardupilot code with some PID tuning. However, we need to advance further and apply advanced filtering using Kalman filtering that will be running on an external embedded computer (Gumstix) which will communicate with the APM in order to achieve more table flights, which is the second sub-task.

I created this post because I already started this task since few months ago, and almost done with the whole framework. However, I am facing some issues that I would like to solve using your help.

For that purpose, I am ready to share my codes and files for whoever is interested to effectively help me to arrive to the end of the road and achieve the tasks successfully. If we do that, we will be able to share such framework with the public community and to provide a ready & easy environment for academic researchers and amateurs as well.

Issues i am currently facing:

----------------------------------------

The UKF is working fine on offline data from the APM. However, when I use the same MATLAB code for real-time testing, it does not work fine. I am suspecting many things.

1- Possibly, the Measurement co-variance matrix, R, for real-time data has to be re tuned!

2- I am having packet drops from the serial communication which might affect the filter performance!

3- I am not using the right coordinates with respect to the sensors i am using!

4- the magnetometer needs to be filtered out against local disturbances!

So, any one is interested to plunge in and help?!

You need to be a member of diydrones to add comments!

Join diydrones

Email me when people reply –

Replies

  • Finally, the frame work is complete now, and we have a 7-state EKF working in MATLAB. The APM is sending raw data of IMU sensors, and GPS to MATLAB and the EKF processing is done in MATLAB. Finally, the attitude is visualized as a fixed-wing UAV.

    We also managed to convert the MATLAB code to C-code (using  the internal MATLAB "coder"), that is used on our embedded computer (gumstix) which we will be using in our coming flights.

    I will post the videos and result once they are ready.

This reply was deleted.

Activity

DIY Robocars via Twitter
RT @NXP: We are already biting our nails in anticipation of the #NXPCupEMEA challenge! 😉 Did you know there are great cash prizes to be won…
yesterday
DIY Robocars via Twitter
RT @gclue_akira: レースまであと3日。今回のコースは激ムズかも。あと一歩 #jetracer https://t.co/GKcEjImQ3t
yesterday
DIY Robocars via Twitter
UC Berkeley's DIY robocar program https://roar.berkeley.edu/
yesterday
DIY Robocars via Twitter
RT @chr1sa: The next @DIYRobocars autonomous car race at @circuitlaunch will be on Sat, Dec 10. Thrills, spills and a Brazilian BBQ. Fun…
yesterday
DIY Robocars via Twitter
RT @arthiak_tc: Donkey car platform ... Still training uses behavioral cloning #TCXpo #diyrobocar @OttawaAVGroup https://t.co/PHBYwlFlnE
Nov 20
DIY Robocars via Twitter
RT @emurmur77: Points for style. @donkeycar racing in @diyrobocars at @UCSDJacobs thanks @chr1sa for taking the video. https://t.co/Y2hMyj1…
Nov 20
DIY Robocars via Twitter
RT @SmallpixelCar: Going to @diyrobocars race at @UCSDJacobs https://t.co/Rrf9vDJ8TJ
Nov 8
DIY Robocars via Twitter
RT @SmallpixelCar: Race @diyrobocars at @UCSDJacobs thanks @chr1sa for taking the video. https://t.co/kK686Hb9Ej
Nov 8
DIY Robocars via Twitter
RT @PiWarsRobotics: Presenting: the Hacky Racers Robotic Racing Series in collaboration with #PiWars. Find out more and register your inter…
Oct 23
DIY Robocars via Twitter
RT @Hacky_Racers: There will be three classes at this event: A4, A2, and Hacky Racer! A4 and A2 are based around UK paper sizing and existi…
Oct 23
DIY Robocars via Twitter
Oct 23
DIY Robocars via Twitter
Oct 19
DIY Robocars via Twitter
Oct 18
DIY Robocars via Twitter
RT @NeaveEng: Calling all UK based folks interested in @diyrobocars, @f1tenth, @donkey_car, and similar robot racing competitions! @hacky_r…
Oct 13
DIY Robocars via Twitter
RT @araffin2: 🏎️ After hours of video editing, I'm happy to share a best of my Twitch videos on learning to race with RL. 🏎️ Each part is…
Oct 13
DIY Robocars via Twitter
RT @a1k0n: Fully autonomous wipeout in the corkscrew at Laguna Seca @selfracingcars today. Got some tuning to do; this car is very fast, bu…
Oct 13
More…