Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update Motor.cs #44

Open
wants to merge 4 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions MonoBrickFirmware/Movement/Motor.cs
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ namespace MonoBrickFirmware.Movement
/// <summary>
/// Class for EV3 motor
/// </summary>
public class Motor : MotorBase
public class Motor : IMotor
{
/// <summary>
/// Initializes a new instance of the <see cref="MonoBrickFirmware.Movement.Motor"/> class.
Expand Down Expand Up @@ -152,4 +152,4 @@ public sbyte GetSpeed ()
return output.GetSpeed(this.PortList[0]);
}
}
}
}
3 changes: 2 additions & 1 deletion MonoBrickFirmware/Movement/MotorBase.cs
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,8 @@ namespace MonoBrickFirmware.Movement
/// <summary>
/// Base class for EV3 motors
/// </summary>
public class MotorBase{
public class MotorBase : IMotorBase
{

private System.Timers.Timer timer;
private const double pollRate = 50;
Expand Down
16 changes: 0 additions & 16 deletions RoboDog/IMotor

This file was deleted.

26 changes: 0 additions & 26 deletions RoboDog/IMotorBase

This file was deleted.

10 changes: 10 additions & 0 deletions RoboDog/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
RoboDog
=======

A Mindstorms Project based on monoev3
This project is build upon the monoev3, and will only work if one has downloaded the EV3-firmware from monobrick.dk.
The software mimics that of Legos own software for the Puppy (found in the educational set), but can be extended much further thanks to the freedom in C#.
The reason I build this software is that I use it as a teaching tool in the world of object oriented programming. Everything becomes very concrete when code is added to a "real" dog.
My hope is to add several teaching tools, so that other teachers can benefit from the same software.
RoboDog includes all eye-images, but sound is not yet supported. I am also currently working on using interfaces rather than classes so that things will be less "hardcoded", which is why you will find an AbstractDog.cs and an AbstractDog2.cs. The ExternalMotor class is an attemt to wrap an existing class in order for it to use interfaces.
Besides, the dogs movements may need some adjustment, however, simply override the methods from the abstract dog, and you will be able to implemnent your only movements.
20 changes: 20 additions & 0 deletions RoboDog/RoboDog.sln
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@

Microsoft Visual Studio Solution File, Format Version 12.00
# Visual Studio 2012
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "RoboDog", "RoboDog\RoboDog.csproj", "{BF9CC34B-9005-49E1-82CC-8066B34F8547}"
EndProject
Global
GlobalSection(SolutionConfigurationPlatforms) = preSolution
Debug|Any CPU = Debug|Any CPU
Release|Any CPU = Release|Any CPU
EndGlobalSection
GlobalSection(ProjectConfigurationPlatforms) = postSolution
{BF9CC34B-9005-49E1-82CC-8066B34F8547}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{BF9CC34B-9005-49E1-82CC-8066B34F8547}.Debug|Any CPU.Build.0 = Debug|Any CPU
{BF9CC34B-9005-49E1-82CC-8066B34F8547}.Release|Any CPU.ActiveCfg = Release|Any CPU
{BF9CC34B-9005-49E1-82CC-8066B34F8547}.Release|Any CPU.Build.0 = Release|Any CPU
EndGlobalSection
GlobalSection(SolutionProperties) = preSolution
HideSolutionNode = FALSE
EndGlobalSection
EndGlobal
2 changes: 1 addition & 1 deletion RoboDog/AbstractDog.cs → RoboDog/RoboDog/AbstractDog.cs
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
using System;
using System;
using System.Collections.Generic;
using System.IO;
using System.Linq;
Expand Down
Loading