mirror of
https://github.com/infiniteCable2/panda.git
synced 2026-06-08 10:54:55 +08:00
* motors * can * cleanup unused stuff * initial clean * more clean * remove integral and derivative clamps, revert pwm driver to original * remove integral and derivative clamps, revert pwm driver to original * remove integral and derivative clamps, revert pwm driver to original * dont need this for now * clean * fix can rx and can version error * ignore body for misra mutation test * fix bus recovery, remove body rx hook
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);
|
|
}
|