Skip to content

Commit

Permalink
Implement latest draft of the FLOCK protocol
Browse files Browse the repository at this point in the history
Includes FLOCK, FLOCK-SERIAL and FLOCK-MSP
  • Loading branch information
fiam committed Apr 13, 2019
1 parent a27c4ff commit 57dcae5
Show file tree
Hide file tree
Showing 9 changed files with 543 additions and 113 deletions.
1 change: 1 addition & 0 deletions make/source.mk
Original file line number Diff line number Diff line change
Expand Up @@ -167,6 +167,7 @@ COMMON_SRC = \
io/displayport_max7456.c \
io/displayport_msp.c \
io/displayport_oled.c \
io/flock_serial.c \
io/gps.c \
io/gps_ublox.c \
io/gps_nmea.c \
Expand Down
1 change: 1 addition & 0 deletions src/main/common/log.h
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,7 @@ typedef enum {
LOG_TOPIC_IMU, // 6, mask = 64
LOG_TOPIC_TEMPERATURE, // 7, mask = 128
LOG_TOPIC_POS_ESTIMATOR, // 8, mask = 256
LOG_TOPIC_FLOCK, // 9, mask = 512

LOG_TOPIC_COUNT,
} logTopic_e;
Expand Down
2 changes: 1 addition & 1 deletion src/main/fc/fc_msp.c
Original file line number Diff line number Diff line change
Expand Up @@ -3077,7 +3077,7 @@ bool mspFCProcessInOutCommand(uint16_t cmdMSP, sbuf_t *dst, sbuf_t *src, mspResu
size_t srcSize = sbufBytesRemaining(src);
void *dstPtr = sbufPtr(dst);
size_t dstSize = sbufBytesRemaining(dst);
int ret = flockWrite(srcPtr, srcSize, dstPtr, dstSize);
int ret = flockReceivedMSP(srcPtr, srcSize, dstPtr, dstSize);
if (ret > 0) {
dst->ptr += ret;
}
Expand Down
Loading

0 comments on commit 57dcae5

Please sign in to comment.