diff options
author | Sebastian Reichel <sre@ring0.de> | 2012-06-15 22:56:00 +0200 |
---|---|---|
committer | Sebastian Reichel <sre@ring0.de> | 2012-06-15 22:56:00 +0200 |
commit | 8a08b9dce9cfc161494ddb07a1c979c7796780ff (patch) | |
tree | e86e8a83212c617da44e1b9aed480fe6b50374af /actuators/motor/atmostripe.vala | |
parent | 626580d3a16d01f3ba5481d291c4c0c844ef4c46 (diff) | |
download | microcopterd-8a08b9dce9cfc161494ddb07a1c979c7796780ff.tar.bz2 |
restructure code
it is now loading its components from plugins
Diffstat (limited to 'actuators/motor/atmostripe.vala')
-rw-r--r-- | actuators/motor/atmostripe.vala | 19 |
1 files changed, 18 insertions, 1 deletions
diff --git a/actuators/motor/atmostripe.vala b/actuators/motor/atmostripe.vala index 0cc4eef..ad996e7 100644 --- a/actuators/motor/atmostripe.vala +++ b/actuators/motor/atmostripe.vala @@ -14,7 +14,19 @@ */ public class AtmostripeMotorController : SerialDevice, MotorController { - public void set(uint8 m, uint8 v) { + public uint8 min { + get { return 0; } + } + + public uint8 max { + get { return 255; } + } + + public void init(KeyFile cfg) throws Error { + /* */ + } + + public void set_single(uint8 m, uint8 v) { /* */ } @@ -22,3 +34,8 @@ public class AtmostripeMotorController : SerialDevice, MotorController { /* */ } } + +public Type register_plugin (Module module) { + // types are registered automatically + return typeof(AtmostripeMotorController); +} |