Jump to content


Photo

Attitude stabilizing at an angle


  • Please log in to reply
22 replies to this topic

#1 gearwolf

gearwolf

    Builder

  • Members
  • PipPipPip
  • 696 posts
  • LocationOhio
  • Country: flag of United States United States


Posted 31 May 2012 - 04:18 PM

I have a project that I'm almost to the point of a maiden flight. It's a cross between a heli and an autogyro. I have two modes. It has a flybarless head on it. In one flight mode it is a helicopter and in another the whole model will tilt 15 degrees upwards but still fly along the same vector as the helicopter mode (that angle may change since there is no set angle on autogyros). My question here concerns attitude stabilization of the model in both modes. If I preset on my TX to bank the model up 15 degrees in my 2nd flight mode can I still utilize the attitude stabilization of the board? Rudder control isn't an issue here since even if I were to use that from the board I know how to do a hardware bypass to achieve what I need. Also would it be a problem if during the autogyro mode I have the collective preset to a slight negative angle? I figure that I would ask this before I am able to obtain a board so I know what needs to be done during setup.
From failure comes a wealth of knowledge to build success

#2 Guest_dankers_*

Guest_dankers_*
  • Guests

Posted 31 May 2012 - 04:59 PM

Not that this helps you but I need something kinda similar for plain old helis. Of course when a heli hovers it hangs one skid low, we need a setting to have an off-set for level in a hover that accounts for this, so stabilizing at an angle but in my case roll.

The way CopterControl works and basically all flybarless controllers is that an input is a command to roll or pitch at a certain rate, so using trim will command the aircraft to roll / pitch continuously and won't help you, at least that is my understanding (but I could be wrong). What it appears you need is exactly what I need for the roll offset but on elevator and both these are missing right now. They should not be too hard to add but it would help if you are a developer as they are not yet high on the priority list.

Also would it be a problem if during the autogyro mode I have the collective preset to a slight negative angle?


I'd do that on the radio, which I think is what you mean, so no, not problem or ill effect, in fact CopterControl cares little about the collective and it is passed through to the mixer as is. All the mixer does is CCPM mixing if you even require this.

#3 MikeL

MikeL

    Core Developer

  • Members
  • PipPipPip
  • 295 posts
  • LocationCaparica, CA
  • Country: flag of United States United States


Posted 31 May 2012 - 06:22 PM

Aren't both these requirements addressed by massaging the pitch/roll bias?

#4 gearwolf

gearwolf

    Builder

  • Members
  • PipPipPip
  • 696 posts
  • LocationOhio
  • Country: flag of United States United States


Posted 31 May 2012 - 06:42 PM

I was worried about that. After looking across forums on other flybarless controllers using an offset on the tx would mean a continuous climb rate. What I need is exactly what you need too. However from what it sounds like though dankers your way would be a perminent offset. I would only need that offset about half of the time and then the other half with the offset taken off. Just looking at the general scope of all the hardware, and I'm completly guessing here, if implemented I would need pipextreme and the cc board to complete this if I wanted the settings to change in flight, right? I wish I could code. I only took a class on c++ and didn't do well.
From failure comes a wealth of knowledge to build success

#5 Guest_dankers_*

Guest_dankers_*
  • Guests

Posted 31 May 2012 - 07:31 PM

Aren't both these requirements addressed by massaging the pitch/roll bias?


Yes I believe so, we already have an options to "rotate" the board currently but this needs a slight extension so it can be selected per flight mode and I am not sure if the board needs a reset for it to take effect?

I would only need that offset about half of the time and then the other half with the offset taken off.


I need the same thing, the level off-set for hover would cause major issues in things like 3D or inverted, for me it is a great beginner feature and should enable a heli to hover in one almost spot once tuned well, if we simply just leveled a heli like we do a quad, it would quickly move away to the left fairly quickly as the tail rotor pushed it quite a lot (well the left for most helis).

Just looking at the general scope of all the hardware, and I'm completly guessing here, if implemented I would need pipextreme and the cc board to complete this if I wanted the settings to change in flight, right?


