.NET Launch Dashboard
July 26, 2020 ยท View on GitHub
Wrapper for Launch Dashboard API project, providing information about the telemetry of launching rockets. To learn more, you can use Doxygen or directly documentation of the API (method names are very familiar with endpoints).
Installation
- download from NuGet: https://www.nuget.org/packages/DotNetLaunchDashboard/
or
- search "DotNetLaunchDashboard" in Package Manager
or
- run
Install-Package DotNetLaunchDashboardin the Package Manager Console
Minimal requirements
Library is built on .NET Standard 2.0 which contains support for:
- .NET Framework 4.6.1 or higher
- .NET Core 2.0 or higher
- Mono 5.4 or higher
- Xamarin.iOS 10.14 or higher
- Xamarin.Mac 3.8 or higher
- Xamarin.Android 8.0 or higher
- Universal Windows Platform 10.0.16299 or higher
External dependencies:
Example usage
using System;
using System.Threading.Tasks;
using DotNetLaunchDashboard;
using DotNetLaunchDashboard.Live;
namespace ExampleApp
{
class Program
{
static async Task Main()
{
var liveTelemetry = new LiveTelemetry();
liveTelemetry.OnConnected += (sender, args) => Console.WriteLine("Connected to the live telemetry stream");
liveTelemetry.OnClosed += (sender, args) => Console.WriteLine($"Disconnected from the live telemetry stream (reason: {args})");
liveTelemetry.OnError += (sender, args) => Console.WriteLine($"Error: {args.Text}");
liveTelemetry.OnRawTelemetry += (sender, args) =>
Console.WriteLine($"Raw: time: {args.Time}, " +
$"alt: {args.Altitude}, " +
$"vel: {args.Velocity}");
liveTelemetry.OnAnalysedTelemetry += (sender, args) =>
Console.WriteLine($"Analysed: time: {args.Time}, " +
$"alt: {args.Altitude}, " +
$"vel: {args.Velocity}, " +
$"velX: {args.VelocityX}, " +
$"velY: {args.VelocityY}, " +
$"dDist: {args.DownrangeDistance}, " +
$"angle: {args.Angle}, " +
$"q: {args.Q}");
await liveTelemetry.StartAsync();
var launchDashboardCore = new LaunchDashboardCore();
var result1 = await launchDashboardCore.Info().ExecuteAsync();
var result2 = await launchDashboardCore.Analysed("spacex").WithFlightNumber(80).ExecuteAsync();
var result3 = await launchDashboardCore.Events("spacex").WithFlightNumber(80).ExecuteAsync();
var result4 = await launchDashboardCore.Launches("spacex").WithFlightNumber(80).ExecuteAsync();
var result5 = await launchDashboardCore.Raw("spacex")
.WithStart(10)
.WithEnd(20)
.WithInterval(1)
.WithFlightNumber(80)
.ExecuteAsync();
Console.Read();
}
}
}