Rev 473 | Rev 475 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 473 | Rev 474 | ||
---|---|---|---|
Line 834... | Line 834... | ||
834 | if(s-- || (I2C_CompassPort == I2C_INTERN_1)) NCMAG_GetMagVector(); |
834 | if(s-- || (I2C_CompassPort == I2C_INTERN_1)) NCMAG_GetMagVector(); |
835 | else |
835 | else |
836 | { |
836 | { |
837 | if(AccRawVector.X + AccRawVector.Y + AccRawVector.Z == 0) NCMAG_Init_ACCSensor(); |
837 | if(AccRawVector.X + AccRawVector.Y + AccRawVector.Z == 0) NCMAG_Init_ACCSensor(); |
838 | NCMAG_GetAccVector(0); |
838 | NCMAG_GetAccVector(0); |
839 | delay = 3; |
839 | delay = 10; |
840 | s = 50; |
840 | s = 40; // about 0,8 sec |
841 | }; |
841 | }; |
842 | - | ||
- | 842 | if(!s) delay = 10; // ACC-Reading in the next step after 10ms |
|
843 | break; |
843 | break; |
844 | } |
844 | } |
845 | if(send_config == 24) TimerUpdate = SetDelay(15); // next event is the re-configuration |
845 | if(send_config == 24) TimerUpdate = SetDelay(15); // next event is the re-configuration |
846 | else TimerUpdate = SetDelay(delay); // every 20 ms are 50 Hz |
846 | else TimerUpdate = SetDelay(delay); // every 20 ms are 50 Hz |
847 | } |
847 | } |