From bfc9882bb2ae38b4d46e5d9acd8449f94d2aeeb0 Mon Sep 17 00:00:00 2001 From: Eduardo Silva Date: Wed, 1 Oct 2025 20:08:13 +0100 Subject: [PATCH] Added the OG_x and DL_x fields --- outgauge.go | 28 ++++++++++++++++++++++++---- 1 file changed, 24 insertions(+), 4 deletions(-) diff --git a/outgauge.go b/outgauge.go index 1a15ca3..2bd0e9c 100644 --- a/outgauge.go +++ b/outgauge.go @@ -1,11 +1,31 @@ package bngsdk // More documentation at https://go.beamng.com/protocols. +// Or at BeamNG/lua/vehicle/protocols/outgauge.lua +// OG_x buts for flags +const ( + OG_SHIFT = 1 // key // N/A + OG_CTRL = 2 // key // N/A + OG_TURBO = 8192 // show turbo gauge + OG_KM = 16384 // if not set - user prefers MILES + OG_BAR = 32768 // if not set - user prefers PSI +) -/* TODO - - OG_x Flags - - DL_x Flags -*/ +// DL_x Flags +const ( + DL_SHIFT = 2 ^ 0 // shift light + DL_FULLBEAM = 2 ^ 1 // full beam + DL_HANDBRAKE = 2 ^ 2 // handbrake + DL_PITSPEED = 2 ^ 3 // pit speed limiter // N/A + DL_TC = 2 ^ 4 // tc active or switched off + DL_SIGNAL_L = 2 ^ 5 // left turn signal + DL_SIGNAL_R = 2 ^ 6 // right turn signal + DL_SIGNAL_ANY = 2 ^ 7 // shared turn signal // N/A + DL_OILWARN = 2 ^ 8 // oil pressure warning + DL_BATTERY = 2 ^ 9 // battery warning + DL_ABS = 2 ^ 10 // abs active or switched off + DL_SPARE = 2 ^ 11 // N/A +) // Outgauge describes the data served by the BeamNG outgauge server type Outgauge struct {