JordanRobot.MotorDefinition 1.0.0-alpha.1

This is a prerelease version of JordanRobot.MotorDefinition.
dotnet add package JordanRobot.MotorDefinition --version 1.0.0-alpha.1
                    
NuGet\Install-Package JordanRobot.MotorDefinition -Version 1.0.0-alpha.1
                    
This command is intended to be used within the Package Manager Console in Visual Studio, as it uses the NuGet module's version of Install-Package.
<PackageReference Include="JordanRobot.MotorDefinition" Version="1.0.0-alpha.1" />
                    
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="JordanRobot.MotorDefinition" Version="1.0.0-alpha.1" />
                    
Directory.Packages.props
<PackageReference Include="JordanRobot.MotorDefinition" />
                    
Project file
For projects that support Central Package Management (CPM), copy this XML node into the solution Directory.Packages.props file to version the package.
paket add JordanRobot.MotorDefinition --version 1.0.0-alpha.1
                    
#r "nuget: JordanRobot.MotorDefinition, 1.0.0-alpha.1"
                    
#r directive can be used in F# Interactive and Polyglot Notebooks. Copy this into the interactive tool or source code of the script to reference the package.
#:package JordanRobot.MotorDefinition@1.0.0-alpha.1
                    
#:package directive can be used in C# file-based apps starting in .NET 10 preview 4. Copy this into a .cs file before any lines of code to reference the package.
#addin nuget:?package=JordanRobot.MotorDefinition&version=1.0.0-alpha.1&prerelease
                    
Install as a Cake Addin
#tool nuget:?package=JordanRobot.MotorDefinition&version=1.0.0-alpha.1&prerelease
                    
Install as a Cake Tool

JordanRobot.MotorDefinition

.NET library for loading and saving motor definition JSON files.

The data model shape is:

  • Motor → Drive(s) → Voltage(s) → Performance Curve(s) → Data Point(s)

Install

This package is currently intended to be consumed from a local .nupkg produced via dotnet pack.

Once published to NuGet.org, you can install it via:

  • the NuGet Package Manager in Visual Studio,
  • by visiting the NuGet.org page.
  • or by command line:
dotnet add package JordanRobot.MotorDefinition

Load

using JordanRobot.MotorDefinition;
using JordanRobot.MotorDefinition.Model;

ServoMotor motor = MotorFile.Load(@"C:\path\to\motor.json");
Console.WriteLine(motor.MotorName);

Save

using JordanRobot.MotorDefinition;
using JordanRobot.MotorDefinition.Model;

var motor = new ServoMotor
{
	MotorName = "My Motor",
	Manufacturer = "Acme",
	PartNumber = "M-123"
};

MotorFile.Save(motor, @"C:\path\to\motor.json");

Lightweight shape probe (quick filter)

If you need a fast pre-check (for example, filtering *.json files before doing a full load), you can probe a JSON document:

using JordanRobot.MotorDefinition;
using System.Text.Json;

using var document = JsonDocument.Parse(File.ReadAllText(@"C:\path\to\candidate.json"));
bool looksLikeMotorFile = MotorFile.IsLikelyMotorDefinition(document);

This is intentionally a lightweight shape check, not a full schema+semantic validator.

Schema version

The library writes the schema version from ServoMotor.CurrentSchemaVersion when saving.

Further resources

Product Compatible and additional computed target framework versions.
.NET net8.0 is compatible.  net8.0-android was computed.  net8.0-browser was computed.  net8.0-ios was computed.  net8.0-maccatalyst was computed.  net8.0-macos was computed.  net8.0-tvos was computed.  net8.0-windows was computed.  net9.0 was computed.  net9.0-android was computed.  net9.0-browser was computed.  net9.0-ios was computed.  net9.0-maccatalyst was computed.  net9.0-macos was computed.  net9.0-tvos was computed.  net9.0-windows was computed.  net10.0 was computed.  net10.0-android was computed.  net10.0-browser was computed.  net10.0-ios was computed.  net10.0-maccatalyst was computed.  net10.0-macos was computed.  net10.0-tvos was computed.  net10.0-windows was computed. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.
  • net8.0

    • Tare (>= 1.1.0-alpha.4)

NuGet packages

This package is not used by any NuGet packages.

GitHub repositories

This package is not used by any popular GitHub repositories.

Version Downloads Last Updated
1.0.0-alpha.1 61 1/10/2026