OpenLRS - thUndead's MODs :D

Started by thundead, November 15, 2011, 02:17:53 AM

Previous topic - Next topic

thundead

I finally managed to drop the baudrate down to 9600 but need to compress data a bit more lol

Quote from: papa_lazerous on December 04, 2011, 12:49:26 PM
You going to get the girlfriend to take the Rx for a long walk?  :haha:

I'm going range testing tonight also,  finish work in 4 hours then off I go :)
If you like my work feel free to contribuite to my Pringles & Red Bull Fund :) http://forum.flytron.

thundead


Everyone please check 1st and 2nd post. Cheers.



Quote from: thundead on November 15, 2011, 02:17:53 AM

DISCLAIMER

This is still an open source project so may still have bugs but that's why together we can get everything sorted out and have a cheap and reliable system.

this is my first stable version.
Based on 1.10 by Melih
Thanks to Devonian for the 459 mod
------

A lot of time went into this  firmware so if anyone wants to send me some Pringles and Red Bull to keep me going here is the magic button :))



Pringles & Red Bull Thank You list so far :)

- pk-surfing
- papa_lazerous
- simondale

---------------------------------
Current Features

- thUndead's RSSI MOD - fine tuned 3.2 to 0v rssi Vout
- In Flight Fail Safe MOD << YES YOU CAN :P
- 38.4Kbps Baud Rate - still looking into lowering it

----------------------------------
Upcoming Features - Will release one more firmware and that's it

- Diversity
- Smart manual hopping



INSTALLATION

-Load up the firmwares in Arduino and flash them accordingly.
-noob friendly guide in the works


Available FWs:

459Mhz thUndeadMOD v1.0
=http://www.multiupload.com/YZI8WTK7A0

-----------------------------------
DOCUMENTATION

RSSI: V output: min/max 0-3.2v

CALIBRATION:
uncomment Serial_RSSI in the config.h file (the RX one) and with you TX and RX ON check the outputted value in the Serial Monitor   ( going in the other room might increase the value lol ) and that should be your max RSSI output.

in the config.h change the max value accordingly:
//###### RSSI STUFF ########
//
#define RSSI_MAX 110 //turn on the RSSI debug and see what values you r getting at close range....
#define RSSI_SMOOTH  60   //increase if the Vout is still jumpy.

RSSI ON v2 BOARDS IS on CH 8 !

If the Vout is still jumpy, increase RSSI_SMOOTH and recheck your RSSI_MAX
-----------------------

In Flight Fail-Safe: nothing to change/calibrate here. Simply press and release the TX button after 2 secs and your F/S values are stored. You should see the red LED on the RX blink  when FS has been saved.
---------------------

OpenLRS FACTS
------------------
- this first stable release adds the much needed RSSI and Quick n Easy fail safe to Melih's firmware.

- Here are my conclusions about the openLRS system after some long weeks of tuning, coding and analyzing all the approaches I could think of (FHSS,manual hopping, adaptive hopping etc...)


1. Stock antennas are crap crap craptastic! Change them ASAP. My antenna mod in 2nd post.
2. thing is good for planes for >2km flights.
3. thing is crap for multi-rotors flying low when on crappy stock antennas.
4. Video is rubbish for anything Long Range related. Want more ? go for a booster.

Sorry for my pessimistic view on the system but lost too much time trying to bet the best out of the hardware without much success.


Hope that was an interesting read,

Cheers,
Mihai.




If you like my work feel free to contribuite to my Pringles & Red Bull Fund :) http://forum.flytron.

gekoch

very nice FW!!! Thx a lot!
One question do I have to activate the telemetry for the RSSI?
(TELEMETRY_ENABLED 1)
And how can I transmit the RSSI from the RX to the TX and read it
out by the serial terminal???

Thx
Andy

thundead

Telemetry is on by default in my firmware.

set TELEMETRY_OUTPUT_ENABLED to 1 to get rx rssi. that should show you the whole telemetry buffer from which the first value should be your Rssi :D

Mihai

Quote from: gekoch on December 06, 2011, 01:08:41 AM
very nice FW!!! Thx a lot!
One question do I have to activate the telemetry for the RSSI?
(TELEMETRY_ENABLED 1)
And how can I transmit the RSSI from the RX to the TX and read it
out by the serial terminal???

Thx
Andy
If you like my work feel free to contribuite to my Pringles & Red Bull Fund :) http://forum.flytron.

gekoch

hmm thx

