Search found 249 matches

by GTIspirit
Thu May 14, 2020 11:12 am
Forum: Bug Reporting
Topic: BUG: nil in Lua script for CAN signal rates < 50Hz
Replies: 9
Views: 8131

@brentp thanks for the response. However, this isn't how I expect it should work. CAN works on a buffer principle, last value is inherently held in the buffer until a new value comes in and overwrites the old value. That's how the hardware works. So as long as one single valid value was received, L...
by GTIspirit
Thu May 07, 2020 1:48 pm
Forum: RaceCapture/Track Bug Reporting / Feature Requests
Topic: [BUG] Lua serial commands don't work with RC Track?
Replies: 2
Views: 4771

No response on any serial ports. I tried with/without the initSer command, tried 115200 and 921600 baud rates. Tried with all ports turned off, WiFi, Bluetooth, CAN, GPS. Also tried sending the AT commands to the ESP8266 WiFi module. Still nothing. Looks like the serial port commands via Lua don't w...
by GTIspirit
Thu Apr 30, 2020 7:24 pm
Forum: Lua Scripting
Topic: [Solved] How to send HTTP POST request via Lua Script?
Replies: 4
Views: 6759

[Solved] How to send HTTP POST request via Lua Script?

How can we send an HTTP POST request to connected WiFi client via Lua Script? So if I want to say use Chrome extension SERVISTATE to send commands to a WiFi client via POST request, how do we do it? Here's another example of what it looks like: https://forums.garmin.com/apps-software/mac-windows-sof...
by GTIspirit
Thu Apr 30, 2020 4:54 pm
Forum: RaceCapture/Pro General Q&A
Topic: RaceCapture Garmin Virb Ultra 30 triggering supported?
Replies: 3
Views: 6637

Still trying to figure this out. I found this helpful overview, just not sure how to make this work in Lua Script with our available commands.

https://forums.garmin.com/apps-software ... reless-api
by GTIspirit
Sat Apr 25, 2020 12:36 pm
Forum: RaceCapture/Track Bug Reporting / Feature Requests
Topic: [BUG] Lua serial commands don't work with RC Track?
Replies: 2
Views: 4771

readSer not reliable?

Doing a bit of digging around, sounds like the readSer command is problematic and it's preferable to use the readCSer command. Sounds like what I'm experiencing is similar to this: https://forum.autosportlabs.com/viewtopic.php?p=26831#26831 It's probably no coincidence that Brent's GoPro Lua script ...
by GTIspirit
Fri Apr 24, 2020 1:33 pm
Forum: RaceCapture/Track Bug Reporting / Feature Requests
Topic: [BUG] Lua serial commands don't work with RC Track?
Replies: 2
Views: 4771

[BUG] Lua serial commands don't work with RC Track?

I tried this script, on all ports, 0 through 6. (7 is not valid) --initialize Aux serial port to 115200, 8, N, 1 initSer&#40;4, 115200, 8, 0, 1&#41; function onTick&#40;&#41; --read a line from the aux serial port with a 100ms timeout value = readSer&#40;4, 100&#41; if value ...
by GTIspirit
Thu Apr 23, 2020 9:47 pm
Forum: Lua Scripting
Topic: Format for writing serial port data?
Replies: 1
Views: 4286

Format for writing serial port data?

What is the format for using the writeSer() command? https://wiki.autosportlabs.com/RaceCapturePro_Lua_Scripting#writeSer.28_port.2C_data_.29 writeSer( port, data ) How is data configured? with "", {}, ?? So for example, if I want to send this JSON command, how is it written? {"comman...
by GTIspirit
Thu Apr 23, 2020 9:39 pm
Forum: RaceCapture/Track Operation
Topic: [answered] Which serial port is WiFi on RCTrack/2?
Replies: 4
Views: 9023

[answered] Which serial port is WiFi on RCTrack/2?

If a device is connected to the WiFi of the Race Capture Track Mk2, which port is it? 5?

https://wiki.autosportlabs.com/RaceCapt ... t_mappings
by GTIspirit
Sun Apr 12, 2020 2:35 pm
Forum: ShiftX2
Topic: Part number for Shift X2 pigtail connector?
Replies: 1
Views: 4434

Part number for Shift X2 pigtail connector?

I want to get a few more connectors for the Shift X2, to hardwire in and have some spares. What is the Mouser/Newark part number for the pigtail side connector? Or can I just get a few more from brentp?
Image
by GTIspirit
Sat Apr 11, 2020 1:37 pm
Forum: RaceCapture/Track Operation
Topic: Lua script command to get battery voltage on RC Track?
Replies: 2
Views: 4616

Answered my own question by thinking, what channel might brentp use if the RC Track has no analog inputs. If the last analog is connected to battery, and the RC Track has no analog, maybe it's 0. Confirmed with this Lua script code: println&#40;'Battery&#58; ' ..getAnalog&#40;0&#41;&...
by GTIspirit
Sat Apr 11, 2020 1:30 pm
Forum: RaceCapture/Track Operation
Topic: Lua script command to get battery voltage on RC Track?
Replies: 2
Views: 4616

Lua script command to get battery voltage on RC Track?

What's the Lua script API command to get battery voltage on the RC Track? It's not mentioned here: Analog Sensor Functions Reason I'm asking is because it's off a bit compared to what my ECU and multimeter measure. So I want to output the battery voltage on CAN to measure and record together with my...
by GTIspirit
Sat Apr 11, 2020 1:03 pm
Forum: Lua Scripting
Topic: [Solved] Help with Lua script Startup script errors
Replies: 4
Views: 5896

The following code works fine. batt_u_warn = 11 tmot_warn = 112 tmot_low = 60 toil_warn = 250 toil_low = 60 setTickRate&#40;10&#41; --TickRate is in Hz -- Set ShiftX2 configuration parameters with default parameters -- orientation&#58; 0=normal, 1=inverted &#40;display above LED bar&...
by GTIspirit
Sat Apr 11, 2020 12:58 pm
Forum: Bug Reporting
Topic: BUG: nil in Lua script for CAN signal rates < 50Hz
Replies: 9
Views: 8131

BUG: nil in Lua script for CAN signal rates < 50Hz

Trying to troubleshoot my Lua script I figured out that there is a 'nil' error for CAN signal rates less than 50Hz. So, when I try to print a variable using the command: println&#40;'rev&#58; ' ..getChannel&#40;"rev"&#41;&#41; It only prints when the CAN signal rate is ...
by GTIspirit
Sat Apr 11, 2020 12:42 pm
Forum: Lua Scripting
Topic: [Solved] Help with Lua script Startup script errors
Replies: 4
Views: 5896

I did a bit of debugging from the comfort of my desktop computer. * Commented out various lines of the IF statements to try and isolate which variable (channel) was causing the problem. * Noticed there was a problem with all the lines. :( * Implemented some print statements to try and figure out wha...
by GTIspirit
Fri Apr 10, 2020 10:21 pm
Forum: Lua Scripting
Topic: [Solved] Help with Lua script Startup script errors
Replies: 4
Views: 5896

Well, I found a few errors, but it still doesn't work. * then has to be at the end of the line * I forgot getChannel in front of oilamp_b, and missed an l in oillamp_b * The comparator if oillamp_b is set should be double equals == But it still seems like Lua script doesn't like the first line. When...