leahi-common

Clone Tools
  • last updated a few minutes ago
Constraints
Constraints: committers
 
Constraints: files
Constraints: dates
Do we not need the module error alarm?

Do we not need the module error alarm?

This is not an atomic assignment, so we have to consider thread safety. If this driver is running from General Task (I believe it is since ModeTreatment's exec will be calling the BPModule's exec w...

This is not an atomic assignment, so we have to consider thread safety.
If this driver is running from General Task (I believe it is since ModeTreatment's exec will be calling the BPModule's exec which calls this driver's exec) and if the caller to this function will also be running from General Task (I believe it is since BPModule controller is the caller), then there is no thread safety issue and we should mention in the function header brief that this function should only be called from within the General Task.
If another task is involved (e.g. Priority Task is calling this function), this function could be interrupting the get data state while it is populating bpResults with new results and the caller would get a mix of old and new results (we would not want that).

same.

same.

same.

same.

Just like driver state machine, we should only set a request flag to TRUE here and let the state machine handle the transition.

Just like driver state machine, we should only set a request flag to TRUE here and let the state machine handle the transition.

How do we get out of Idle state?

How do we get out of Idle state?

This should be called in all states (so in controller's exec function).

This should be called in all states (so in controller's exec function).

I don't think we want to zero this count here.

I don't think we want to zero this count here.

We need to call the driver exec function from this exec function - either before or after the switch statement.

We need to call the driver exec function from this exec function - either before or after the switch statement.

We need to call this from ModeTreatment transition function.

We need to call this from ModeTreatment transition function.

We need to call this function from ModeTreatment exec function.

We need to call this function from ModeTreatment exec function.

Remove blank line.

Remove blank line.

s/w fault needs alarm data. See other examples.

s/w fault needs alarm data. See other examples.

Why do you have { here?

Why do you have { here?

For init function, just say "BPModule variables initialized."

For init function, just say "BPModule variables initialized."

The driver has one of these too. Does the controller need to store the results when it can ask the driver for them?

The driver has one of these too. Does the controller need to store the results when it can ask the driver for them?

I'm not sure we need these "Detected" functions. I would expect that when this controller gets new readings, it will check for these alarm conditions in the check state and trigger alarm if appropr...

I'm not sure we need these "Detected" functions. I would expect that when this controller gets new readings, it will check for these alarm conditions in the check state and trigger alarm if appropriate. So if we are triggering alarms in this controller, there is no need for outside code to ask if these alarms are detected.

I think these will eventually be coming from institutional settings, so maybe put a TODO comment to remove these when institutional settings are available.

I think these will eventually be coming from institutional settings, so maybe put a TODO comment to remove these when institutional settings are available.

Is this all we need to look at to know that measurement is done? Do we need to look at busy status?

Is this all we need to look at to know that measurement is done? Do we need to look at busy status?

Move this function down a bit. Init function should be first.

Move this function down a bit. Init function should be first.

Typically, we would have state handle function return "next state" instead of changing the state directly.

Typically, we would have state handle function return "next state" instead of changing the state directly.

That looks like an fpga function, not an input.

That looks like an fpga function, not an input.

Looks like you removed error state, so we should remove it here too.

Looks like you removed error state, so we should remove it here too.

See other switch statements with s/w faults to see how to trigger it. We need 2 data: 1 is specific s/w fault enum and 2 is the invalid state.

See other switch statements with s/w faults to see how to trigger it. We need 2 data: 1 is specific s/w fault enum and 2 is the invalid state.

For init function, just say "BPDriver variables initialized."

For init function, just say "BPDriver variables initialized."

Initialize bpResults and new flags.

Initialize bpResults and new flags.

Added

Added

Updated

Updated

Updated

Updated