{"id":1054,"date":"2022-05-05T12:33:12","date_gmt":"2022-05-05T11:33:12","guid":{"rendered":"https:\/\/med.upc.edu\/team4-2021\/?page_id=1054"},"modified":"2022-09-17T10:39:50","modified_gmt":"2022-09-17T09:39:50","slug":"activity-17","status":"publish","type":"page","link":"https:\/\/med.upc.edu\/team4-2021\/activity-17\/","title":{"rendered":"Activity 17"},"content":{"rendered":"\n<h2 class=\"wp-block-heading\">CONNECTING THE RPI WITH THE AUTOPILOT<\/h2>\n\n\n\n<pre id=\"tw-target-text\" class=\"wp-block-preformatted has-cyan-bluish-gray-background-color has-background\">In this activity what we will do is connect the Raspberry Pi with the Autopilot.\nFirst, look on the SD card of our RPi where the config.txt and cmdline.txt files are.\nFor that we do: <em>cd \/ boot list<\/em> and all the programs will appear, we make a copy: sudo cp -pr \/boot\/firmware\/cmdline.txt \/boot\/firmware\/cmdline.txt\nInstall on the laptop PUTTY\/ or use the mission planner<\/pre>\n\n\n\n<p class=\"wp-block-paragraph\">Instalamos en nuestro laptop la aplicaci\u00f3n PUTTY <a href=\"https:\/\/es.wikipedia.org\/wiki\/PuTTY\">https:\/\/es.wikipedia.org\/wiki\/PuTTY<\/a><\/p>\n\n\n\n<figure class=\"wp-block-image size-full is-resized\"><img fetchpriority=\"high\" decoding=\"async\" src=\"https:\/\/med.upc.edu\/team4-2021\/wp-content\/uploads\/sites\/5\/2022\/07\/image.png\" alt=\"\" class=\"wp-image-1124\" width=\"324\" height=\"311\" \/><figcaption>PUTTY image laptop<\/figcaption><\/figure>\n\n\n\n<p class=\"wp-block-paragraph\"><\/p>\n\n\n\n<figure class=\"wp-block-image size-large\"><img decoding=\"async\" width=\"1024\" height=\"761\" src=\"https:\/\/med.upc.edu\/team4-2021\/wp-content\/uploads\/sites\/5\/2022\/07\/pantallazo-lenovo-portatil-Cerca-de-Google-Google-Chrome-15_07_2022-10_34_316065-1024x761.png\" alt=\"\" class=\"wp-image-1132\" srcset=\"https:\/\/med.upc.edu\/team4-2021\/wp-content\/uploads\/sites\/5\/2022\/07\/pantallazo-lenovo-portatil-Cerca-de-Google-Google-Chrome-15_07_2022-10_34_316065-1024x761.png 1024w, https:\/\/med.upc.edu\/team4-2021\/wp-content\/uploads\/sites\/5\/2022\/07\/pantallazo-lenovo-portatil-Cerca-de-Google-Google-Chrome-15_07_2022-10_34_316065-300x223.png 300w, https:\/\/med.upc.edu\/team4-2021\/wp-content\/uploads\/sites\/5\/2022\/07\/pantallazo-lenovo-portatil-Cerca-de-Google-Google-Chrome-15_07_2022-10_34_316065-768x571.png 768w, https:\/\/med.upc.edu\/team4-2021\/wp-content\/uploads\/sites\/5\/2022\/07\/pantallazo-lenovo-portatil-Cerca-de-Google-Google-Chrome-15_07_2022-10_34_316065.png 1316w\" sizes=\"(max-width: 1024px) 100vw, 1024px\" \/><\/figure>\n\n\n\n<p class=\"wp-block-paragraph\"><\/p>\n\n\n\n<figure class=\"wp-block-image size-large\"><img decoding=\"async\" width=\"1024\" height=\"768\" src=\"https:\/\/med.upc.edu\/team4-2021\/wp-content\/uploads\/sites\/5\/2022\/06\/conexiones-para-el-autopilot-1024x768.jpg\" alt=\"\" class=\"wp-image-1111\" srcset=\"https:\/\/med.upc.edu\/team4-2021\/wp-content\/uploads\/sites\/5\/2022\/06\/conexiones-para-el-autopilot-1024x768.jpg 1024w, https:\/\/med.upc.edu\/team4-2021\/wp-content\/uploads\/sites\/5\/2022\/06\/conexiones-para-el-autopilot-300x225.jpg 300w, https:\/\/med.upc.edu\/team4-2021\/wp-content\/uploads\/sites\/5\/2022\/06\/conexiones-para-el-autopilot-768x576.jpg 768w, https:\/\/med.upc.edu\/team4-2021\/wp-content\/uploads\/sites\/5\/2022\/06\/conexiones-para-el-autopilot-1536x1152.jpg 1536w, https:\/\/med.upc.edu\/team4-2021\/wp-content\/uploads\/sites\/5\/2022\/06\/conexiones-para-el-autopilot-2048x1536.jpg 2048w\" sizes=\"(max-width: 1024px) 100vw, 1024px\" \/><figcaption>Wire configuration for UART communication<\/figcaption><\/figure>\n\n\n\n<pre id=\"tw-target-text\" class=\"wp-block-preformatted has-cyan-bluish-gray-background-color has-background\">With this application we can communicate with the Rpi, either with the cable supplied for such use (USB from the laptop to the Flightcontroller of the drone), or through an IP address created for such use, HOTSPOT.\n\nIn this case we will use a HOTSPOT that we have previously created to be able to broadcast a video signal with an Intel RealSense D435 camera to the Mission Planner installed on our laptop.\n\nThe main problem is that the camera is Intel and our Raspberry is an ARM board, they are not compatible and therefore we will have to download an extra package, in this case from rpanion (Rpanion Electronics is an Australian company offering hardware and software solutions for autonomous vehicles, including custom development.We specialize in Companion Computer (see What is a Companion Computer) integration with MAVLink-based flight controllers \u2013 such as Ardupilot and PX4.) that will help us connect, creating a WiFi signal from our Raspberry.\n\nI leave a link that talks about the version I use, in this case 0.8\n\ndiscuss.ardupilot.org\/t\/rpanion-server-0-8released\/79828\n\nWe download this version and put it in the SD of our raspberry.\n\nNote: Username is; rpanion and password is: rpanion123\n\nWe turn on the Raspberry and connect to the rpanion network through our laptop. Once we are connected, we open a page and paste the following address: 10.0.2.100:3000. This IP address can be found on the rpanion website, we go to Video Streaming, we choose as device Intel Real Sense Depth Camera, the first of the two, this camera is the color camera, if we choose the second it would be the camera in black and white. We change the resolution and the bits to increase the resolution of the camera, otherwise the image is transmitted with a lot of latency. We click on Start Streaming and some new tabs will appear, we choose the last one, Mission Planner Connection Strings.\n\nWe copy the second address rtsp:\/\/10.0.2.100:8554\u2026..etc. and we paste it in the Mission planner.\n\nWe open Mission Planner and connect the drone, we go with the mouse to PFD and click the right button, a tab appears with several options, we choose video, we go to SetGSstreamer Source and we paste all the address indicated above. The video will start streaming, even with the drone unplugged.<\/pre>\n\n\n\n<p class=\"wp-block-paragraph\">Battery check<\/p>\n\n\n\n<figure class=\"wp-block-embed is-type-video is-provider-youtube wp-block-embed-youtube wp-embed-aspect-16-9 wp-has-aspect-ratio\"><div class=\"wp-block-embed__wrapper\">\n<iframe title=\"battery charge test\" width=\"500\" height=\"281\" src=\"https:\/\/www.youtube.com\/embed\/vcPO8rLC4ng?feature=oembed\" frameborder=\"0\" allow=\"accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture; web-share\" referrerpolicy=\"strict-origin-when-cross-origin\" allowfullscreen><\/iframe>\n<\/div><\/figure>\n\n\n\n<p class=\"wp-block-paragraph\">Rpi Battery check<\/p>\n\n\n\n<figure class=\"wp-block-embed is-type-video is-provider-youtube wp-block-embed-youtube wp-embed-aspect-16-9 wp-has-aspect-ratio\"><div class=\"wp-block-embed__wrapper\">\n<iframe title=\"Rpi battery check\" width=\"500\" height=\"281\" src=\"https:\/\/www.youtube.com\/embed\/QebfCaTs6QM?feature=oembed\" frameborder=\"0\" allow=\"accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture; web-share\" referrerpolicy=\"strict-origin-when-cross-origin\" allowfullscreen><\/iframe>\n<\/div><\/figure>\n","protected":false},"excerpt":{"rendered":"<p>CONNECTING THE RPI WITH THE AUTOPILOT In this activity what we will do is connect the Raspberry Pi with the Autopilot. First, look on the SD card of our RPi where the config.txt and cmdline.txt files are. For that we do: cd \/ boot list and all the programs will appear, we make a copy: [&hellip;]<\/p>\n","protected":false},"author":6,"featured_media":0,"parent":0,"menu_order":0,"comment_status":"closed","ping_status":"closed","template":"","meta":{"footnotes":""},"class_list":["post-1054","page","type-page","status-publish","hentry"],"_links":{"self":[{"href":"https:\/\/med.upc.edu\/team4-2021\/wp-json\/wp\/v2\/pages\/1054","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/med.upc.edu\/team4-2021\/wp-json\/wp\/v2\/pages"}],"about":[{"href":"https:\/\/med.upc.edu\/team4-2021\/wp-json\/wp\/v2\/types\/page"}],"author":[{"embeddable":true,"href":"https:\/\/med.upc.edu\/team4-2021\/wp-json\/wp\/v2\/users\/6"}],"replies":[{"embeddable":true,"href":"https:\/\/med.upc.edu\/team4-2021\/wp-json\/wp\/v2\/comments?post=1054"}],"version-history":[{"count":21,"href":"https:\/\/med.upc.edu\/team4-2021\/wp-json\/wp\/v2\/pages\/1054\/revisions"}],"predecessor-version":[{"id":1145,"href":"https:\/\/med.upc.edu\/team4-2021\/wp-json\/wp\/v2\/pages\/1054\/revisions\/1145"}],"wp:attachment":[{"href":"https:\/\/med.upc.edu\/team4-2021\/wp-json\/wp\/v2\/media?parent=1054"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}