1) My Arduino has 8 analogue inputs (A0-A7). If I use 6 of them for my 6S cell monitoring and another 1 for current monitoring, this leaves me with 1 more that I'd like to use for temperature monitoring. Is it possible to do this in a nice way as it seems the configuration files are only setup to read 6 voltages?
2) My (nasty) solution so far has been to hack the analogue reading of a thermistor into the RPM section of the main openXsensor.ino as RPM seems quite an easy section to modify:
Code: Select all
#ifdef MEASURE_RPM
if (millis() > ( lastRpmMillis + 200) ){ // allow transmission of RPM only once every 200 msec
if (RpmSet == true) { // rpm is set
RpmSet = false ;
} else {
RpmValue = 0 ;
}
//sport_rpm.value = RpmValue ; //------------------------Comment this out so RPM isn't populated with actual RPM!
sport_rpm.value = 25 ; //------------------------Add thermistor code here (value of 25 now reported on the tx as a test, which seems to work...)
sport_rpm.available = true ;
lastRpmMillis = millis() ;
Code: Select all
#define DATA_ID_RPM 0xE4
Thanks
Matt