LibrePilot Forum

General Category => General Discussion => Topic started by: barako on December 22, 2015, 12:59:52 pm

Title: Altitude sensor
Post by: barako on December 22, 2015, 12:59:52 pm
Hello All!!

I am new to this but thinking of an application for a real ultralight aircraft auto pilot...

Is the altitude (barometer) sensor on the board of the revolution is used by the firmware right now ?
is there a altitude hold mode enabled by using this sensor ?

Thanks for your great help!

Barak..
Title: Re: Altitude sensor
Post by: f5soh on December 22, 2015, 01:22:02 pm
Sure baro sensor is used...

You can choose AltitudeHold or AltitudeVario as thrust mode.
(https://forum.librepilot.org/index.php?action=dlattach;topic=468.0;attach=884)
Remember you should arm/hover in manual Thrust mode first and switch to one stabilization using AltitudeVario for example. At this point the Throttle stick position becomes the neutral position.
Title: Re: Altitude sensor
Post by: barako on December 22, 2015, 01:50:55 pm
Thanks Very much for your answer !

I also , if you please ...would like to ask if there is a way to operate the board without the receiver inputs ?

Something like fail safe mode  maybee ?
Title: Re: Altitude sensor
Post by: barako on December 22, 2015, 02:16:56 pm
Hi f5sho!

the application i am interested is fixed wing ..therefor there is no throttle control  .
only option to use the elevator .
is there such a mode?

Thanks-Barak.

Title: Re: Altitude sensor
Post by: f5soh on December 22, 2015, 02:35:50 pm
I also , if you please ...would like to ask if there is a way to operate the board without the receiver inputs ?

RcInputs are not optional, you need inputs for arming.

Quote
the application i am interested is fixed wing ..therefor there is no throttle control  .
only option to use the elevator .
is there such a mode?

Not sure i understand... so a glider ? You can stabilize a glider without motor but for autonomous features you need a motor.
The altitudehold thrust mode applies to multirotors, not fixed wing...
Title: Re: Altitude sensor
Post by: barako on December 22, 2015, 02:52:37 pm
Hi f5sho..

Of course there is a motor (an engine to be precise...) but no way to have a servo controlling it so the only controllable channel  is the elevator ...

Is there a altitude hold mode supporting that ?

Thanks!
Barak.
Title: Re: Altitude sensor
Post by: f5soh on December 22, 2015, 02:59:45 pm
Currently altitude error is also controlled by power.

https://bitbucket.org/librepilot/librepilot/src/cefcacbbcf7d7fbfa27aaf13c0bae909562ec869/flight/modules/PathFollower/fixedwingflycontroller.cpp?at=next&fileviewer=file-view-default#fixedwingflycontroller.cpp-375

Not sure how react with a fixed rpm engine
Title: Re: Altitude sensor
Post by: barako on December 22, 2015, 03:12:16 pm
I see...

What is the code you sent me ?

So to my understanding there are  two issues for this application (real aircraft auto pilot):

1. needing ppm inputs from rc receiver .

2. unknown behaviour  when no throttle control is given(only elavator for fixed wing type..)

Am i correct ?

Thanks again for your help!
Title: Re: Altitude sensor
Post by: f5soh on December 22, 2015, 03:47:08 pm
What is the code you sent me ?

Librepilot code ?

Quote
So to my understanding there are  two issues for this application (real aircraft auto pilot):

The biggest issue : Librepilot is not intended for real aircraft use... :)

Title: Re: Altitude sensor
Post by: barako on December 22, 2015, 10:45:06 pm
But as the name of this project implies it for pilot's.. :D

Maybee we will make it happend for aircrafts?

Regrds,
Barak.
Title: Re: Altitude sensor
Post by: f5soh on December 22, 2015, 11:18:14 pm
Or start with simulation ?

https://www.youtube.com/watch?v=iDRYvlnoatk
Title: Re: Altitude sensor
Post by: barako on December 23, 2015, 10:56:43 am
Hi f5sho.

Thanks for the great Video ...!
Title: Altitude sensor
Post by: xfce on December 23, 2015, 12:50:22 pm
does the attitude hold mode useful for helicopter?
Title: Re: Altitude sensor
Post by: TheOtherCliff on December 23, 2015, 11:58:33 pm
If you find someone that has done this, start with their suggestions.  :)

