mirror of
https://github.com/firestar5683/StarPilot.git
synced 2026-09-29 19:03:59 +08:00
33d5cfc393
date: 2025-12-18T23:23:16 master commit: 3cdee7b54718ee14bd85befd6c5bad3d699c5479
16 lines
281 B
C
16 lines
281 B
C
#pragma once
|
|
|
|
#include <stdbool.h>
|
|
#include <stdint.h>
|
|
|
|
#define BODY_MOTOR_COUNT 2U
|
|
|
|
typedef enum {
|
|
BODY_MOTOR_LEFT = 1U,
|
|
BODY_MOTOR_RIGHT = 2U,
|
|
} body_motor_id_e;
|
|
|
|
static inline bool body_motor_is_valid(uint8_t motor) {
|
|
return (motor > 0U) && (motor <= BODY_MOTOR_COUNT);
|
|
}
|