public async Task StartAstro(Motors motors, AstroDirection direction, AstroSpeed speed, float gearReduction) { await _commService .SendAndReceiveAsync(new MoCoBusMainCommandFrame( _address, MoCoBusMainCommand.Start, new[] { (byte)motors, (byte)direction, (byte)speed }.Concat(BitConverter.GetBytes(gearReduction).Reverse()).ToArray())) .ConfigureAwait(false); }
public async Task StartAstro(Motors motors, AstroDirection direction, AstroSpeed speed, GearType gear) { await _commService .SendAndReceiveAsync(new MoCoBusMainCommandFrame( _address, MoCoBusMainCommand.Start, new[] { (byte)motors, (byte)direction, (byte)speed, (byte)gear })) .ConfigureAwait(false); }