-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathClock.ino
36 lines (30 loc) · 1.24 KB
/
Clock.ino
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
//vROBOTask
void vROBOTask( void *pvParameters )
{
//Deffine local varible in this task
//-------------------------------------------------------
portTickType xLastWakeTime;
const portTickType xFrequency = 100;
xLastWakeTime = xTaskGetTickCount ();
//--------------------------------------------------------
for( ;; )
{
/*
SerialUSB.print("X= ");
SerialUSB.print(X); SerialUSB.print("\t");
SerialUSB.print("Y= ");
SerialUSB.print(Y); SerialUSB.print("\t");
SerialUSB.print("Z= ");
SerialUSB.print(Z); SerialUSB.print("\t");
SerialUSB.print("DXLW:");SerialUSB.print(DXLWTaskHz);SerialUSB.print("\t");
//SerialUSB.print("DXLR:");SerialUSB.print(DXLRTaskHz);SerialUSB.print("\t");
SerialUSB.print("SIMU:");SerialUSB.print(SIMUTaskHz);SerialUSB.print("\t");
SerialUSB.print("MCNT:");SerialUSB.print(MCNTTaskHz);SerialUSB.print("\t");
SerialUSB.print("ROBO:");SerialUSB.print(ROBOTaskHz);SerialUSB.print("\t");
//SerialUSB.print("REGU:");SerialUSB.print(REGUTaskHz);SerialUSB.print("\t");
SerialUSB.println("");
*/
ROBOTaskCNT++;
vTaskDelayUntil( &xLastWakeTime, xFrequency );
}
}