First Auto-Take Off and loiter video

Auto Take off and loiter for unlimited...

Something was definitely not right.

It took off perfectly but then started to rotate as in video.

I would imagine i did something wrong with the script.

I want to be able to take the copter anywhere, regardless of location. Then do an auto takeoff and loiter.

Heres the video:


Here is the mission script:

 

#define WP_RADIUS 3 // What is the minimum distance to reach a waypoint?
#define LOITER_RADIUS 3     // How close to Loiter?
#define HOLD_CURRENT_ALT 0    // 1 = hold the current altitude, 0 = use the defined altitude to for RTL
#define ALT_TO_HOLD 5

float mission[][5] = {
{TAKEOFF,0,3,0,0},
{LOITER_UNLIM,0,3,0,0},
};

 

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

Join diydrones

Email me when people reply –

Replies

  • Keep trying.

    It will work all of a sudden.

  • Hey, I tried to do the same basic thing and it seemed to take off and loiter for a second but then when it should have RTL and land it just seemed to go off into the field. I was wondering if you had figured out any thing yet?

     

  • I don't think you need to connect USB to download logs. I had a bunch of logs on my netbook that I was using with Xbee and I haven't connected the USB in quite a while.
  • Developer

    It will hold whatever Yaw it is set to when it was engaged. It may have rotated 180° past the hold value and continued around to the proper location. This can happen if there is an imbalance somewhere causing it to Yaw on higher throttle.

    Only way to tell for sure is the internal flight log. 

    Jason

This reply was deleted.

Activity

DIY Robocars via Twitter
Apr 27
DIY Robocars via Twitter
Apr 27
DIY Robocars via Twitter
RT @f1tenth: Sliding (autonomously) into the weekend like ... 🤖😎 #f1tenth #robots #AutonomousVehicles @OpenRoboticsOrg @NVIDIAEmbedded @Aut…
Apr 25
DIY Robocars via Twitter
RT @chr1sa: One of the problems with autonomous car racing is that watching software drive is not a very exciting spectator sport. To help…
Apr 25
DIY Robocars via Twitter
RT @SmallpixelCar: Replaced AGX Xavier with @NVIDIAEmbedded Jetson Xavier NX. Now both cars look fast and clean https://t.co/jlcoY2EjZf
Apr 25
DIY Robocars via Twitter
RT @chr1sa: Yesterday we had a record number of competitors (36) in our monthly @DIYRobocars virtual autonomous car race. We kept it going…
Apr 25
DIY Robocars via Twitter
Apr 16
DIY Drones via Twitter
RT @chr1sa: After more than a year of only virtual races, @DIYRobocars returns to the newly renovated @circuitlaunch on May 22 for the resu…
Apr 11
DIY Robocars via Twitter
RT @DAVGtech: And now available with LiDAR 🔥 https://twitter.com/Heavy02011/status/1381137016381964293
Apr 11
DIY Robocars via Twitter
RT @Heavy02011: #VirtualRaceLeague: @DIYRobocars Race #9 - #ParkingLotNerds #thunderhillracetrack, CA Join us for the next race April 24th,…
Apr 11
DIY Robocars via Twitter
RT @DWalmroth: Weather's finally cooperating, looking forward to racing 1:10 scale autonomous cars outdoors again! @diyrobocars, @NVIDIAEm…
Apr 7
DIY Robocars via Twitter
RT @AIDRI_: I finally succeeded in optimizing the trajectory and speed of a car on a #racetrack. Next step: implement a 2d controller and…
Apr 7
DIY Robocars via Twitter
@jetdillo @circuitlaunch Actually the second *in person* event in a year. We do virtual races every month
Apr 2
DIY Robocars via Twitter
Update: we're moving it back one day to Sunday (the 4th) at 11:00am instead
Apr 2
DIY Robocars via Twitter
@GrantEMoe @circuitlaunch Update: we're doing it on Sunday (4th) at 11:00am instead
Apr 2
DIY Robocars via Twitter
RT @chr1sa: Maybe we should have a mini @DIYRobocars race in our lower school's playground https://t.co/xLFeua1R6X
Mar 29
More…