Skip to content

mlab-upenn/ceaos_networkactuation

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

What is this?

This is a library that makes writing drivers for network actuation easier. This library is not required, lower level implementations of the same protocol can be used on edge devices without access to python.

Basic Usage

  1. Import this library and your driver library.
    from your_driver_lib import mysetpoint, mydo
    from ceaos.networkactuation import NetworkActuation
  2. Register the functions for setpoint and do, specifying bounds and datatypes to check.
    NA = NetworkActuation()
    NA.register_setpoint(mysetpoint, dtype=float, rules=[lambda x: x>1.0, lambda x: x<10.0>])
    NA.register_do(mydo, dtype=bool)
  3. Tell the library to listen
    NA.listen(port=26462)  # Pick any port to listen on 

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages