#ifndef HVCALLBACK_H_ #define HVCALLBACK_H_ #include #include #include #include #include #include "AP_UAVCAN_Servers.h" struct HVmes { int16_t voltage; int32_t speed; uint32_t fault; int16_t speedref; int16_t torqueIQ; int16_t temperature; int16_t motortemperature; }; extern uint8_t hv_motor_cmd_temp ; extern uint8_t hv_motor_cmd; extern int16_t hv_motor_speed_32 ; struct HVmotor { int16_t speed; int16_t current; int16_t voltage; int16_t temperature; int16_t motortemperature; uint16_t fault; }; void HVcycle(uint8_t _code,uint8_t _buffer[6],HVmes &Thruster); void Haoye(uint8_t _buffer[7],HVmotor &HVmotor); #endif