some printf format and conversion fixes

This commit is contained in:
rfu
2020-05-04 09:49:23 +02:00
committed by Beat Küng
parent 90c3819df5
commit 8787780de4
8 changed files with 15 additions and 20 deletions
@@ -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;
+1 -1
View File
@@ -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();