मुख्य सामग्री पर जाएँ
Skillpedia
API और सर्वर (backend)12k · #11494

fprime-component-design-fpp

यह क्या करती है

यह FPP इंटरफ़ेस मॉडल लिखने के चरण समझाती है, जिससे F Prime कंपोनेंट का C++ बेस कोड बनता है। यह फ़्लाइट सॉफ़्टवेयर कंपोनेंट डिज़ाइन करने वाले इंजीनियरों के लिए है।

कब इस्तेमाल करें

  • ✓जब किसी F Prime कंपोनेंट की आवश्यकताएँ स्वीकृत हो चुकी हों और उसका इंटरफ़ेस लिखना हो।
  • ✓जब आपको किसी कंपोनेंट के लिए पोर्ट, कमांड, इवेंट या टेलीमेट्री चुनने हों।
  • ✓जब आप कंपोनेंट में कोई मानक F Prime डिज़ाइन पैटर्न दोबारा इस्तेमाल करना चाहते हैं।

Skill का लिंक

https://github.com/nasa/fprime/blob/devel/.github/skills/fprime-component-design-fpp/SKILL.md

इसे कॉपी करके अपने AI (Claude, ChatGPT या Cursor) में पेस्ट करें और निर्देशों का पालन करने को कहें।

कैसे इस्तेमाल करें

सबसे आसान तरीका: मैसेज कॉपी करके अपने AI में पेस्ट करें। वह skill पढ़कर निर्देशों का पालन करेगा।

पेस्ट करने के लिए तैयार मैसेज

इस skill से मेरी मदद करो: https://github.com/nasa/fprime/blob/devel/.github/skills/fprime-component-design-fpp/SKILL.md इस लिंक की SKILL.md फ़ाइल पढ़ो और मेरे काम में उसके निर्देशों का पालन करो।
क्या आप चाहते हैं कि आपका AI ऐसी skills खुद ढूँढे?मुफ़्त Skillpedia MCP इंस्टॉल करें: बस एक लाइन, और हर काम से पहले यह 15,000+ skills में खोजता है।1 मिनट में इंस्टॉल करें →

AI से क्या माँगें: उदाहरण

“हमारी आवश्यकताएँ स्वीकृत हो चुकी हैं। क्या आप इस F Prime कंपोनेंट का FPP मॉडल लिख सकते हैं?”

हर हफ़्ते 5 नई skills, 1 मिनट में पढ़ें।

यह कैसे काम करती है

AI स्वीकृत आवश्यकताओं को FPP फ़ाइल में बदलता है, अस्पष्ट पोर्ट या कमांड के चुनाव पर सवाल पूछता है, और फिर कंपाइलर बेस कोड बनाता है।

तकनीकी सामग्री (मूल SKILL.md)

लेखक का मूल टेक्स्ट, अंग्रेज़ी में, सीधे GitHub से।

Skill: F Prime Component Design (FPP)

The design phase codifies requirements into an FPP model — the single source of truth for the component's interface. The FPP compiler generates C++ base classes, test harnesses, and dictionaries from this model.

For FPP syntax and modeling details, see the FPP User's Guide. For component/port/command kinds, see Selecting Component, Port, and Command Kinds.

Reference the F Prime design patterns where possible — standard solutions exist for common needs:

  • Rate Group Pattern — docs/user-manual/design-patterns/rate-group.md
  • Health Checking — docs/user-manual/design-patterns/health-checking.md
  • Manager-Worker — docs/user-manual/design-patterns/manager-worker.md
  • Application-Manager-Driver — docs/user-manual/design-patterns/app-man-drv.md
  • Common Port Patterns — docs/user-manual/design-patterns/common-port-patterns.md
  • Hub Pattern — docs/user-manual/design-patterns/hub-pattern.md
  • Subtopologies — docs/user-manual/design-patterns/subtopologies.md

STOP — Confirm Before Designing

Before writing any FPP:

  1. Requirements must be confirmed (see fprime-component-requirements).
  2. Ask the user about any ambiguity in:
    • Port types (does a suitable port already exist, or do we need a new one?)
    • Command argument types and names
    • Telemetry channel update frequency semantics (on-change vs. periodic)
    • Event severity levels (DIAGNOSTIC, ACTIVITY_LO, ACTIVITY_HI, WARNING_LO, WARNING_HI, FATAL)
    • Parameter default values
    • Whether to use existing F Prime standard ports (Fw.Signal, Svc.Sched, Svc.Ping, etc.)

Step-by-Step Process

Step 0 — Scaffold with fprime-util

Start with fprime-util new --component for the base structure. This generates the initial directory layout, CMakeLists.txt, and FPP stub.

