Quote from: Walter Schulz on January 03, 2024, 10:44:31 AM
I can only strongly recommend not to use nightly build for LUA scripting!
I was looking at the lua-fix builds under experimental builds. Is this for all cameras?
Etiquette, expectations, entitlement...
@autoexec_bin | #magiclantern | Discord | Reddit | Server issues
This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.
Show posts MenuQuote from: Walter Schulz on January 03, 2024, 10:44:31 AM
I can only strongly recommend not to use nightly build for LUA scripting!
Quote from: names_are_hard on January 03, 2024, 02:57:48 AM
What build of ML are you using?
If you reduce your script so it only does a sleep(2) in main, do you still see an error?
If you replace sleep(2) with msleep(2000), do you see an error?
require("logger")
-- global logger
test_log = nil
LAF = nil
Number_of_Shots=nil
AF_every_Shot=nil
function main()
sleep(2)
end
function main2()
test_log = logger("ML/LOGS/LUATEST.LOG")
Number_of_Shots=100
AF_every_Shot=10
menu.close()
console.show()
print "Lunatic!"
sleep(2)
for i=Number_of_Shots,1,-1
do
if ((Number_of_Shots % AF_every_Shot) == 0) then
lunatic_AF()
else
camera.shoot(false)
end
sleep(1.6)
end
print "Press any key to exit."
key.wait()
console.hide()
end
function lunatic_AF()
if lens.name == "" then
printf("No Lens Detected.\n")
return false
end
if not lens.af then
printf("Please enable autofocus.\n")
return false
end
if not lv.running then
lv.start()
assert(lv.running)
end
if lens.af then
LAF=camera.shoot(true)
lv.stop()
return LAF
end
lv.stop()
return false
end -- lunatic_AF
function printf(s,...)
test_log:writef(s,...)
if not console.visible then
display.notify_box(s:format(...), 5000)
end
end
keymenu = menu.new
{
name = "Lunatic - Moon Stack Automation",
help = "Automates Lunar Stack Capture",
select = function(this) task.create(main) end,
}
require("logger")
-- global logger
test_log = nil
LAF = nil
Number_of_Shots=nil
AF_every_Shot=nil
function main()
test_log = logger("ML/LOGS/LUATEST.LOG")
Number_of_Shots=100
AF_every_Shot=10
menu.close()
console.show()
print "Lunatic!"
sleep(2)
for i=Number_of_Shots,1,-1
do
if ((Number_of_Shots % AF_every_Shot) == 0) then
lunatic_AF()
else
camera.shoot(false)
end
sleep(1.6)
end
print "Press any key to exit."
key.wait()
console.hide()
end
function lunatic_AF()
if lens.name == "" then
printf("No Lens Detected.\n")
return false
end
if not lens.af then
printf("Please enable autofocus.\n")
return false
end
if not lv.running then
lv.start()
assert(lv.running)
end
if lens.af then
LAF=camera.shoot(true)
lv.stop()
return LAF
end
lv.stop()
return false
end -- lunatic_AF
function printf(s,...)
test_log:writef(s,...)
if not console.visible then
display.notify_box(s:format(...), 5000)
end
end
keymenu = menu.new
{
name = "Lunatic - Moon Stack Automation",
help = "Automates Lunar Stack Capture",
select = function(this) task.create(main) end,
}
Quote from: dansawyer on August 02, 2019, 09:32:11 PM
Use of astro.mo
I was able to compile and install astro.mo. Last night I tried to test it and have a couple of general questions.
First, it generally worked. I was using a an EOSM and a 90 mm fl f4 lens. This may be short for the module design target, but I believe the fl should not matter significantly. The issue above of the red background oscillating in and out did not occur in actual use, only in the menu screen.
First, the number of visible stars was very limited in the display. I was aiming generally West and chose Vega around 3 AM. Other stars did not show up in the field. Is this the general experience or on there something I am missing? Should I use EV display amplification? Will that distort the operation by creating noise?
Second, the actual focus display seemed to vary quite a bit on its own. That is the min bar would move to null then up several bars, then back down. This variation seemed to be on the same order of magnitude as changes in focus. Is this normal? Is there an error in my testing? Is this the result of a relatively short fl lens.
I am looking forward to testing this on my Celestron 9.25.
Page created in 0.064 seconds with 13 queries.