mirror of
https://gitlab.freedesktop.org/monado/monado.git
synced 2025-01-01 12:46:12 +00:00
u/ht: Const-correctness
This commit is contained in:
parent
bc279076b8
commit
4dd96a666b
|
@ -288,8 +288,8 @@ scale_model_param(struct u_joint_curl_model *param, float scale)
|
|||
}
|
||||
|
||||
void
|
||||
u_hand_joint_compute_next_by_curl(struct u_hand_tracking *set,
|
||||
struct u_joint_space_relation *prev,
|
||||
u_hand_joint_compute_next_by_curl(const struct u_hand_tracking *set,
|
||||
const struct u_joint_space_relation *prev,
|
||||
enum xrt_hand hand,
|
||||
uint64_t at_timestamp_ns,
|
||||
struct u_joint_space_relation *out_joint,
|
||||
|
@ -649,8 +649,8 @@ get_joint_data(struct u_hand_tracking *set, enum xrt_hand_joint joint_id)
|
|||
void
|
||||
u_hand_joints_set_out_data(struct u_hand_tracking *set,
|
||||
enum xrt_hand hand,
|
||||
struct xrt_space_relation *hand_relation,
|
||||
struct xrt_pose *hand_offset,
|
||||
const struct xrt_space_relation *hand_relation,
|
||||
const struct xrt_pose *hand_offset,
|
||||
struct xrt_hand_joint_set *out_value)
|
||||
{
|
||||
|
||||
|
@ -676,7 +676,9 @@ u_hand_joints_set_out_data(struct u_hand_tracking *set,
|
|||
}
|
||||
|
||||
void
|
||||
u_hand_joints_offset_valve_index_controller(enum xrt_hand hand, struct xrt_vec3 *static_offset, struct xrt_pose *offset)
|
||||
u_hand_joints_offset_valve_index_controller(enum xrt_hand hand,
|
||||
const struct xrt_vec3 *static_offset,
|
||||
struct xrt_pose *offset)
|
||||
{
|
||||
/* Controller space origin is at the very tip of the controller,
|
||||
* handle pointing forward at -z.
|
||||
|
|
|
@ -164,8 +164,8 @@ u_hand_joints_init_default_set(struct u_hand_tracking *set,
|
|||
void
|
||||
u_hand_joints_set_out_data(struct u_hand_tracking *set,
|
||||
enum xrt_hand hand,
|
||||
struct xrt_space_relation *hand_relation,
|
||||
struct xrt_pose *hand_offset,
|
||||
const struct xrt_space_relation *hand_relation,
|
||||
const struct xrt_pose *hand_offset,
|
||||
struct xrt_hand_joint_set *out_value);
|
||||
|
||||
|
||||
|
@ -179,8 +179,8 @@ u_hand_joints_set_out_data(struct u_hand_tracking *set,
|
|||
* @ingroup aux_util
|
||||
*/
|
||||
void
|
||||
u_hand_joint_compute_next_by_curl(struct u_hand_tracking *set,
|
||||
struct u_joint_space_relation *prev,
|
||||
u_hand_joint_compute_next_by_curl(const struct u_hand_tracking *set,
|
||||
const struct u_joint_space_relation *prev,
|
||||
enum xrt_hand hand,
|
||||
uint64_t at_timestamp_ns,
|
||||
struct u_joint_space_relation *out_joint,
|
||||
|
@ -202,7 +202,7 @@ u_hand_joints_update_curl(struct u_hand_tracking *set,
|
|||
*/
|
||||
void
|
||||
u_hand_joints_offset_valve_index_controller(enum xrt_hand hand,
|
||||
struct xrt_vec3 *static_offset,
|
||||
const struct xrt_vec3 *static_offset,
|
||||
struct xrt_pose *offset);
|
||||
|
||||
|
||||
|
|
Loading…
Reference in a new issue