hi guys this is my code below and i have ad self (too few arguments) error but everythins seems right what is the problem?
function update()
--local pos = ahrs:get_roll()
local lat, lon = gps:location()
-- Print the latitude and longitude
if lat and lon then
print("Latitude: " .. lat)
print("Longitude: " .. lon)
else
print("Unable to fetch GPS location")
end
return update , 1000
end
return update(), 1000