Page 1 of 1

CAN gpio ADC rate?

Posted: Sun Dec 03, 2017 10:29 pm
by ol boy
At what rate does the ms2 unit request the adc count from the expansion board?

Re: CAN gpio ADC rate?

Posted: Mon Dec 04, 2017 5:17 pm
by jsmcortina
Every 10ms.

James

Re: CAN gpio ADC rate?

Posted: Mon Dec 04, 2017 7:06 pm
by ol boy
Im pulling baro data from an i2c sparkfun widget and then scaling to 10bit adc inside a teensy3.2. Is it possible to slow down the request rate to 1hz? Im planning to only sample the baro sensor once every 200 feet as i travel down the road. In ms2, what function would need adc over CAN at 100hz?

Thanks Ryan

Re: CAN gpio ADC rate?

Posted: Tue Dec 05, 2017 5:23 am
by jsmcortina
The CAN polling is called from main(). You can alter the code to slow it down.

James

Re: CAN gpio ADC rate?

Posted: Fri Dec 08, 2017 9:42 pm
by ol boy
It took some bit of screwing around but i was able to get cygwin installed, loaded the tools and ran a "make release". I'll give it ago this weekend. How would one remove the lag factor for baro from using the same lag as clt,mat,battery? I cant seem to find where and how the lags are calculated.

Thanks Ryan