Mercurial > public > ostc4
comparison Small_CPU/Src/compass.c @ 559:84a4e1200726
Check if HW evaluation was performed:
Devicedata is only requested once at startup and then every 10 minutes. To make sure that HW information related to compass and ADC are forwarded, two indicators have been added which may delay the respond by one second.
author | Ideenmodellierer |
---|---|
date | Sun, 15 Nov 2020 19:52:03 +0100 |
parents | 573a2bc796c8 |
children | 91a8f9893e68 |
comparison
equal
deleted
inserted
replaced
558:66aef216828b | 559:84a4e1200726 |
---|---|
292 compass_init_HMC5883L(fast, gain); | 292 compass_init_HMC5883L(fast, gain); |
293 | 293 |
294 if(global.deviceDataSendToMaster.hw_Info.compass == 0) | 294 if(global.deviceDataSendToMaster.hw_Info.compass == 0) |
295 { | 295 { |
296 global.deviceDataSendToMaster.hw_Info.compass = hardwareCompass; | 296 global.deviceDataSendToMaster.hw_Info.compass = hardwareCompass; |
297 global.deviceDataSendToMaster.hw_Info.checkCompass = 1; | |
297 } | 298 } |
298 tfull32 dataBlock[4]; | 299 tfull32 dataBlock[4]; |
299 if(BFA_readLastDataBlock((uint32_t *)dataBlock) == BFA_OK) | 300 if(BFA_readLastDataBlock((uint32_t *)dataBlock) == BFA_OK) |
300 { | 301 { |
301 compass_CX_f = dataBlock[0].Word16.low16; | 302 compass_CX_f = dataBlock[0].Word16.low16; |