114d93cec7
Ultraworked with [Sisyphus](https://github.com/code-yeongyu/oh-my-openagent) Co-authored-by: Sisyphus <clio-agent@sisyphuslabs.ai>
19 lines
361 B
C
19 lines
361 B
C
#ifndef CONTROL_H
|
|
#define CONTROL_H
|
|
|
|
#include "MotorController.h"
|
|
#include "GPIO.h"
|
|
|
|
// ── 电机控制接口 ──
|
|
void ControlInit();
|
|
void ControlUpdate(double speed, bool zebra_block);
|
|
void ControlExit();
|
|
|
|
// 左右电机对象(control.cpp 分配)
|
|
extern MotorController *motorController[2];
|
|
|
|
// 电机使能 GPIO (73)
|
|
extern GPIO mortorEN;
|
|
|
|
#endif
|