简体   繁体   English

Arduino Yun和GoPro

[英]Arduino Yun and GoPro

I'm trying to control my GoPro with Arduino Yun and having some difficulty. 我试图用Arduino Yun控制我的GoPro并遇到一些困难。 Given this difficulty, I'm wondering if I'm going about it the right way and/or whether I should be trying something else instead. 考虑到这个困难,我想知道我是否正在以正确的方式进行操作和/或是否应该尝试其他方法。

Here's where I'm at: 我在这里:

1.) I've installed node on my Arduino 1.)我已经在Arduino上安装了节点

2.) I want to install either gopro or gopro_hero_api on my Yun, but I regularly get the error "FATAL ERROR: Evacuation Allocation failed - process out of memory -- Aborted" 2.)我想在我的Yun上安装goprogopro_hero_api ,但我经常收到错误消息“致命错误:疏散分配失败-内存不足-中止”

3.) Ohhhh kaayyyy, so I find that I might need to extend the RAM on my Arduino with a swap file . 3)Ohhhh kaayyyy,所以我发现可能需要使用swap文件 扩展 Arduino上的RAM Except the command "dd" is not recognized by my Yun via ssh 我的Yun通过ssh无法识别命令“ dd”,

4.) Now I'm stuck. 4.)现在我被卡住了。

4a.) Am I misunderstanding something about installing gopro_hero_api on my Yun? 4a。)我是否对在Yun上安装gopro_hero_api有误解? Is the gopro_hero_api not meant to be installed on my Yun and instead be installed and run from my machine? gopro_hero_api是否不是要安装在我的Yun上而是要从我的机器安装并运行?

4b.) The example usage shows the following. 4b。)示例用法显示以下内容。 Where is this file saved and run from?: 该文件在哪里保存并从哪里运行?:

  var Camera = require('gopro').Camera
  var cam = new Camera('10.5.5.9', 'camera password')

  cam.startCapture()
  .then(function() {
    cam.stopCapture()
  })

4c.) As an alternative, I also found this: GoPro Hero Python Library . 4c。)另外,我还发现了这一点: GoPro Hero Python Library Should I switch gears? 我应该换档吗? 5.) Essentially my goal is to take a photo with three GoPros, send them somewhere where they can be sequenced and converted into a gif, and then displayed on a webpage. 5.)本质上,我的目标是用三个GoPro拍照,将它们发送到可以对其进行排序并转换为gif的位置,然后显示在网页上。 I'm open to doing anything that works. 我愿意做任何可行的事情。 I've been trying new things and hitting all kinds of dead ends for the last few days. 在过去的几天里,我一直在尝试新事物,并尝试各种死胡同。 Can anyone weigh in on the recommended course of action from here? 任何人都可以从这里评估建议的行动方案吗?

I'm looking to understand: 我想了解:

  • How to run node on my Yun. 如何在我的Yun上运行节点。

  • Whether or not I need to install gopro_hero_api on my Yun 我是否需要在Yun上安装gopro_hero_api

  • Where to save and run the code as per the example 根据示例在哪里保存和运行代码

  • Whether or not I should continue with this method, or try the Python version, based on community advice. 根据社区建议,我是否应该继续使用此方法,还是尝试使用Python版本。

Thank you! 谢谢!

dd should be available on the Yun as it is a standard command included in BusyBox (small system binary for embedded Linux systems that contains all of the standard commands). dd应该在Yun上可用,因为它是BusyBox中包含的标准命令(嵌入式Linux系统的小型系统二进制文件,其中包含所有标准命令)。 What is the output that you are seeing when you try and run dd? 尝试运行dd时看到的输出是什么?

And yes, the "FATAL ERROR.." is related to Swap. 是的,“致命错误..”与交换有关。 Node.js will require quite a bit of RAM. Node.js将需要大量的RAM。 You may indeed be better off using Python, simply from a resources standpoint. 从资源的角度来看,使用Python可能确实会更好。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM