fixes to remove warnings
Comment out unused variables; fix a real bug in uiuc_gear().
This commit is contained in:
parent
bfe942268e
commit
1e049f24b0
2 changed files with 6 additions and 4 deletions
|
@ -275,12 +275,14 @@ void uiuc_gear()
|
||||||
|
|
||||||
clear3(f_wheel_local_v);
|
clear3(f_wheel_local_v);
|
||||||
reaction_normal_force=0;
|
reaction_normal_force=0;
|
||||||
|
#if 0
|
||||||
static const SGPropertyNode * gear_wow
|
static const SGPropertyNode * gear_wow
|
||||||
= fgGetNode("/gear/gear[0]/wow", false);
|
= fgGetNode("/gear/gear[0]/wow", false);
|
||||||
static const SGPropertyNode * gear_wow1
|
static const SGPropertyNode * gear_wow1
|
||||||
= fgGetNode("/gear/gear[1]/wow", false);
|
= fgGetNode("/gear/gear[1]/wow", false);
|
||||||
static const SGPropertyNode * gear_wow2
|
static const SGPropertyNode * gear_wow2
|
||||||
= fgGetNode("/gear/gear[2]/wow", false);
|
= fgGetNode("/gear/gear[2]/wow", false);
|
||||||
|
#endif
|
||||||
fgSetBool("/gear/gear[0]/wow", false);
|
fgSetBool("/gear/gear[0]/wow", false);
|
||||||
fgSetBool("/gear/gear[1]/wow", false);
|
fgSetBool("/gear/gear[1]/wow", false);
|
||||||
fgSetBool("/gear/gear[2]/wow", false);
|
fgSetBool("/gear/gear[2]/wow", false);
|
||||||
|
@ -375,7 +377,7 @@ void uiuc_gear()
|
||||||
cross3( d_wheel_cg_body_v, tempF, tempM );
|
cross3( d_wheel_cg_body_v, tempF, tempM );
|
||||||
|
|
||||||
/* Sum forces and moments across all wheels */
|
/* Sum forces and moments across all wheels */
|
||||||
if (tempF) {
|
if (tempF[0] != 0.0 || tempF[1] != 0.0 || tempF[2] != 0.0) {
|
||||||
fgSetBool("/gear/gear[1]/wow", true);
|
fgSetBool("/gear/gear[1]/wow", true);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -105,11 +105,11 @@ void uiuc_recorder( double dt )
|
||||||
{
|
{
|
||||||
stack command_list;
|
stack command_list;
|
||||||
string linetoken;
|
string linetoken;
|
||||||
static int init = 0;
|
// static int init = 0;
|
||||||
static int recordStep = 0;
|
static int recordStep = 0;
|
||||||
string record_variables = "# ";
|
string record_variables = "# ";
|
||||||
|
|
||||||
int modulus = recordStep % recordRate;
|
// int modulus = recordStep % recordRate;
|
||||||
|
|
||||||
//static double lat1;
|
//static double lat1;
|
||||||
//static double long1;
|
//static double long1;
|
||||||
|
|
Loading…
Reference in a new issue