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},
};

 

Views: 448

Reply to This

Replies to This Discussion

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

Can I download the internal flight log over xbee? or do i need to connect the usb?

Unless its changed recently, I think you have to connect via USB, if only to access Serial0/CLI. I wired up an xbee to the bent pins on an APM I have where the oilpan USB connector was stripped off the board. It gave me wireless CLI. Not surprisingly, the logs take over twice as long to pull :) 

Or maybe an issue with the magnetometer? I'm not keeping up with the internals as I'd like to, so I guess that is a "learning question."

when the copter approaches a waypoint (that it must loiter at for 30 seconds) but overshoots the waypoint. Will it yaw 180 and try to get back to that waypoint or will it keep its orientation the same as when it was on the ground???

 

In my experience it will yaw back to the missed waypoint.

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.

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?

 

Sounds like what happend to my mission test. (The sudden unexpected wandering into the field).

Keep trying.

It will work all of a sudden.

I did kinda noticed that.. the first attempt she shot straight up and I though it would never come down... the second she actually stopped at the desired altitude yet kinda wondered away...

RSS

Social Networking

Contests

Season Two of the Trust Time Trial (T3) Contest has now begun. The fourth round is an accuracy round for multicopters, which requires contestants to fly a cube. The deadline is April 14th.

A list of all T3 contests is here

Groups

Advertisement

© 2013   Created by Chris Anderson.   Powered by

Badges  |  Report an Issue  |  Terms of Service