Step 1 — Choose Component Kind

Based on requirements (see docs/user-manual/framework/component-and-port-selection.md for the full decision guide):

Work Type Component Kind When to Use
Cyclic (hard deadline) passive Rate-group driven, no own thread
Cyclic with internal queue queued Deferred work within a cycle
Event-driven active Owns a thread, processes async messages

Ask the user if unsure. The component kind determines thread ownership and port synchronization semantics.

Step 2 — Define Ports

For each interface requirement, define input/output ports. Port kinds:

  • sync input — executes in caller's thread
  • async input — enqueued, executes in component's thread
  • guarded input — sync with component-wide mutex

See the FPP User's Guide for port definition syntax.

Standard framework ports to consider including:

Need Port Import
Rate-group scheduling sync input port run: Svc.Sched import Svc.Sched
Health ping async input port pingIn: Svc.Ping drop import Svc.Ping
Time access time get port timeCaller (special port)
Command handling command recv port cmdIn (special port)
Event logging event port eventOut (special port)
Telemetry telemetry port tlmOut (special port)

If the component is active, it probably needs health-ping support. Requirements should imply whether rate-group scheduling is needed. Ask the user only if unsure about which standard services to connect to.

Step 3 — Define Commands, Telemetry, Events, Parameters

Follow the FPP User's Guide for syntax. Follow F Prime Style Guidelines for naming conventions:

  • Commands: UPPER_SNAKE_CASE
  • Telemetry channels: PascalCase
  • Events: PascalCase
  • Parameters: PascalCase

For each construct, derive names, types, and semantics from the confirmed requirements. Define an event for each command that describes what the command did, including the command arguments, so the implementation can emit it (CPP-37). Every event emission must be traceable to a single call site (CPP-36): give each site its own event, or an argument (typically an enum) whose value differs at every site. Ask the user if:

  • The command kind (sync/async/guarded) is
अक्सर पूछे जाने वाले सवाल

क्या यह बिना सवाल पूछे डिज़ाइन करेगी?

नहीं। स्किल कहती है कि डिज़ाइन से पहले अस्पष्ट पोर्ट प्रकार और इंटरफ़ेस के विवरण पर सवाल पूछे जाएँ।

FPP फ़ाइल से क्या बनता है?

FPP कंपाइलर उससे C++ बेस क्लास, टेस्ट हार्नेस और डिक्शनरी बनाता है।

यह कौन-से डिज़ाइन पैटर्न बताती है?

यह rate groups, health checking, manager-worker और hub जैसे पैटर्न के नाम बताती है।

जानकारी

लेखक का मूल विवरण

FPP design phase of F Prime component development. Guides the agent through creating the FPP model that codifies the component's interface — ports, commands, events, telemetry, and parameters. Trigger when the requirements are confirmed and the next step is to write the .fpp file. Keywords: F Prime, FPP, design, model, ports, commands, telemetry, events, parameters, component definition.

repo: nasa/fprime

लोकप्रियता

GitHub स्टार
12k
रैंकिंग में स्थान
#11494
लाइसेंस
Apache-2.0
अपडेट की गई
2/11/2026

क्या यह skill काम की है?

0

लॉग इन करें वोट करने के लिए।

कमेंट

  • …

इस repository की और skills

fprime-cmake-build-system

12k

यह आपके एजेंट को F Prime फ़्लाइट सॉफ़्टवेयर प्रोजेक्ट की CMake लेयर के ज़रिए मॉड्यूल, बिल्ड टार्गेट और प्लेटफ़ॉर्म सेटिंग जोड़ने में मदद करती है।

कोडिंगसामान्य कोडिंग

fprime-component-development

12k

यह आपके एजेंट को F Prime कंपोनेंट को आवश्यकताओं से लेकर इंटीग्रेशन टेस्टिंग तक हर विकास चरण में आगे बढ़ाने में मदद करती है।

कोडिंगAPI और सर्वर (backend)

fprime-component-implementation

12k

यह आपके एजेंट को F Prime कंपोनेंट के जनरेट हुए हैंडलर फ़ंक्शन के पीछे का C++ कोड प्रोजेक्ट के नियमों के अनुसार लिखने में मदद करती है।

कोडिंगAPI और सर्वर (backend)

fprime-component-integration-test

12k

यह आपके एजेंट को F Prime कंपोनेंट के लिए pytest इंटीग्रेशन टेस्ट लिखने में मदद करती है, जो चल रही डिप्लॉयमेंट के विरुद्ध चलते हैं और दोबारा इस्तेमाल हो सकते हैं।

कोडिंगटेस्टिंग

मिलती-जुलती skills