mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-10-16 22:53:34 +08:00
Fix format and remove ets driver from fmu-v2 build
This commit is contained in:
@@ -485,7 +485,7 @@ protected:
|
||||
|
||||
private:
|
||||
int _instance_id;
|
||||
bool _transmitting_enabled;
|
||||
bool _transmitting_enabled;
|
||||
|
||||
orb_advert_t _mavlink_log_pub;
|
||||
bool _task_running;
|
||||
|
||||
@@ -4404,7 +4404,7 @@ protected:
|
||||
struct vehicle_global_position_s global_pos = {};
|
||||
|
||||
if (_global_pos_sub->update(&global_pos)) {
|
||||
_climb_rate.add_value(fabs(global_pos.vel_d), update_rate);
|
||||
_climb_rate.add_value(fabsf(global_pos.vel_d), update_rate);
|
||||
_groundspeed.add_value(sqrtf(global_pos.vel_n * global_pos.vel_n + global_pos.vel_e * global_pos.vel_e), update_rate);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user