GithubHelp home page GithubHelp logo

Comments (5)

SweeWarman avatar SweeWarman commented on June 13, 2024

For running Icarous on a drone platform, assuming you want to send telemetry to the ground station over a radio (using the serial port) there are couple of things that must be done:

  1. You don't have to use the -DSITL=ON flag for compilation. This is only required for connecting to the SITL simulator.

  2. Specify the serial port parameters in the #else section in the intf_tbl.c file of the ardupilot app.

  • (2.1) The autopilot interface is defined by apPortType and ap address. These should define the serial port on which your hardware device running icarous connects to the ardupilot (pixhawk hardware). This depends on the actual hardware you are using and you will have to figure this out. For examples, on devices such as beagle bones (https://beagleboard.org/bone), these are /dev/ttyS0, /dev/ttyS1 etc... For Nvidia Jetsons (https://developer.nvidia.com/embedded/buy/jetson-tx2), they are /dev/ttyTHS0, /dev/ttyTHS1,....

  • (2.2) You'll specify the serial port parameters for telemetry radio in gsPortType and gs address. Usually, if you are using a USB radio, this would be /dev/ttyUSB0,/dev/ttyUSB1,... If you are not using a USB radio, it will be similar to the serial port names specified previously (in 2.1)

#else
ArdupilotTable_t TblStruct = {
SERIAL, // apPortType
57600, // baudrate
0, // apPortin
0, // apPortout
"/dev/ttyACM0", // ap address
SERIAL, // gsPortType
57600, // baudrate
0, // gsPortin
0, // gsPortout
"/dev/ttyUSB0" // gs address
};
#endif

  1. For you ground station, it seems like you are using the runGS.sh script. This script was defined only to connect to the SITL. You can launch mavproxy directly as follows:

mavproxy.py --master=/dev/ttyUSBX,brate

where "/dev/ttyUSBX" should be replaced with the name of the port on which the telemetry radio is connected on your ground station computer and the "brate" specifies the baudrate at which you are sending data. This baudrate should also be equal to the baudrate you specify on the drone in the previous section (2.2).

Hope this helps.

from icarous.

aogrcs avatar aogrcs commented on June 13, 2024

@FabianSchuessler Did you run ICAROUS on another board, like raspberry or beaglebones? Thanks

from icarous.

FabianSchuessler avatar FabianSchuessler commented on June 13, 2024

@aogrcs Yes, it is running on Raspberry.

from icarous.

aogrcs avatar aogrcs commented on June 13, 2024

@FabianSchuessler I see that you use Erle Copter, and do you run ICAROUS and ArduCopter both on Raspberry?
Nice work! Thanks

from icarous.

FabianSchuessler avatar FabianSchuessler commented on June 13, 2024

@aogrcs yes, both are running on the Raspberry

from icarous.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.