-
Notifications
You must be signed in to change notification settings - Fork 0
/
CarDuino.ino
41 lines (38 loc) · 1.39 KB
/
CarDuino.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
37
38
39
40
41
/*
* @Author: ELEGOO
* @Date: 2019-10-22 11:59:09
* @LastEditTime: 2020-12-18 14:14:35
* @LastEditors: Changhua
* @Description: Smart Robot Car V4.0
* @FilePath:
*/
#include <avr/wdt.h>
#include "car.h"
void setup()
{
Application_FunctionSet.ApplicationFunctionSet_Init();
// wdt_enable(WDTO_2S);
}
void loop()
{
//put your main code here, to run repeatedly :
wdt_reset();
Application_FunctionSet.ApplicationFunctionSet_SensorDataUpdate();
Application_FunctionSet.ApplicationFunctionSet_KeyCommand();
Application_FunctionSet.ApplicationFunctionSet_RGB();
/* Application_FunctionSet.Follow(); */
Application_FunctionSet.ObstacleAvoidance();
//Application_FunctionSet.Track();
/* Application_FunctionSet.ApplicationFunctionSet_Rocker();
Application_FunctionSet.ApplicationFunctionSet_Standby();
Application_FunctionSet.ApplicationFunctionSet_IRrecv();
Application_FunctionSet.ApplicationFunctionSet_SerialPortDataAnalysis();
Application_FunctionSet.CMD_ServoControl_xxx0();
Application_FunctionSet.CMD_MotorControl_xxx0();
Application_FunctionSet.CMD_CarControlTimeLimit_xxx0();
Application_FunctionSet.CMD_CarControlNoTimeLimit_xxx0();
Application_FunctionSet.CMD_MotorControlSpeed_xxx0();
Application_FunctionSet.CMD_LightingControlTimeLimit_xxx0();
Application_FunctionSet.CMD_LightingControlNoTimeLimit_xxx0();
Application_FunctionSet.CMD_ClearAllFunctions_xxx0(); */
}