Add new process msg

This commit is contained in:
Valentin Dabstep 2025-06-06 18:37:48 +03:00
parent 66e917de4d
commit 58a051b217
5 changed files with 71 additions and 42 deletions

View file

@ -1,5 +1,4 @@
#ifndef REG_CAH_H_
#define REG_CAH_H_
#pragma once
#define APP_ADDR 0x0800400 // 16KB - Application
#define ADDR_VAR 0x8040000
@ -16,6 +15,10 @@
#define REG_ID 0x01
#define REG_BAUDRATE 0x02
#define DATA_TYPE_ANGLE 0x03
#define DATA_TYPE_VELOCITY 0x04
#define DATA_TYPE_TORQUE 0x05
#define REG_MOTOR_POSPID_Kp 0x30
#define REG_MOTOR_POSPID_Ki 0x31
#define REG_MOTOR_POSPID_Kd 0x32
@ -43,6 +46,3 @@
#define CAN_MSG_MAX_LEN 7
#define CRC_SIZE 2
#define ID_SIZE sizeof(uint8_t)
#endif // REG_CAH_H_