Browse Source

精简实时uavcan pos 消息

mission-4.1.18
binsir 4 years ago
parent
commit
19bf9484b7
  1. 3
      libraries/AP_UAVCAN/AP_UAVCAN.cpp
  2. 9
      libraries/AP_UAVCAN/dsdl/zrzk/equipment/uav/26134.Position.uavcan

3
libraries/AP_UAVCAN/AP_UAVCAN.cpp

@ -1197,11 +1197,10 @@ void AP_UAVCAN::zr_uav_pos_send() @@ -1197,11 +1197,10 @@ void AP_UAVCAN::zr_uav_pos_send()
zrzk::equipment::uav::Position msg;
WITH_SEMAPHORE(uav_pos_sem);
msg.p1 =0;
msg.latitude_deg_1e7 = loc.lat;
msg.longitude_deg_1e7 = loc.lng;
msg.height_abs_cm = altitude;
msg.need_wait_data = false; //FIXME 留待以后ppk数据来更新
msg.usec = AP::gps().time_epoch_usec() / 1000;
zr_uav_pos[_driver_index]->broadcast(msg);
}
}

9
libraries/AP_UAVCAN/dsdl/zrzk/equipment/uav/26134.Position.uavcan

@ -1,9 +1,4 @@ @@ -1,9 +1,4 @@
uint5 cam_photo_bit
bool intant_data
bool home_data
bool need_wait_data
uint16 index
uint8 p1
int32 longitude_deg_1e7
int32 latitude_deg_1e7
int24 height_abs_cm
truncated uint56 usec
int24 height_abs_cm
Loading…
Cancel
Save