No need for a PipX, the CopterControl can do all you need. How I would set this up is to set the CopterControl flight mode to channel 5, then on your radio link the gyro gain to the TX flight mode (Normal, Idle 1, Idle 2), most TXs can do this. So when you switch flight mode on the TX, CopterControl will change mode also. Basically just as gain can be changed on a remote gain controlled gyro but rather than gain you are changing flight mode on the CopterControl.

90% of what you need is there, there are two bits missing in the firmware / GCS:

1. Board rotation that can be changed dynamically - I think right now it needs a reboot (not 100% on this)

2. Make board rotation a set-able parameter per attitude mode. Will need the UAVObjects for this and a bit of code.

So if I am following your requirements as well as I think I am, CopterControl could do exactly what you need and has most of the pieces already there but has a a few bits missing currently.

I also need to say what you are making sounds really fantastic, I would love to see CopterControl used to make it happen and while the core devs will let me lose on the GCS with some supervision, there is no way they will let me touch the firmware, to be honest this is a good thing :)

There are actually other things that could need this board rotation per mode feature as well, for example a biplane quad that does VTOL and then switches to horizontal flight, Paparazzi did one of these a few years back:



#6 MikeL

MikeL

    Core Developer

  • Members
  • PipPipPip
  • 295 posts
  • LocationCaparica, CA
  • Country: flag of United States United States


Posted 31 May 2012 - 09:58 PM

I'd be happy to take a look, measure level of effort.

So what you're thinking Dankers is that flight-mode, which currently describes the modes (rate,att,axis,etc) for yaw/pitch/roll, would have an additional option which is r/p/y rotation and to adjust for little right roll you'd dial in a couple degrees of board rotation. Gyrocopter mode, say fm3 on his transmitter would dial in some pitch rotation to fool cc into maintaining that attitude. Sound about right?

#7 gearwolf

gearwolf

    Builder

  • Members
  • PipPipPip
  • 696 posts
  • LocationOhio
  • Country: flag of United States United States


Posted 01 June 2012 - 02:23 AM

MikeL: Thank you for looking into that. If that's what it will get the board to think it's level but fixed at 15 degrees positive pitch to the ground then that sounds perfect to me.

dankers: I thought this was going to be more complicated than that. It sounds like coptercontrol is like eepe to the 9x firmware, being able to execute complex mixes with a switch. I am starting to really like this already great system. And thank you, I would like to see this board in my system as well. Before I get a chance to obtain one I will probably get some lower grade gyro systems and test each component separately. Plus I also look forward to the revolution, sounds like really great stuff and possibly a way to really get a controlled test to see if I can get longer endurance with my system as opposed to either straight heli or straight autogyro.
From failure comes a wealth of knowledge to build success

#8 gearwolf

gearwolf

    Builder

  • Members
  • PipPipPip
  • 696 posts
  • LocationOhio
  • Country: flag of United States United States


Posted 24 June 2012 - 07:20 PM

I'm just curious MikeL but have you made any headway?
From failure comes a wealth of knowledge to build success

#9 MikeL

MikeL

    Core Developer

  • Members
  • PipPipPip
  • 295 posts
  • LocationCaparica, CA
  • Country: flag of United States United States


Posted 24 June 2012 - 07:37 PM

I'm just curious MikeL but have you made any headway?


No, I'm afraid not, but I haven't forgotten about it either. :)

We're thrashing to get a release candidate ready for cc3d availability, right after that rolls out we'll have more cycles to devote to pushing the envelope a little further out.

#10 gearwolf

gearwolf

    Builder

  • Members
  • PipPipPip
  • 696 posts
  • LocationOhio
  • Country: flag of United States United States


Posted 24 June 2012 - 07:53 PM

Thanks for the update MikeL. Good luck to the release
From failure comes a wealth of knowledge to build success

#11 MikeL

MikeL

    Core Developer

  • Members
  • PipPipPip
  • 295 posts
  • LocationCaparica, CA
  • Country: flag of United States United States


Posted 24 June 2012 - 09:13 PM

Thanks for the update MikeL. Good luck to the release


Thanks. I started a code review topic on this so we can get it in the mix, look for something soon as we can.

http://git.openpilot.org/cru/OPReview-229

#12 gearwolf

gearwolf

    Builder

  • Members
  • PipPipPip
  • 696 posts
  • LocationOhio
  • Country: flag of United States United States


Posted 24 June 2012 - 10:22 PM

That sounds excellent
From failure comes a wealth of knowledge to build success

#13 Mat Wellington

Mat Wellington

    Mix Master Mat

  • Members
  • PipPipPip
  • 1506 posts
  • LocationTaranaki
  • Country: flag of New Zealand New Zealand


Posted 27 June 2012 - 09:42 AM

time to go old skool

use a servo to tilt the board 15 degrees when you flick a switch on the transmitter

#14 gearwolf

gearwolf

    Builder

  • Members
  • PipPipPip
  • 696 posts
  • LocationOhio
  • Country: flag of United States United States


Posted 27 June 2012 - 04:32 PM

Lol did not think of that one. Too bad I don't have any more room on my rx for that or else I would try that.
From failure comes a wealth of knowledge to build success

#15 Mat Wellington

Mat Wellington

    Mix Master Mat

  • Members
  • PipPipPip
  • 1506 posts
  • LocationTaranaki
  • Country: flag of New Zealand New Zealand


Posted 29 June 2012 - 06:57 PM

Lol did not think of that one. Too bad I don't have any more room on my rx for that or else I would try that.

you could run it off channel 5 (flight mode) with a y lead :)

#16 Kenn Sebesta

Kenn Sebesta

    Banned

  • Banned
  • PipPipPip
  • 2788 posts
  • Country: flag of Luxembourg Luxembourg


Posted 30 June 2012 - 12:52 AM

I made the comment in the review, but I'll repeat it here. It would be better not to trick the system about which way is really up. Rotation matrices can get cranky. However, it would be straightforward to mux in a static bias to an attitude set point. (After all, that's what we're talking about here. In rate mode, there's no sense of angle, there's just a sense of keeping whatever angle you happen to be at.)

So really all you need is a field that says "add bias" and have that be triggered by a switch. Of course, you can also do this in TX with the trim. (Again, in attitude mode. In rate mode, trim would be Bad™, but rate mode makes no sense for the kind of flight behavior you're requesting.)

#17 gearwolf

gearwolf

    Builder

  • Members
  • PipPipPip
  • 696 posts
  • LocationOhio
  • Country: flag of United States United States


Posted 30 June 2012 - 01:34 AM

Thank you guys for the suggestions. Kenn Sebesta, can I assume if you were talking about trim that in attitude mode the amount of stick movement = the angle the board moves and maintains? So if I added a mix in my tx that moved the pitch stick down 15 degrees the board would attempt to maintain that pitch angle, instead of a constant rate that would normally occur resulting in a loop/roll.
From failure comes a wealth of knowledge to build success

#18 Kenn Sebesta

Kenn Sebesta

    Banned

  • Banned
  • PipPipPip
  • 2788 posts
  • Country: flag of Luxembourg Luxembourg


Posted 30 June 2012 - 05:33 AM

Yup, that's exactly it. In rate mode, you would be asking for 15 deg/s, in attitude mode you would simply be asking for 15 deg.

P.S. I see you're in Lex. Next time I'm back home, we'll have to do a mini fly-in.

#19 gearwolf

gearwolf

    Builder

  • Members
  • PipPipPip
  • 696 posts
  • LocationOhio
  • Country: flag of United States United States


Posted 30 June 2012 - 02:57 PM

Can't believe it was already built in. Well I still have to make it fly. It could hop but nothing great. And now I need to get the board. Where do you fly around? I haven't been able to find places that are for the public.
From failure comes a wealth of knowledge to build success

#20 Kenn Sebesta

Kenn Sebesta

    Banned

  • Banned
  • PipPipPip
  • 2788 posts
  • Country: flag of Luxembourg Luxembourg


Posted 01 July 2012 - 07:57 AM

Masterson Station Park was where I used to fly planes around. If you're flying in close for hovering flight, then I'm sure any old farmers field will be fine.