mirror of
https://github.com/alexandrebobkov/ESP-Nodes.git
synced 2025-09-30 23:11:04 +00:00
17 lines
384 B
C
17 lines
384 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 {
|
|
int8_t motor1_rpm;
|
|
int8_t motor2_rpm;
|
|
int8_t motor3_rpm;
|
|
int8_t motor4_rpm;
|
|
};
|
|
|
|
#endif |