Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #1471

    jay
    Participant

    Hi,
    I am converting an existing C-based CFe app to C++. My last error, presumably, is: “error: invalid use of non-static member function”. I am trying to get my child task working. If commented out, I build and run as normal. Looking through the examples, I found some help debugging.

    if I give it:
    int32 CHILD_DECISION_TASK_ID = CFE_ES_CreateChildTask(0, "decision_task", 0, 0, 0, 0, 0);
    it builds. If I return all my parameters to normal, except the function (param 3), it builds.

    My class has a member function void decision_tree( void );

    In my constructor I have:

      //Creates a new thread for pending serial data
      int32 CHILD_DECISION_TASK_ID = CFE_ES_CreateChildTask(&task_ID_ptr,
                                                            PM_DECISION_TASK,
                                                            decision_tree,
                                                            stack_ptr,
                                                            stack_size,
                                                            priority,
                                                            CT_flags);

    I am grateful for any help.

    • This topic was modified 2 years, 2 months ago by  jay.
    #1709

    the_other_james
    Moderator

    Hi jay,

    Would you mind re-posting this to the Q/A section (https://coreflightsystem.org/questions/)? That should hopefully get some more eyes on the question and an answer (if you already figured out, it may still be valuable to post (with the answer) to help future cFS users).

    Thanks!

Viewing 2 posts - 1 through 2 (of 2 total)

You must be logged in to reply to this topic.