but I just get junck like:

Tl0000000000000048
TN0000000000000048
TP0000000000000048
Tp0000000000000048
TR0000000000000048
Tn0000000000000048
T‡0000000000000048
Tm0000000000000048
Tn0000000000000048
To0000000000000048
TS0000000000000048
T‡0000000000000048


in the TX Serial monitor. Baud rate are set right, and the first letter after the 'T' should be
the RSSI value but it does not get properly transmitted...

When I use

RF_Tx_Buffer[0]= 'T';
//RF_Tx_Buffer[1]= Rx_RSSI;
if (loop_counter==1) SET_Telemetry(Rx_RSSI,10,1);

in the 'fuctions' section

I get

T13600000000048

and 136 is the RSSI level but still how get I rid of the '0'?

Andy

gekoch

#110
ok I modifed the code a bit.
On the TX side I made those changes:

#if (TELEMETRY_OUTPUT_ENABLED==1)
     for(i = 4; i< (RF_Rx_Buffer[3]+4); i++) //write serial
       Serial.print(RF_Rx_Buffer);
     Serial.println();
     // Serial.println(int(RF_Rx_Buffer[16]));
#endif      

now I just get the RSSI values out in the serial Monitor!
Or am I doing something wrong with this change?


But still the RSSI value does can jumo from 60 to 100 back to 70 and so on...
The RSSI level when measured directly on the Servopinsode on the RX is stable
Why is this so?


Andy

thundead

nope thats wrong, try
#if (TELEMETRY_OUTPUT_ENABLED==1)
 
     // Serial.println(Rx_RSSI);
#endif


that will still oscillate because I'm using a smoothening algorithm on the RX side but I am not sending the smoothened value but the RAW value for the RX rssi :)

I will change that in my upcoming firmware.


Hope that helps.

Mihai.

Quote from: gekoch on December 06, 2011, 08:37:47 AM
ok I modifed the code a bit.
On the TX side I made those changes:

#if (TELEMETRY_OUTPUT_ENABLED==1)
     for(i = 4; i< (RF_Rx_Buffer[3]+4); i++) //write serial
       Serial.print(RF_Rx_Buffer);
     Serial.println();
     // Serial.println(int(RF_Rx_Buffer[16]));
#endif      

now I just get the RSSI values out in the serial Monitor!
Or am I doing something wrong with this change?


But still the RSSI value does can jumo from 60 to 100 back to 70 and so on...
The RSSI level when measured directly on the Servopinsode on the RX is stable
Why is this so?


Andy
If you like my work feel free to contribuite to my Pringles & Red Bull Fund :) http://forum.flytron.

gekoch

Quote from: thundead on December 06, 2011, 10:41:58 AM
nope thats wrong, try
#if (TELEMETRY_OUTPUT_ENABLED==1)
 
     // Serial.println(Rx_RSSI);
#endif



What? so I will receive nothing :) ok....

thundead

????????????


Quote from: gekoch on December 06, 2011, 11:12:41 AM
Quote from: thundead on December 06, 2011, 10:41:58 AM
nope thats wrong, try
#if (TELEMETRY_OUTPUT_ENABLED==1)
 
     // Serial.println(Rx_RSSI);
#endif



What? so I will receive nothing :) ok....
If you like my work feel free to contribuite to my Pringles & Red Bull Fund :) http://forum.flytron.

gekoch

#if (TELEMETRY_OUTPUT_ENABLED==1)
   
      // Serial.println(Rx_RSSI);
#endif

this means that everything is deactivated

thundead

aaa lol without the // of course

Quote from: gekoch on December 06, 2011, 12:00:36 PM
#if (TELEMETRY_OUTPUT_ENABLED==1)
   
      // Serial.println(Rx_RSSI);
#endif

this means that everything is deactivated

If you like my work feel free to contribuite to my Pringles & Red Bull Fund :) http://forum.flytron.

gekoch

ok now this seems more logical :)

ghost2212

Have you got a replacement board yet mihai?

Brett

thundead

Hey guys,
Back home at last but no internet :(
great to see the thing working ok for u ;)
@ghost, yup got my stuff, im waiting for another rx and its diversity time :)
If you like my work feel free to contribuite to my Pringles & Red Bull Fund :) http://forum.flytron.

gekoch

Hy got another question:

I send now over the Bride mode from the RX unit the "Rx_RSSI" value.
Now is this the RSSI that tells me how strong the signal is?

Thx
Andy