mirror of https://github.com/ArduPilot/ardupilot
AP_Mount: squash static_assert warnings
This commit is contained in:
parent
e63ac3260b
commit
61fc5fc703
|
@ -209,7 +209,7 @@ private:
|
||||||
GimbalMountingDirection mounting_dir;
|
GimbalMountingDirection mounting_dir;
|
||||||
VideoOutputStatus video_mode;
|
VideoOutputStatus video_mode;
|
||||||
} GimbalConfigInfo;
|
} GimbalConfigInfo;
|
||||||
static_assert(sizeof(GimbalConfigInfo) == 7);
|
static_assert(sizeof(GimbalConfigInfo) == 7, "GimbalConfigInfo must be 7 bytes");
|
||||||
|
|
||||||
// camera image types (aka lens)
|
// camera image types (aka lens)
|
||||||
enum class CameraImageType : uint8_t {
|
enum class CameraImageType : uint8_t {
|
||||||
|
|
|
@ -256,7 +256,7 @@ private:
|
||||||
uint16_t apeture; // cameras' aperture * 100
|
uint16_t apeture; // cameras' aperture * 100
|
||||||
uint16_t iso_sensitivity; // camera's iso sensitivity
|
uint16_t iso_sensitivity; // camera's iso sensitivity
|
||||||
} _status; // latest status received
|
} _status; // latest status received
|
||||||
static_assert(sizeof(_status) == 48); // status should be 48 bytes
|
static_assert(sizeof(_status) == 48, "status must be 48 bytes"); // status should be 48 bytes
|
||||||
struct {
|
struct {
|
||||||
uint32_t last_request_ms; // system time that status was last requested
|
uint32_t last_request_ms; // system time that status was last requested
|
||||||
uint32_t last_error_status; // last error status reported to user
|
uint32_t last_error_status; // last error status reported to user
|
||||||
|
|
Loading…
Reference in New Issue