Asked — Edited

Script Tutorial

So I have found some great help in learning from Rich and others who post script examples for us to learn from... However, I cant find a really good post with lots of examples as I learn best from this kind of thing... Anyone have a link to any threads that is filled with good examples to learn from ? ( i have read most of the popular tutorials..ect just looking for more of the hidden gems)


ARC Pro

Upgrade to ARC Pro

Harnessing the power of ARC Pro, your robot can be more than just a simple automated machine.

#9  

What i was wondering if there was already a way to do it, with EX Builder before reinventing the wheel, which ive done a few times already, only to realise that EZ B has got me covered lol:) But if nothing exist, then what about using a Gyro/compass/accel to know where it is, and direction its heading, the encoders to track its movement? Complete newbie spit balling here. So for example, Move forward 50 feet, then it plots a course to that point, but works to avoid obstacles along the way. Think in terms of how the Mars rovers are controlled vs direct control over steering, since this is what i'm shooting for in the end.

In my perfect world, i could plot a course with APM, or similar, then the rover takes it from there.

http://ardupilot.com/

#10  

But unlike APM, i wouldn't plan on setting multiple points and just let it go. It would always be a visual destination.

United Kingdom
#11  

That's achievable. A compass and encoders are two things on my ever growing wish list.

It would really just be a case of storing the current heading when an object is detected, the new heading when the avoidance script has run to point the robot in a clear path, the distance travelled off course and a little bit of simple geometry to calculate the current position.

#12  

@Rich I have the MPU 6050. Is that a good fit for this, or maybe another option? What about incorporating a Pixhawk Autopilot into the mix? And might that simplify things at all?

#13  

One thing expected to be apart of this, is a tethered drone, that would fly to an altitude of say 50 feet (no wind), take shots, then pulled back in to dock, to create a panoramic map of sorts. An overlay would be developed during the testing phase, so that you can visually judge from the photos, how far an object would be from the Rover. Of course this is one of those "looks great on paper" ideas, and time will tell if it is feasible, but thats the plan. This is intended to be an educational platform, so im avoiding a lot of nifty point and click options. Many different exercises being planned out, with this type of navigation being part of it.