Sensor task runs with 100ms
This commit is contained in:
parent
a396a6217f
commit
df70e2daa5
|
@ -211,11 +211,11 @@ void sensorTask(void *param){
|
||||||
tN2kMsg N2kMsg;
|
tN2kMsg N2kMsg;
|
||||||
shared->setSensorData(sensors); //set initially read values
|
shared->setSensorData(sensors); //set initially read values
|
||||||
|
|
||||||
// Sensor task loop runs with 10ms
|
// Sensor task loop runs with 100ms
|
||||||
//####################################################################################
|
//####################################################################################
|
||||||
|
|
||||||
while (true){
|
while (true){
|
||||||
delay(10);
|
delay(100); // Loop time 100ms
|
||||||
Timer1.update(); // Update for Timer1
|
Timer1.update(); // Update for Timer1
|
||||||
Timer2.update(); // Update for Timer2
|
Timer2.update(); // Update for Timer2
|
||||||
if (millis() > starttime0 + 100)
|
if (millis() > starttime0 + 100)
|
||||||
|
|
Loading…
Reference in New Issue