Hey, I’m trying to do some simple stuff with scripting like reading the flight mode i’m in. My code errors every time I try to get anything. For example:
local switch= rc:get_pwm(7) - - Gets RC pwm, i.e. the mode
local mode = vehicle:get_mode()
local RC_PWM = rc:get_pwm(2)
These few lines worked perfectly a month ago but now seem to error. I’ve tried to isolate the problem but keep getting an error message when doing any kind of get function or call. I find this super strange as it worked previously.
I’ve tried running example codes from the github and they error in a similar way… Anyone who has experienced a similar issue?
I also tried going back to plane 4.0.5 from .7 but the error remains. I don’t know what this could be.