Closed mello73 closed 3 years ago
Hi @mello73
It's interesting that we could detect the baud rate, but still not find Frsky telemetry. To find Frsky telem we look for 0x7E like this:
if (chr==0x7E) FSky++; // Found candidate FrSky
S.Port telem is inverted, meaning that it is "idle low", while "normal" telemetry is idle high. So either we tell the esp32 to expect inverted, or you need a hardware inverter.
Let's rather tell the esp32 to expect inverted telemetry
In tab GetProtocol, line 60 replace
inSerial.begin(baud);
with this:
#if ( (defined ESP8266) || (defined ESP32) )
inSerial.begin(baud, SERIAL_8N1, rxPin, txPin, frInvert);
#else
inSerial.begin(baud);
#endif
Now in the main tab, called AntTrack..., line 486, similarly replace
inSerial.begin(baud);
with this:
#if ( (defined ESP8266) || (defined ESP32) )
inSerial.begin(baud, SERIAL_8N1, rxPin, txPin, frInvert);
#else
inSerial.begin(baud);
#endif
Now, in the config.h tab, in the configuration for ESP32 Dev Module, approximately line 198, insert
#define frInvert true
I will make these changes and publish v2.15.5.
Could you let me know the outcome?
Regards Eric
THANKS Eric for your reactivity !
I apply all the modify, but I can't test because : <<frInvert' was not declared in this scope >>
Thanks ,,,
Ok, missed that. Put a hash # in front of define frInvert true
Hello Eric,
Thanks !
A new little error :
Have a nice day
Strange. Did you select Dev Board ?
//*********************************************************************************************
//********************** S E L E C T E S P B O A R D V A R I A N T ******************
#define ESP32_Variant 1 // ESP32 Dev Module - there are several sub-variants that work
Merci Eric ! Great ! Great ! Great !
hbGood = 1 gpsGood = 1 homeInitialised = 1 0x5002 Num sats=13 gpsStatus=3 HDOP=8 fr_vdop=0 gpsAlt=22.8 neg=0 hbGood = 1 gpsGood = 1 homeInitialised = 1 hom.lat = 45.5XXX hom.lon = 6.XXX hom.alt = -3 cur.lat = 45.XXX cur.lon = 6.XXX cur.alt = 23 hc_vector.az= 283.66 hc_vector.el= 62.76 hc_vector.dist= 12 Elapsed= 273.836 Az = 283.66 El = 62.76 hmHdg = 241.47 pntAz = 132 El = 62.76 LastGoodpntAz = 132 LastGoodEl = 62 hmHdg = 241.47 azPWM = 1080 elPWM = 1780 hbGood = 1 gpsGood = 1 homeInitialised = 1
Yes !!!!
You have reason
At the start, I test different configuration and only one esp configuratyon active the display for my cheap ESP TTGO :
For momentanly solve my issue I add in the main tab, called "AntTrack.." at line 187 :
bool frInvert = true;
I think it's not the best pactice ,,,,
Thanks a lot
un plaisir mon ami
I plan to upgrade support for more boards and more displays, but time escapes me.
C'est toi mon AMI -> Merci pour ton Grand Aide ! I never see in the past a tracking antenna working . I want to see and check if the algorithm works good ,,, I'm very very impatiently !!!
All Works good Merci
Bonjour mon ami
I came back here because the other site was getting a bit jumbled.
I recommend this way forward now that your servos are working:
I have also added FrSky UDP out into Mav2PT.
Cordialement, mon ami. Nous partons pour le centre commercial.
If you PM me I will give you my e-mail address
Hello,
I have
R9M ACCST version ( the older version of the ACCESS protocol )
Aduplane V4.1.0
SERIAL PROTOCOL 23
I dont't know if my process or connexion wirring it's ok or not
Thannks a lot