mirror of
https://github.com/APercy/airutils.git
synced 2025-03-22 19:02:20 +00:00
changed acc division
This commit is contained in:
parent
0b73fa504b
commit
6ad18f8e67
1 changed files with 1 additions and 1 deletions
|
@ -108,7 +108,7 @@ function airutils.heli_control(self, dtime, hull_direction, longit_speed, longit
|
||||||
|
|
||||||
local yaw_cmd = 0
|
local yaw_cmd = 0
|
||||||
if is_flying or self.wheels then
|
if is_flying or self.wheels then
|
||||||
local acc_fraction = (self._max_engine_acc / 10)*time_correction
|
local acc_fraction = (self._max_engine_acc / 20)*time_correction
|
||||||
if ctrl.up then
|
if ctrl.up then
|
||||||
if longit_speed < self._max_speed then self._acceleration = self._acceleration + acc_fraction end
|
if longit_speed < self._max_speed then self._acceleration = self._acceleration + acc_fraction end
|
||||||
elseif ctrl.down then
|
elseif ctrl.down then
|
||||||
|
|
Loading…
Add table
Reference in a new issue