mirror of https://github.com/ArduPilot/ardupilot
AP_Scripting: ESC_slew_rate: fix lua warning
Docs say that logger must be called with `:`.
This commit is contained in:
parent
44b3016496
commit
ecd03b59a9
|
@ -44,7 +44,7 @@ function update()
|
|||
local pwm_mid = 0.5*(pwm_min+pwm_max)
|
||||
local pwm = math.floor(pwm_mid + (pwm_max-pwm_mid) * output)
|
||||
SRV_Channels:set_output_pwm_chan_timeout(chan-1, pwm, 100)
|
||||
logger.write('ESLW', 'PWM,Freq', 'If', pwm, freq)
|
||||
logger:write('ESLW', 'PWM,Freq', 'If', pwm, freq)
|
||||
gcs:send_named_float('PWN',pwm)
|
||||
gcs:send_named_float('FREQ',freq)
|
||||
end
|
||||
|
|
Loading…
Reference in New Issue