-
Notifications
You must be signed in to change notification settings - Fork 70
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #377 from WildernessLabs/feature/serial-wombat
Feature/serial wombat
- Loading branch information
Showing
12 changed files
with
41 additions
and
67 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
27 changes: 27 additions & 0 deletions
27
...adow.Foundation.Peripherals/ICs.IOExpanders.SerialWombat/Driver/SerialWombatBase.Servo.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
using Meadow.Foundation.Servos; | ||
using Meadow.Hardware; | ||
using System; | ||
|
||
namespace Meadow.Foundation.ICs.IOExpanders | ||
{ | ||
public abstract partial class SerialWombatBase | ||
{ | ||
public class Servo : IServo | ||
{ | ||
public ServoConfig Config => throw new NotImplementedException(); | ||
|
||
public Servo(IPin pin) | ||
{ | ||
throw new NotImplementedException(); | ||
} | ||
|
||
/* | ||
byte[] tx = { 200, _pin, (byte)SerialWombatPinModes.PIN_MODE_SERVO, _pin, (byte)(_position & 0xFF), (byte)((_position >> 8) & 0xFF), _reverse ? (byte)1 : (byte)0, 0x55 }; | ||
byte[] rx; | ||
_sw.sendPacket(tx, out rx); | ||
byte[] tx2 = { 201, _pin, (byte)SerialWombatPinModes.PIN_MODE_SERVO, (byte)(_min & 0xFF), (byte)((_min >> 8) & 0xFF), (byte)((_max - _min) & 0xFF), (byte)(((_max - _min) >> 8) & 0xFF), 0x55 }; | ||
_sw.sendPacket(tx2, out rx); | ||
*/ | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
15 changes: 0 additions & 15 deletions
15
....Foundation.Peripherals/ICs.IOExpanders.SerialWombat/Samples/Sw18AB_ADC_Sample/Program.cs
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
15 changes: 0 additions & 15 deletions
15
...dation.Peripherals/ICs.IOExpanders.SerialWombat/Samples/Sw18AB_Discrete_Sample/Program.cs
This file was deleted.
Oops, something went wrong.
4 changes: 2 additions & 2 deletions
4
...ICs.IOExpanders.SerialWombat/Samples/Sw18AB_Discrete_Sample/Sw18AB_Discrete_Sample.csproj
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
15 changes: 0 additions & 15 deletions
15
....Foundation.Peripherals/ICs.IOExpanders.SerialWombat/Samples/Sw18AB_PWM_Sample/Program.cs
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
15 changes: 0 additions & 15 deletions
15
...tion.Peripherals/ICs.IOExpanders.SerialWombat/Samples/Sw18AB_Ultrasonic_Sample/Program.cs
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 1 addition & 1 deletion
2
...eripherals/ICs.IOExpanders.SerialWombat/Samples/Sw18AB_Ultrasonic_Sample/appsettings.yaml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,5 @@ | ||
Logging: | ||
LogLevel: | ||
Default: "Debug" | ||
Default: "Trace" | ||
Telemetry: | ||
RosBridge: "192.168.1.70:9090" |