Replies: 2 comments
-
|
Standard framework ports can be added to an FPP interface and imported. This is already done with This does not require any changes to FPP. |
Beta Was this translation helpful? Give feedback.
-
|
A topology.fpp file (see below) contains even more boilerplate, making it effectively impractical to write a model in FPP without parts of it being generated. I think it would be useful if FPP was a language a user module LedBlinker { ----------------------------------------------------------------------Symbolic constants for port numbers----------------------------------------------------------------------enum Ports_RateGroups { topology LedBlinkerDeployment { ----------------------------------------------------------------------Subtopology imports--------------------------------------------------------------------------------------------------------------------------------------------Instances used in the topology--------------------------------------------------------------------------------------------------------------------------------------------Pattern graph specifiers--------------------------------------------------------------------------------------------------------------------------------------------Telemetry packets (only used when TlmPacketizer is used)--------------------------------------------------------------------------------------------------------------------------------------------Direct graph specifiers----------------------------------------------------------------------} } |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
Below is an example of the LedBlinker. It consists of user provided information, followed by generated boilerplate ("Standard AC Ports: ..."). It would be nice if the boilerplate did not appear at all in these FPP files. It is annoying to type as a user. Therefore it is generated. But that seems to slightly defeat the purpose of a DSL. A DSL should be a language you can conveniently program/model in.
module LedBlinker {
@ Component to blink an LED driven by a rate group
active component Led {
}
Beta Was this translation helpful? Give feedback.
All reactions