Robotran C Documentation
Functions
user_JointForces.c File Reference
#include "math.h"
#include "mbs_data.h"
#include "user_model.h"
#include "set_output.h"
#include "useful_functions.h"

Functions

double * user_JointForces (MbsData *mbs_data, double tsim)
 Compute the user-specified joint force in all joint. More...
 

Function Documentation

◆ user_JointForces()

double* user_JointForces ( MbsData s,
double  tsim 
)

Compute the user-specified joint force in all joint.

Parameters
[in,out]sthe MbsData structure of the model on which the joint forces are computed.
[in]tsimthe current time of the simulation

The only field that should be incremented is the MbsData::Qq at the indexes of MbsData::qc