HVcallback.H 617 B

123456789101112131415161718192021222324252627282930313233343536373839
  1. #ifndef HVCALLBACK_H_
  2. #define HVCALLBACK_H_
  3. #include <uavcan/uavcan.hpp>
  4. #include <AP_HAL/CAN.h>
  5. #include <AP_HAL/Semaphores.h>
  6. #include <AP_Param/AP_Param.h>
  7. #include <uavcan/helpers/heap_based_pool_allocator.hpp>
  8. #include "AP_UAVCAN_Servers.h"
  9. struct HVmes
  10. {
  11. int16_t voltage;
  12. int32_t speed;
  13. uint32_t fault;
  14. int16_t speedref;
  15. int16_t torqueIQ;
  16. int16_t temperature;
  17. int16_t motortemperature;
  18. };
  19. extern uint8_t hv_motor_cmd_temp ;
  20. extern uint8_t hv_motor_cmd;
  21. extern int16_t hv_motor_speed_32 ;
  22. void HVcycle(uint8_t _code,uint8_t _buffer[6],HVmes &Thruster);
  23. #endif