Accessing Waypoints directly from pixhawk

Hi everyone,Im currently writing a program that compares the drone's current location coordinates with the waypoints coordinates so once they match a script is executed. My question is how do i access those waypoints that were loaded to the pixhawk via a GCS, is there a topic i can subscribe to that contains these?

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

Join diydrones

Email me when people reply –

Replies

  • Hi Chris,

    That's exactly what i was looking for originally. In the hopes that you have done this before, i got three questions i hope you could answer

    1)In Script.sendRC, when is the value sent when the "sendnow" boolean is false?

    2)Can i somehow check the connection between the drone and the GCS? I know that there are failsafe parameters regarding that specific comm with predefine instructions on what to do according to the value set in case the signal is lost for 5 Secs or more, but what if i want to define my own set of instruction on what to do when that comm is lost?

    3)Can i inject waypoints via script? I saw an example that imported mission planner utilities i think? In order to do this But i cant find the library anywhere.

    Thanks in advance!
  • 3D Robotics

    To answer the question, yes GCSs are scriptable. Here's how to script Mission Planner with Python:

    http://ardupilot.org/planner/docs/using-python-scripts-in-mission-p...

    Using Python Scripts in Mission Planner — Mission Planner documentation
  • One more thing, thank you for helping me out! I've asked around other places and you are the first person to answer me hahaha.
  • I dont think my original reply went through,

    Anyhow, im not at home right now so i'll have to check the links later, this seems promising, Asim. I did a quick search on Ardu Pilot but im not 100% clear with what it exactly is, can you elaborate real quick on it? It's not a GCS that much i figured.
  • Exactly, "Your software that monitors the current location of the drone will use the predefined lat and long positions (which are basically the way point starting point prestored in PixHawk) as the software trigger to kick in the Auto Mode". Now i'm wondering if you known of a way to access these predefined positions in the pixhawk via uORB code?

    I also have one more question but its regarding Ground control stations as i'm rather new to this. I know they monitor the position of the drone at a all times, and allow you to set the flight mode and even send "Messages" to the drone. Are they in any way programmable? automizing the GCS via scripting might be more efficient. For example once it reaches x way point position, ill tell the GCS to switch from "AUTO" to flight mode "HOLD", since this is similar to what im trying to do but i'm doing it within the PIXHAWK.

    I've read about MAVLINK protocol and it may be a better option than the PIXHAWK's uOrb communication API, but i just havn't seen any proper documentation regarding the code side of it and im sort of lost in properly understading it.

    Thanks! And it's not a thesis per say but an essential part of a research collaboration with MIT lincoln labs and other engineers.
  • Hi Asim,

    Thanks for commenting and sorry for the late reply. Im not sure i quite understood the question so First thing first, this is strictly software. Two apps are going to be uploaded to the FC(PIXHAWK). Im writing an app(via uORB messaging in c++) that monitors the current location of the drone so that when its location matches that of the waypoint's, the drone stops and executes the other App, but for this i need to access the waypoints coordinates that were uploaded to the pixhawk, is this possible to do via code?
This reply was deleted.

Activity

DIY Robocars via Twitter
RT @Smartphone89: DonkeyCar Racing League Korea #donkeycar @diyrobocars https://t.co/mDlHDR1d98
8 hours ago
Jørn Ramnæs liked VIDEO LINK's profile
23 hours ago
Mark Harrison left a comment on Moderators
"Wow, Ning2 looks really great on mobile. I had sort of drifted away as my browse-time went more on my phone, so this is great."
yesterday
Hank Deucker left a comment on PIXHAWK
"I am sure most will say not again, Pixhawk telemetry. I do need help and all can be reassured that I have spent many hours scouring the net for useful information. I am not new at quadcopter flying, I started in 2012 and have progressed through many…"
yesterday
DIY Robocars via Twitter
https://t.co/rLmFr8M2UK
yesterday
Hank Deucker left a comment on PIXHAWK
"Tomorrow, I am thinking about the wording at the moment."
yesterday
DIY Drones via Twitter
Welcome to the new DIY Drones design!. You may have noticed that DIY Drones looks a little different today. That's… https://t.co/cg2EmeDGMQ
Wednesday
DIY Drones via Twitter
New! Online Training on Drones for Disaster Response https://t.co/brqRuujjY2
Tuesday
DIY Robocars via Twitter
https://t.co/8EMCvYW6oz
Tuesday
DIY Robocars via Twitter
RT @OttawaAVGroup: We are going to try something new this week. We will be having a drop-in style meeting Wednesday @ 7-9pm EST. Pop in and…
Monday
DIY Robocars via Twitter
RT @tawnkramer: Thanks Everyone for another fun virtual race! Amazing Ai racers competing head-to-head, Virtual Makers Fair event. Catch us…
May 23
DIY Robocars via Twitter
RT @make: Find out the latest from @diyrobocars at 10am PT from @chr1sa of @3DRobotics on Virtually Make Faire! #makerfaire #maketogether #…
May 23
DIY Robocars via Twitter
RT @Heavy02011: Join us Saturday online: Virtual Race League: @DIYRobocars Race #2 - Parking Lot Nerds https://t.co/aJUu4sdutx #Meetup via…
May 22
DIY Robocars via Twitter
RT @donkey_car: Yay, we are part of the virtual @makerfaire with @diyrobocars. Come see our race or better yet train a model and race with…
May 21
DIY Robocars via Twitter
RT @chr1sa: The @DIYRobocars Virtual AI Race is going to be part of the virtual @makerfaire on Sat! https://t.co/wnMDAboLID
May 20
DIY Robocars via Twitter
RT @tawnkramer: Please join us next week for our second DIYRobocars online race. We will be using a new Mountain Track course! https://t.co…
May 19
More…