#include "Blimp.h"1/*2* Init and run calls for velocity flight mode3*/45// Runs the main velocity controller6void ModeVelocity::run()7{8Vector3f target_vel;9float target_vel_yaw;10get_pilot_input(target_vel, target_vel_yaw);11target_vel.x *= g.max_vel_xy;12target_vel.y *= g.max_vel_xy;13if (g.simple_mode == 0) {14//If simple mode is disabled, input is in body-frame, thus needs to be rotated.15blimp.rotate_BF_to_NE(target_vel.xy());16}17target_vel.z *= g.max_vel_z;18target_vel_yaw *= g.max_vel_yaw;1920blimp.loiter->run_vel(target_vel, target_vel_yaw, Vector4b{false,false,false,false});21}222324