RegisterSearchFAQMemberlistUsergroupsLog in
Reply to topic Page 1 of 1
Virtual Channel for Logging on / logging off
Author Message
Reply with quote
Post Virtual Channel for Logging on / logging off 
Hi guys,

I am trying to get a virtual channel that shows when I am logging or not. The reason is if I want to record a 1/4 mile for each run, I want to make sure on screen that I am recording or not. It is much easier then checking if the Logging LED is on or off once the RCP is on the car floor, in the back seat.

I created a script using "getButton()" but it just shows me when the Button is pressed and not if I am logging or not.

Is there any other command like "getLogging ()" that would show me when is logging or not?

My script is:
GravId = addChannel("Gravando",10,0,0,1,".rec")
function onTick()
local a3 = getButton()
setChannel(GravId, a3)
end

BTW: "Gravando" means logging in my language.

Thanks,


_________________
Felipe
View user's profile Send private message
Reply with quote
Post  
Currently there is no way to get the logging status in Lua, but that is a good idea! I will file a ticket for it. https://github.com/autosportlabs/RaceCapture-Pro_firmware/issues/849


_________________
Ryan Doherty
Autosports Labs
View user's profile Send private message
Reply with quote
Post  
Hi Ryan,

Thanks for that! Actually it would be very handy if you have the file number showing on screen too.

Cheers


_________________
Felipe
View user's profile Send private message
Reply with quote
Post  
Idea:

If you have the Lua script actually controlling the logging start/stop in an automatic way, then you will be able to track that state as well in the script, then set that to a virtual channel.

let us know how it goes!


_________________
Brent Picasso
CEO and Founder, Autosport Labs
Facebook | Twitter
View user's profile Send private message Send e-mail
Reply with quote
Post  
Hi Brent,

Actually I am not using the Lua script to start logging start/stop. I need to start recording around 3s before my test. For example, I have start logging and run the 1/4mile launch test. I need to collect the response delay from the accelerator pedal. All the car manufactures have a target for how much acceleration I need to have after certain time that the accelerator pedal was pressed, like 0.3s.

So, it would be very handy to have the file number on screen.

Thanks again,

Regards,


_________________
Felipe
View user's profile Send private message
Reply with quote
Post  
Hi, actually, you can read the logging status within Lua, sorry for the confusion.

here is the method:
https://wiki.autosportlabs.com/RaceCapturePro_Lua_Scripting#isLogging.28.29


_________________
Brent Picasso
CEO and Founder, Autosport Labs
Facebook | Twitter
View user's profile Send private message Send e-mail
Display posts from previous:
Reply to topic Page 1 of 1
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You cannot download files in this forum