stack fix
This commit is contained in:
parent
ef17789c5a
commit
3602b4c2d6
|
@ -642,7 +642,7 @@ with size......... | /
|
||||||
uint16_t mid = (uint16_t)msg_id;
|
uint16_t mid = (uint16_t)msg_id;
|
||||||
get_logical_time();
|
get_logical_time();
|
||||||
float stime = (float)logical_clock.toSec();
|
float stime = (float)logical_clock.toSec();
|
||||||
uint8_t r8header[4];
|
uint8_t r8header[8];
|
||||||
uint64_t rheader = 0;
|
uint64_t rheader = 0;
|
||||||
memcpy(r8header, &mtype, sizeof(uint8_t));
|
memcpy(r8header, &mtype, sizeof(uint8_t));
|
||||||
memcpy(r8header+1, &mid, sizeof(uint16_t));
|
memcpy(r8header+1, &mid, sizeof(uint16_t));
|
||||||
|
@ -703,7 +703,7 @@ with size......... | /
|
||||||
uint16_t mid = (uint16_t)msg_id;
|
uint16_t mid = (uint16_t)msg_id;
|
||||||
get_logical_time();
|
get_logical_time();
|
||||||
float stime = (float)logical_clock.toSec();
|
float stime = (float)logical_clock.toSec();
|
||||||
uint8_t r8header[4];
|
uint8_t r8header[8];
|
||||||
uint64_t rheader = 0;
|
uint64_t rheader = 0;
|
||||||
memcpy(r8header, &mtype, sizeof(uint8_t));
|
memcpy(r8header, &mtype, sizeof(uint8_t));
|
||||||
memcpy(r8header+1, &mid, sizeof(uint16_t));
|
memcpy(r8header+1, &mid, sizeof(uint16_t));
|
||||||
|
@ -1130,7 +1130,7 @@ void roscontroller::payload_obt(const mavros_msgs::Mavlink::ConstPtr& msg)
|
||||||
{
|
{
|
||||||
// decode msg header
|
// decode msg header
|
||||||
uint64_t rheader = msg->payload64[0];
|
uint64_t rheader = msg->payload64[0];
|
||||||
uint8_t r8header[4];
|
uint8_t r8header[8];
|
||||||
uint8_t mtype;
|
uint8_t mtype;
|
||||||
uint16_t mid;
|
uint16_t mid;
|
||||||
float stime;
|
float stime;
|
||||||
|
|
Loading…
Reference in New Issue