mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-10-22 00:33:34 +08:00
some printf format and conversion fixes
This commit is contained in:
@@ -44,7 +44,8 @@
|
||||
|
||||
void set_health_flags(uint64_t subsystem_type, bool present, bool enabled, bool ok, vehicle_status_s &status)
|
||||
{
|
||||
PX4_DEBUG("set_health_flags: Type %llu pres=%u enabl=%u ok=%u", subsystem_type, present, enabled, ok);
|
||||
PX4_DEBUG("set_health_flags: Type %llu pres=%u enabl=%u ok=%u", (long long unsigned int)subsystem_type, present,
|
||||
enabled, ok);
|
||||
|
||||
if (present) {
|
||||
status.onboard_control_sensors_present |= (uint32_t)subsystem_type;
|
||||
|
||||
@@ -198,7 +198,7 @@ void Sih::parameters_updated()
|
||||
|
||||
_LAT0 = (double)_sih_lat0.get() * 1.0e-7;
|
||||
_LON0 = (double)_sih_lon0.get() * 1.0e-7;
|
||||
_COS_LAT0 = cosl(radians(_LAT0));
|
||||
_COS_LAT0 = cosl((long double)radians(_LAT0));
|
||||
|
||||
_MASS = _sih_mass.get();
|
||||
|
||||
|
||||
Reference in New Issue
Block a user