PX4Gyroscope:Fix types

This commit is contained in:
David Sidrane 2021-04-21 13:03:39 -07:00 committed by Julian Oes
parent 42e51b0215
commit ff2748ba53
1 changed files with 1 additions and 1 deletions

View File

@ -48,7 +48,7 @@ public:
uint32_t get_device_id() const { return _device_id; }
int32_t get_max_rate_hz() const { return math::constrain(_imu_gyro_rate_max, 100, 4000); }
int32_t get_max_rate_hz() const { return math::constrain(_imu_gyro_rate_max, static_cast<int32_t>(100), static_cast<int32_t>(4000)); }
void set_device_id(uint32_t device_id) { _device_id = device_id; }
void set_device_type(uint8_t devtype);