Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Make active marker deck parameters persistent #905

Merged
merged 1 commit into from
Dec 16, 2021
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 6 additions & 6 deletions src/deck/drivers/src/activeMarkerDeck.c
Original file line number Diff line number Diff line change
Expand Up @@ -229,31 +229,31 @@ PARAM_GROUP_START(activeMarker)
* In Qualisys mode the front LED act as an Active marker with IDs that are
* in the range 0 - 170.
*/
PARAM_ADD_CORE(PARAM_UINT8, front, &requestedId[0])
PARAM_ADD_CORE(PARAM_UINT8 | PARAM_PERSISTENT, front, &requestedId[0])

/**
* @brief Qualisys id of marker for back (default: 3)
*
* In Qualisys mode the back LED act as an Active marker with IDs that are
* in the range 0 - 170.
*/
PARAM_ADD_CORE(PARAM_UINT8, back, &requestedId[1])
PARAM_ADD_CORE(PARAM_UINT8 | PARAM_PERSISTENT, back, &requestedId[1])

/**
* @brief Qualisys id of marker for left (default: 4)
*
* In Qualisys mode the left LED act as an Active marker with IDs that are
* in the range 0 - 170.
*/
PARAM_ADD_CORE(PARAM_UINT8, left, &requestedId[2])
PARAM_ADD_CORE(PARAM_UINT8 | PARAM_PERSISTENT, left, &requestedId[2])

/**
* @brief Qualisys id of marker for right (default: 2)
*
* In Qualisys mode the right LED act as an Active marker with IDs that are
* in the range 0 - 170.
*/
PARAM_ADD_CORE(PARAM_UINT8, right, &requestedId[3])
PARAM_ADD_CORE(PARAM_UINT8 | PARAM_PERSISTENT, right, &requestedId[3])

/**
* @brief Off(0), pwm(1), modulated(2) or qualisys(3)
Expand All @@ -265,7 +265,7 @@ PARAM_ADD_CORE(PARAM_UINT8, right, &requestedId[3])
* | MODULATED | 2 | Switching | \n
* | QUALISYS | 3 (default) | Qualisys Active Marker mode | \n
*
*
*
* ### Off mode
*
* All marker LEDs are turned off.
Expand All @@ -288,7 +288,7 @@ PARAM_ADD_CORE(PARAM_UINT8, right, &requestedId[3])
* The IDs are controlled by the marker parameters. The Qualisys systems
* and the deck currently supports IDs in the range [0 - 170]
*/
PARAM_ADD_CORE(PARAM_UINT8, mode, &requestedDeckMode)
PARAM_ADD_CORE(PARAM_UINT8 | PARAM_PERSISTENT, mode, &requestedDeckMode)

PARAM_ADD(PARAM_UINT8, poll, &doPollDeckButtonSensor)

Expand Down