@@ -369,9 +420,6 @@ function loggerConfigFromXML($confXML){
}
return$conf;
}
functioninit_default_config(){
$default_config=array(
'imu_period'=>'auto',// 0xFFFFFFFF, // 0 - off, >=0xff000000 - "when ready", else - number of SCLK periods
@@ -419,22 +467,36 @@ function init_default_config(){
0x0e,// temperature
0x70,// time m/s
0x72,// time d/h
0x74// time y/m
),
0x74
)// time y/m
,
'nmea'=>array(
// / first three letters - sentence to log (letters after "$GP"). next "n"/"b" (up to 24 total) - "n" number (will be encoded 4 digits/byte, follwed by "0xF"
// / "b" - byte - all but last will have MSB 0 (& 0x7f), the last one - with MSB set (| 0x80). If there are no characters in the field 0xff will be output
array('RMC','nbnbnbnnnnb'),
array('GGA','nnbnbnnnnbnbbb'),
array('GSA','bnnnnnnnnnnnnnnnn'),
array('VTG','nbnbnbnb')
array(
'RMC',
'nbnbnbnnnnb'
),
'message'=>'Odometer message'// Message - up to 56 bytes
);
array(
'GGA',
'nnbnbnnnnbnbbb'
),
array(
'GSA',
'bnnnnnnnnnnnnnnnn'
),
array(
'VTG',
'nbnbnbnb'
)
),
'message'=>'Odometer message'
)// Message - up to 56 bytes
;
return$default_config;
}
/**
Combines $conf and $dflt arrays - all driver parameters are overwritten aftre the call
* Combines $conf and $dflt arrays - all driver parameters are overwritten aftre the call