Files
ESP-Nodes/ESP-IDF_Robot/main/controls.h

17 lines
388 B
C

#ifndef CONTROLS_H
#define CONTROLSC_H
/*
To prevent assigning forbidden rpm values to the motor (i.e. to avoid short-citcuit) accidentially,
we define one struct tha tholds RPMs for four motors, as opposed to defining array of structs for single motor.
*/
struct motors_rpm {
int motor1_rpm_pcm;
int motor2_rpm_pcm;
int motor3_rpm_pcm;
int motor4_rpm_pcm;
};
#endif