@@ -468,8 +473,7 @@ function init_default_config() {
0x70,// time m/s
0x72,// time d/h
0x74
)// time y/m
,
),// 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
...
...
@@ -491,8 +495,8 @@ function init_default_config() {
)
),
'message'=>'Odometer message'
)// Message - up to 56 bytes
;
);// Message - up to 56 bytes
return$default_config;
}
/**
...
...
@@ -539,7 +543,7 @@ function combineLoggerConfigs($new_conf, $dflt = null) {
return$conf;
}
functionsetup_IMU_logger($conf){
global$verbose;
global$verbose,$binfile;
// $xclk_freq=80000000; // 80 MHz in NC353
$xclk_freq=100000000;// 100 MHz in NC393
$data=array();
...
...
@@ -610,12 +614,12 @@ function setup_IMU_logger($conf) {
// / (DFLT_SLAVE_ADDR << 24))
$logger_conf|=($conf['slow_spi']&0x1)<<23;
$logger_conf|=($conf['imu_sa']&0x7)<<24;
$data[$index++]=$logger_conf&0xff;
$data[$index++]=$logger_conf&0xff;// DWORD 0x03
$data[$index++]=($logger_conf>>8)&0xff;
$data[$index++]=($logger_conf>>16)&0xff;
$data[$index++]=($logger_conf>>24)&0xff;
// / Set time driver will go to sleep if the data is not ready yet (less than full sample in the buffer)