It is used on quadcopters all the time.
But helis must be set up so that the 'thrust' controls collective, not throttle.  I'm afraid that no one has played with that in a long time.  It would be much simpler if a single channel controlled both throttle and collective like with a governor? then it would be just like a quad.

For a heli:
System -> Settings -> SystemSettings -> ThrustControl
and press the red up arrow at the top of the screen to save it.

Be very careful.  Test thoroughly with motor disconnected / off.  Be aware that you might crash a heli.  :(

If you were using a fixed pitch heli the answer would be that it is easy, but that the vertical motion is so slow to react that the vertical PIDs would need to be retuned.
Title: Re: Altitude sensor
Post by: barako on December 24, 2015, 12:32:39 pm
Hi F5soh.

Regarding the code you showed me , is it the actual firmware of the board ?
if so , can i modify it ? and how do i "burn" it back to the board (revo,cc3d etc...)

Thanks for clarifying ..

barak.
Title: Re: Altitude sensor
Post by: f5soh on December 24, 2015, 01:31:46 pm
You may need a build environment and compile firmware and Gcs

 https://librepilot.atlassian.net/wiki/display/LPDOC/Developer+Manual
Title: Re: Altitude sensor
Post by: xfce on December 27, 2015, 09:24:42 am

If you find someone that has done this, start with their suggestions.  :)

It is used on quadcopters all the time.
But helis must be set up so that the 'thrust' controls collective, not throttle.  I'm afraid that no one has played with that in a long time.  It would be much simpler if a single channel controlled both throttle and collective like with a governor? then it would be just like a quad.

For a heli:
System -> Settings -> SystemSettings -> ThrustControl
and press the red up arrow at the top of the screen to save it.

Be very careful.  Test thoroughly with motor disconnected / off.  Be aware that you might crash a heli.  :(

If you were using a fixed pitch heli the answer would be that it is easy, but that the vertical motion is so slow to react that the vertical PIDs would need to be retuned.
Thanks , I will carefully have a try.
Title: Altitude sensor
Post by: xfce on December 27, 2015, 09:28:38 am
Sure baro sensor is used...

You can choose AltitudeHold or AltitudeVario as thrust mode.
(https://forum.librepilot.org/index.php?action=dlattach;topic=468.0;attach=884)
Remember you should arm/hover in manual Thrust mode first and switch to one stabilization using AltitudeVario for example. At this point the Throttle stick position becomes the neutral position.
Does the Baro sensor need to be calibrate? I means the Baro' s attitude  and the actual height are much different ,tThanks
Title: Re: Altitude sensor
Post by: f5soh on December 27, 2015, 11:12:09 am
If you want a calibrated altitude you may need to calibrate every day...

For altitude calculation, we assume ambient pressure is 1013.25hPa

Title: Re: Altitude sensor
Post by: TheOtherCliff on January 02, 2016, 05:43:56 pm
A little clarification in an old thread.

ALtitude Hold and ALtitude Vario (throttle modes) basically don't need calibration.  When you switch to one of these modes, they see the current altitude and use that.  One day it may think it is 300 meters and another day it may think 310 meters for the same aLtitude, 301 meters is still the same "one meter up" that 311 meters is the next day...
Title: Re: Altitude sensor
Post by: xfce on January 03, 2016, 07:49:57 am
Thanks. I have tested. The Baro's attitude(-88m) is different with actual height(10m), but the attitude hold function is ok.
Title: Re: Altitude sensor
Post by: sparko on May 26, 2016, 08:52:04 am
is there a way to setup the baro as variometer for glider that feeds back to Taranis?  thinking of saving $$ on vario.
Title: Re: Altitude sensor
Post by: Mateusz on May 26, 2016, 09:12:44 am
is there a way to setup the baro as variometer for glider that feeds back to Taranis?  thinking of saving $$ on vario.

Two options that I know of are: a) send telemetry over oplink b) display telemetry on osd.
So there is no support for FrSky telemetry (Taranis) at the moment, only UAVTalk. FrSky would require hardware inverter probably.
In short, no such a option involving Taranis to my knowledge.
Title: Re: Altitude sensor
Post by: @marc on May 26, 2016, 09:29:46 am
Hi,

LP2Go shows current Altitude.

See Image below.

You can even "calibrate" it (set it to 0).

Maybe that would work for you?
(One Intention of LP2Go is to show telemetry for people with cheap transmitters, like myself.)

Best regards,
Marc