Skip to content

build error #108

@linxzhang

Description

@linxzhang

when I using VSCODE to build esp-drone, I encounter below error:
crtp_commander_generic.c
C:/examples/Enter/components/core/crazyflie/modules/src/crtp_commander_generic.c: In function 'fullStateDecoder':
C:/examples/Enter/components/core/crazyflie/modules/src/crtp_commander_generic.c:337:3: error: 'quatdecompress' accessing 16 bytes in a region of size 4 [-Werror=stringop-overflow=]
337 | quatdecompress(values->quat, (float *)&setpoint->attitudeQuaternion.q0);
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
C:/examples/Enter/components/core/crazyflie/modules/src/crtp_commander_generic.c:337:3: note: referencing argument 2 of type 'float[4]'
In file included from C:/examples/Enter/components/core/crazyflie/modules/src/crtp_commander_generic.c:36:
C:/examples/Enter/components/core/crazyflie/modules/interface/quatcompress.h:65:20: note: in a call to function 'quatdecompress'
65 | static inline void quatdecompress(uint32_t comp, float q[4])

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions