1
0
mirror of https://bitbucket.org/librepilot/librepilot.git synced 2025-02-20 10:54:14 +01:00

Switch back to 512 byte packets and fix bug when writing the header size that

was smashing the crc
This commit is contained in:
James Cotton 2012-02-07 11:32:04 -06:00
parent 221a0c5e53
commit 2c60447200
2 changed files with 4 additions and 4 deletions

View File

@ -36,9 +36,9 @@
#include "systemstats.h"
// Private constants
#define OVEROSYNC_PACKET_SIZE 256
#define OVEROSYNC_PACKET_SIZE 512
#define MAX_QUEUE_SIZE 10
#define STACK_SIZE_BYTES 512
#define STACK_SIZE_BYTES 4096
#define TASK_PRIORITY (tskIDLE_PRIORITY + 0)
// Private types
@ -264,7 +264,7 @@ static int32_t packData(uint8_t * data, int32_t length)
overosync->write_pointer;
memcpy(tx_buffer, &tickTime, sizeof(tickTime));
memcpy(tx_buffer + sizeof(tickTime),data,length);
overosync->write_pointer += length;
overosync->write_pointer += length + sizeof(tickTime);
overosync->sent_bytes += length;
overosync->sent_objects++;

2
overo

@ -1 +1 @@
Subproject commit 76d03ac32f28cd26fa76be2a9b8af489e3b872fc
Subproject commit 0c1ccb1def1ae179d2b5340cc011216576cc0b1c