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,
Virtual Channel for Logging on / logging off
-
- Posts: 24
- Joined: Sun Mar 20, 2016 7:13 am
- Location: Melbourne-Australia / Sao Paulo-Brazil
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/RaceCa ... issues/849
Ryan Doherty
Autosports Labs
Autosports Labs
-
- Posts: 24
- Joined: Sun Mar 20, 2016 7:13 am
- Location: Melbourne-Australia / Sao Paulo-Brazil
-
- Posts: 24
- Joined: Sun Mar 20, 2016 7:13 am
- Location: Melbourne-Australia / Sao Paulo-Brazil
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,
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