#ifndef  _SOFT_TERRAIN_H_
#define  _SOFT_TERRAIN_H_
#include "stdint.h"
#include "stdbool.h"
#include "common.h"

#pragma pack(1)
typedef struct 
{
  //获取心跳属性
  Connect_check Link;

  //获取雷达高度数据
  short height;
  uint8_t crc;
  
  //获取灵敏度
  char send_fcu_sensi_count;
  char get_radar_sensi_count;
  bool get_radar_sensi_flag; //标志位
  bool fcu_set_sensi_flag;
  short fcu_set_sensi;      //灵敏度
  short get_radar_sensi;
  char set_radar_sensi_count;
  bool set_radar_sensi_ack;

  //获取版本信息
  bool get_radar_ver_flag;
  bool get_radar_sn_flag;
  char version[10];
  int soft_verison;
  int hard_version;

  //SN号
  char sn[20];
}uavr_terrain;
#pragma pack()
extern uavr_terrain uavr56_info;
extern uavr_terrain mimo_ter_info; 

void can_recv_mocib_terrain(uint8_t *data);
void can_recv_enzhao_terrain(uint32_t CanID, uint8_t data[], uint8_t len);
#endif 