Fix Json Import/Export
This commit is contained in:
parent
d02c1ed454
commit
ba98212b5c
@ -2,11 +2,11 @@
|
|||||||
|
|
||||||
internal class Config
|
internal class Config
|
||||||
{
|
{
|
||||||
internal string Ip = "127.0.0.1";
|
public string Ip = "127.0.0.1";
|
||||||
internal int PortSend = 9000;
|
public int PortSend = 9000;
|
||||||
internal double Radius = 100;
|
public double Radius = 100;
|
||||||
internal double CalibrationX = 0;
|
public double CalibrationX = 0;
|
||||||
internal double CalibrationY = 0;
|
public double CalibrationY = 0;
|
||||||
internal double WalkStretchDeadzone = 0.1;
|
public double WalkStretchDeadzone = 0.1;
|
||||||
internal double RunStretch = 0.4;
|
public double RunStretch = 0.4;
|
||||||
}
|
}
|
@ -51,7 +51,7 @@ public partial class OSCCollar
|
|||||||
private OSCCollar(Config config, bool skipSetup = true)
|
private OSCCollar(Config config, bool skipSetup = true)
|
||||||
{
|
{
|
||||||
this._config = config;
|
this._config = config;
|
||||||
File.WriteAllText(ConfigFilePath, JsonConvert.SerializeObject(this._config));
|
File.WriteAllText(ConfigFilePath, JsonConvert.SerializeObject(this._config, Formatting.Indented));
|
||||||
|
|
||||||
|
|
||||||
this.SetupGPSVars();
|
this.SetupGPSVars();
|
||||||
|
Loading…
Reference in New Issue
Block a user