Search found 1241 matches

by mstrens
Tue Dec 31, 2013 6:58 pm
Forum: OpenXVario - an open source vario supported by the open source firmwares!!
Topic: OpenXSensor SPORT Interface
Replies: 522
Views: 64299

Re: OpenXSensor SPORT Interface

I tried to change the code of CASE (TRANSMIT) with the following in order to avoid an exit of the interrupt as long as the 8 bits are not yet transmitted. while ( SwUartTXBitCount < 8) { if( SwUartTXData & 0x01 ) { // If the LSB of the TX buffer is 1: CLEAR_TX_PIN() ; // Send a logic 1 on the TX_PIN...
by mstrens
Tue Dec 31, 2013 5:30 pm
Forum: OpenXVario - an open source vario supported by the open source firmwares!!
Topic: OpenXSensor SPORT Interface
Replies: 522
Views: 64299

Re: OpenXSensor SPORT Interface

FYI, I made 2 tests each of them running 600 sec: - in the first one, the openxsensor is connected to the receiver X8R and send the data; so the timer0 is suspended during each byte transmission. - in the second one, the openxsensor is not connected to the receiver and so, timer0 is never suspended ...
by mstrens
Tue Dec 31, 2013 12:28 pm
Forum: OpenXVario - an open source vario supported by the open source firmwares!!
Topic: OpenXSensor SPORT Interface
Replies: 522
Views: 64299

Re: OpenXSensor SPORT Interface

Mike, I tested your proposal. This fix the issue getting wrong pressure measurements. I see still one less bigger issue when micros() miss some millisecond overflow. The enlapsed time between 2 micros() is used too in order to calculate the climb rate (in cm/sec). An under estimation of the enlapsed...
by mstrens
Mon Dec 30, 2013 8:30 pm
Forum: OpenXVario - an open source vario supported by the open source firmwares!!
Topic: OpenXSensor SPORT Interface
Replies: 522
Views: 64299

Re: OpenXSensor SPORT Interface

Mike, wat do you think about following proposal ? Interrupt should not be allowed when sending one byte on the Sport because this process is time critical (one bit every 17 usec). This would be solved automatically if you do not exit at all from the interrupt while sending the 8 bits. This requires ...
by mstrens
Mon Dec 30, 2013 7:53 pm
Forum: OpenXVario - an open source vario supported by the open source firmwares!!
Topic: OpenXSensor SPORT Interface
Replies: 522
Views: 64299

Re: OpenXSensor SPORT Interface

Mike, it is for sure possible to replace the arduino micros() function by another one. Still I think that using only a running 16 bits counter at 0.5usec will totally solve the issues because the timer will quite quickly fall back to 0 and so the next value returned by halfmicros() will be lower tha...
by mstrens
Mon Dec 30, 2013 2:00 pm
Forum: OpenXVario - an open source vario supported by the open source firmwares!!
Topic: OpenXSensor SPORT Interface
Replies: 522
Views: 64299

Re: OpenXSensor SPORT Interface

Mike, I run a test with my version of the program where I put the instructions DISABLE_TIMER0_INT() and ENABLE_TIMER0_INT() as comment. The test run more than 2 hours and nor the openxsensor nor the taranis display blocked. You are right that some data could be misread at the receive end. I could no...
by mstrens
Mon Dec 30, 2013 8:48 am
Forum: OpenXVario - an open source vario supported by the open source firmwares!!
Topic: OpenXSensor SPORT Interface
Replies: 522
Views: 64299

Re: OpenXSensor SPORT Interface

Mike, all other printouts are ok. I get about one wrong printout every 100 printout (but is not regular). micro() and lastmicros are defined as UNSIGNED long. I presume that (micros()-lastmicros>=9000) return true when micros() is smaller than lastmicros (because there are unsigned). Then the progra...
by mstrens
Sun Dec 29, 2013 10:33 pm
Forum: OpenXVario - an open source vario supported by the open source firmwares!!
Topic: OpenXSensor SPORT Interface
Replies: 522
Views: 64299

Re: OpenXSensor SPORT Interface

Mike, I said in a previous post that I noticed wrong values returned with the function micros() (from arduino library). I made some additionnal test with my own version of openxsensor I am working on (in order to transmit voltage op top of altitude and climbrate using SPORT). I can confirm that ther...
by mstrens
Sun Dec 29, 2013 9:28 am
Forum: OpenXVario - an open source vario supported by the open source firmwares!!
Topic: OpenXSensor SPORT Interface
Replies: 522
Views: 64299

Re: OpenXSensor SPORT Interface

Mike, thanks for handling the byte stuffing. I test it and it seems ok. To test it, I changed the code where you fill TxData in this way if ( pdata->dataLock == 0 ) { TxData[0] = pdata->data[0] ; TxData[1] = pdata->data[1] ; TxData[2] = pdata->data[2] ; TxData[3] = 0x7D; TxData[4] = 0 ; TxData[5] = ...
by mstrens
Sat Dec 28, 2013 11:03 am
Forum: OpenXVario - an open source vario supported by the open source firmwares!!
Topic: OpenXSensor SPORT Interface
Replies: 522
Views: 64299

Re: OpenXSensor SPORT Interface

Hi RigthRudder, About using the pressure (=original code) instead of the altitude (my code) in order to calculate the clim rate should not make any difference. In fact original code (in the file OXS_MS5611.CPP) calculates first the sum of 20 differences between a previous pressure and a new one at t...
by mstrens
Fri Dec 27, 2013 8:52 pm
Forum: OpenXVario - an open source vario supported by the open source firmwares!!
Topic: OpenXSensor SPORT Interface
Replies: 522
Views: 64299

Re: OpenXSensor SPORT Interface

Hello Rightrudder, I am new on the forum and I follow this project since a few weeks. First, I would like to thank all members spending time and effort in order to provide such good opensource project. I have build an openxsensor the last days. It works and I decided to try adding some code in order...

Go to advanced search