{"id":132,"date":"2021-10-11T11:26:00","date_gmt":"2021-10-11T11:26:00","guid":{"rendered":"https:\/\/med.upc.edu\/team3-2021\/?p=132"},"modified":"2021-10-17T13:35:19","modified_gmt":"2021-10-17T13:35:19","slug":"setting-up-the-autopilot","status":"publish","type":"post","link":"https:\/\/med.upc.edu\/team3-2021\/2021\/10\/11\/setting-up-the-autopilot\/","title":{"rendered":"Setting up the autopilot"},"content":{"rendered":"\n<p>The aim of this section is to learn the basics of how to configure and calibrate an autopilot for your drone. In our case, we used the Pixhawk Orange Cube.<\/p>\n\n\n\n<div class=\"wp-block-image\"><figure class=\"aligncenter size-large is-resized\"><img fetchpriority=\"high\" decoding=\"async\" src=\"https:\/\/med.upc.edu\/team3-2021\/wp-content\/uploads\/sites\/4\/2021\/10\/IMG_3083-1024x768.jpg\" alt=\"\" class=\"wp-image-133\" width=\"337\" height=\"253\" srcset=\"https:\/\/med.upc.edu\/team3-2021\/wp-content\/uploads\/sites\/4\/2021\/10\/IMG_3083-1024x768.jpg 1024w, https:\/\/med.upc.edu\/team3-2021\/wp-content\/uploads\/sites\/4\/2021\/10\/IMG_3083-300x225.jpg 300w, https:\/\/med.upc.edu\/team3-2021\/wp-content\/uploads\/sites\/4\/2021\/10\/IMG_3083-768x576.jpg 768w, https:\/\/med.upc.edu\/team3-2021\/wp-content\/uploads\/sites\/4\/2021\/10\/IMG_3083-1536x1152.jpg 1536w, https:\/\/med.upc.edu\/team3-2021\/wp-content\/uploads\/sites\/4\/2021\/10\/IMG_3083-1568x1176.jpg 1568w, https:\/\/med.upc.edu\/team3-2021\/wp-content\/uploads\/sites\/4\/2021\/10\/IMG_3083.jpg 2016w\" sizes=\"(max-width: 337px) 100vw, 337px\" \/><\/figure><\/div>\n\n\n\n<p>For the different steps of this process we followed the video on the following link: <a href=\"https:\/\/www.youtube.com\/watch?v=0zTS_ZuHLb0&amp;list=PLYsWjANuAm4qJ8Lko-3xiYNGb2Hh22rDw&amp;index=3\">PixHawk\/Mission Planner\/ArduCopter Build for Beginners: Flashing the flight controller &#8211; YouTube<\/a> <\/p>\n\n\n\n<div class=\"wp-block-image\"><figure class=\"aligncenter size-full is-resized\"><img decoding=\"async\" src=\"https:\/\/med.upc.edu\/team3-2021\/wp-content\/uploads\/sites\/4\/2021\/10\/pix-video.png\" alt=\"\" class=\"wp-image-134\" width=\"208\" height=\"168\" srcset=\"https:\/\/med.upc.edu\/team3-2021\/wp-content\/uploads\/sites\/4\/2021\/10\/pix-video.png 315w, https:\/\/med.upc.edu\/team3-2021\/wp-content\/uploads\/sites\/4\/2021\/10\/pix-video-300x243.png 300w\" sizes=\"(max-width: 208px) 100vw, 208px\" \/><\/figure><\/div>\n\n\n\n<p>Additionally, the same Youtube channel has a playlist with more videos covering different aspects of the autopilot, in case you want to know more about that, you can find them in the next link: <a href=\"https:\/\/www.youtube.com\/watch?v=uH2iCRA9G7k&amp;list=PLYsWjANuAm4r4idFZY24pP6s1K6ABMU0p\">(1\/5) PixHawk Video Series &#8211; Simple initial setup, config and calibration &#8211; YouTube<\/a>.<\/p>\n\n\n\n<p>After this small introduction, it&#8217;s time to start with the setup. The next paragraphs will try to put together the steps explained on the video with our own experience.<\/p>\n\n\n\n<p>First, this picture is useful to have a overall view of what components come in the Pixhawk Cube Orange package<\/p>\n\n\n\n<figure class=\"wp-block-image size-large\"><img decoding=\"async\" width=\"1024\" height=\"494\" src=\"https:\/\/med.upc.edu\/team3-2021\/wp-content\/uploads\/sites\/4\/2021\/10\/cube-components-1024x494.png\" alt=\"\" class=\"wp-image-135\" srcset=\"https:\/\/med.upc.edu\/team3-2021\/wp-content\/uploads\/sites\/4\/2021\/10\/cube-components-1024x494.png 1024w, https:\/\/med.upc.edu\/team3-2021\/wp-content\/uploads\/sites\/4\/2021\/10\/cube-components-300x145.png 300w, https:\/\/med.upc.edu\/team3-2021\/wp-content\/uploads\/sites\/4\/2021\/10\/cube-components-768x370.png 768w, https:\/\/med.upc.edu\/team3-2021\/wp-content\/uploads\/sites\/4\/2021\/10\/cube-components.png 1174w\" sizes=\"(max-width: 1024px) 100vw, 1024px\" \/><figcaption><em>Source: <a href=\"https:\/\/docs.px4.io\/master\/en\/flight_controller\/cubepilot_cube_orange.html\">Cube Orange Flight Controller | PX4 User Guide<\/a><\/em><\/figcaption><\/figure>\n\n\n\n<p>First, you should connect to the autopilot the radio receiver (we covered this component in a previous post), the GPS and the buzzer. You can see how these are wired in the following images, taken from the Pixhawk User Guide (<a href=\"https:\/\/docs.px4.io\/master\/en\/assembly\/quick_start_cube.html\">Cube Wiring Quick Start | PX4 User Guide<\/a>).<\/p>\n\n\n\n<div class=\"wp-block-image\"><figure class=\"aligncenter size-full is-resized\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/med.upc.edu\/team3-2021\/wp-content\/uploads\/sites\/4\/2021\/10\/radiocontrol-con.png\" alt=\"\" class=\"wp-image-136\" width=\"448\" height=\"203\" srcset=\"https:\/\/med.upc.edu\/team3-2021\/wp-content\/uploads\/sites\/4\/2021\/10\/radiocontrol-con.png 777w, https:\/\/med.upc.edu\/team3-2021\/wp-content\/uploads\/sites\/4\/2021\/10\/radiocontrol-con-300x137.png 300w, https:\/\/med.upc.edu\/team3-2021\/wp-content\/uploads\/sites\/4\/2021\/10\/radiocontrol-con-768x350.png 768w\" sizes=\"(max-width: 448px) 100vw, 448px\" \/><figcaption>Radio receiver is connected in the RCIN input<\/figcaption><\/figure><\/div>\n\n\n\n<div class=\"wp-block-image\"><figure class=\"aligncenter size-large is-resized\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/med.upc.edu\/team3-2021\/wp-content\/uploads\/sites\/4\/2021\/10\/gps-modules2-1024x477.png\" alt=\"\" class=\"wp-image-137\" width=\"408\" height=\"190\" srcset=\"https:\/\/med.upc.edu\/team3-2021\/wp-content\/uploads\/sites\/4\/2021\/10\/gps-modules2-1024x477.png 1024w, https:\/\/med.upc.edu\/team3-2021\/wp-content\/uploads\/sites\/4\/2021\/10\/gps-modules2-300x140.png 300w, https:\/\/med.upc.edu\/team3-2021\/wp-content\/uploads\/sites\/4\/2021\/10\/gps-modules2-768x358.png 768w, https:\/\/med.upc.edu\/team3-2021\/wp-content\/uploads\/sites\/4\/2021\/10\/gps-modules2.png 1194w\" sizes=\"(max-width: 408px) 100vw, 408px\" \/><figcaption>There are two specific GPS ports on the Cube, you can wire yours on GPS1.<\/figcaption><\/figure><\/div>\n\n\n\n<div class=\"wp-block-image\"><figure class=\"aligncenter size-full is-resized\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/med.upc.edu\/team3-2021\/wp-content\/uploads\/sites\/4\/2021\/10\/buzzer-con.png\" alt=\"\" class=\"wp-image-138\" width=\"187\" height=\"232\" srcset=\"https:\/\/med.upc.edu\/team3-2021\/wp-content\/uploads\/sites\/4\/2021\/10\/buzzer-con.png 546w, https:\/\/med.upc.edu\/team3-2021\/wp-content\/uploads\/sites\/4\/2021\/10\/buzzer-con-242x300.png 242w\" sizes=\"(max-width: 187px) 100vw, 187px\" \/><figcaption>The buzzer goes to the USB port.<\/figcaption><\/figure><\/div>\n\n\n\n<p>Next step is to download the software we will use for our autopilot: Mission Planner. You can download the latest version on their website (<a href=\"https:\/\/firmware.ardupilot.org\/Tools\/MissionPlanner\/\">ArduPilot firmware : \/Tools\/MissionPlanner<\/a>). <\/p>\n\n\n\n<p>Once you have completed this step, you should install the required firmware in the Cube. First, connect your computer with the Cube via the USB cable. Then, open Mission Planner and follow the steps on the video introduced earlier, which will guide you through the different windows of the software (start from minute 8:15).<\/p>\n\n\n\n<p>As soon as this first parameters are configured and loaded into the hardware, you should be able to see your current location on the screen. Additionally, when moving the Cube upwards or downwards, you will see the movements reflected on the screen.<\/p>\n\n\n\n<p>The video also explains some configuration parameters that should be modified to make sure everything works fine (minute 10:50).<\/p>\n\n\n\n<ul class=\"wp-block-list\"><li>GPS CAN bus settings.<\/li><li>External LEDs.<\/li><li>Disable the external safety switch (when using GPS via CAN bus).<\/li><\/ul>\n\n\n\n<p> You should follow the steps carefully, specially the reboot operations are key to setting everything up correctly.<\/p>\n\n\n\n<p>Once the configuration is finished, the only thing left is to calibrate the different sensors the autopilot will need. The process is covered in a different post of the blog: <a href=\"https:\/\/med.upc.edu\/team3-2021\/2021\/10\/12\/drone-calibration\/\">Drone calibration \u2013 Getting our drone ready for the 1st flight (upc.edu)<\/a>.<\/p>\n\n\n\n<p><\/p>\n","protected":false},"excerpt":{"rendered":"<p>The aim of this section is to learn the basics of how to configure and calibrate an autopilot for your drone. In our case, we used the Pixhawk Orange Cube. For the different steps of this process we followed the video on the following link: PixHawk\/Mission Planner\/ArduCopter Build for Beginners: [&hellip;]<\/p>\n","protected":false},"author":12,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[16,19,18],"tags":[25],"class_list":["post-132","post","type-post","status-publish","format-standard","hentry","category-components","category-missionplanner","category-pixhawk","tag-activity5"],"_links":{"self":[{"href":"https:\/\/med.upc.edu\/team3-2021\/wp-json\/wp\/v2\/posts\/132","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/med.upc.edu\/team3-2021\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/med.upc.edu\/team3-2021\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/med.upc.edu\/team3-2021\/wp-json\/wp\/v2\/users\/12"}],"replies":[{"embeddable":true,"href":"https:\/\/med.upc.edu\/team3-2021\/wp-json\/wp\/v2\/comments?post=132"}],"version-history":[{"count":4,"href":"https:\/\/med.upc.edu\/team3-2021\/wp-json\/wp\/v2\/posts\/132\/revisions"}],"predecessor-version":[{"id":151,"href":"https:\/\/med.upc.edu\/team3-2021\/wp-json\/wp\/v2\/posts\/132\/revisions\/151"}],"wp:attachment":[{"href":"https:\/\/med.upc.edu\/team3-2021\/wp-json\/wp\/v2\/media?parent=132"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/med.upc.edu\/team3-2021\/wp-json\/wp\/v2\/categories?post=132"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/med.upc.edu\/team3-2021\/wp-json\/wp\/v2\/tags?post=132"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}