mirror of
https://github.com/PX4/PX4-Autopilot.git
synced 2026-05-26 01:17:51 +08:00
sih:Fix type mismatch
This commit is contained in:
committed by
Daniel Agar
parent
e8c418caaf
commit
a7123f115c
@@ -71,7 +71,8 @@ Sih::Sih() :
|
||||
_airspeed_time = task_start;
|
||||
_gt_time = task_start;
|
||||
_dist_snsr_time = task_start;
|
||||
_vehicle = (VehicleType)constrain(_sih_vtype.get(), 0, 1);
|
||||
_vehicle = (VehicleType)constrain(_sih_vtype.get(), static_cast<typeof _sih_vtype.get()>(0),
|
||||
static_cast<typeof _sih_vtype.get()>(1));
|
||||
}
|
||||
|
||||
Sih::~Sih()
|
||||
|
||||
Reference in New Issue
Block a user