Comments (8)
<castered> 1.0 </castered> <max_steer unit="DEG"> 30 </max_steer>Edit: Nevermind, this doesn't work as a limit. I misunderstood some old code.
<max_steer>
does not work as a limit for caster wheel yet but it could ! 😄
Your suggestion provides the syntax that we need to address the feature requested by @MariuszXC. I'd say we only need to modify the method FGLGear::ComputeSteeringAngle
so that is fabs(SteerAngle)
is kept below MaxSteerAngle
. Something like:
void FGLGear::ComputeSteeringAngle(void)
{
if (Castered) {
// Check that the speed is non-null otherwise keep the current angle
if (vWhlVelVec.Magnitude(eX,eY) > 0.1)
SteerAngle = atan2(vWhlVelVec(eY), fabs(vWhlVelVec(eX)));
SteerAngle = Constrain(-MaxSteerAngle, SteerAngle, MaxSteerAngle);
}
}
from jsbsim.
What is the motivation / use case for changing the behavior?
Better support for real use cases. An example is Diamond DA40NG.
Given the landing gears configuration of this aircraft I doubt very much that its nose leg has a caster wheel because that would make it unstable... and deadly during take off and landing.
Caster wheels are always at the rear of an aircraft for that very reason and I don't see much point in limiting the range of their rotating angle.
Are you sure you mean a caster wheel ?
from jsbsim.
It may be a language barrier, but I meant an unsteered front wheel, free to rotate around its (almost)vertical rotation axis.
Of the fact it is unsteered I am 100% certain. Ditto about +/- 30deg end-stops.
Please refer to DA40NG AMM: http://support.diamond-air.at/fileadmin/uploads/files/after_sales_support/DA40%20New%20Generation/Airplane_Maintenance_Manual/Basic_Manual/60215-r3-DA40-NG-AMM-complete.pdf
Section 32-20 (pdf document page 950 and onwards).
from jsbsim.
JSBSim already supports caster wheels with a angle limit. At least it did.
Try this in the aircraft file
<castered> 1.0 </castered>
<max_steer unit="DEG"> 30 </max_steer>
Edit: Nevermind, this doesn't work as a limit. I misunderstood some old code.
from jsbsim.
It may be a language barrier, but I meant an unsteered front wheel, free to rotate around its (almost)vertical rotation axis. Of the fact it is unsteered I am 100% certain. Ditto about +/- 30deg end-stops.
Please refer to DA40NG AMM: http://support.diamond-air.at/fileadmin/uploads/files/after_sales_support/DA40%20New%20Generation/Airplane_Maintenance_Manual/Basic_Manual/60215-r3-DA40-NG-AMM-complete.pdf Section 32-20 (pdf document page 950 and onwards).
Thanks for the link @MariuszXC. I was indeed wrong in my assumptions.
from jsbsim.
I would have to dive deeper into the unfamiliar code, so I'll better simply ask here.
What will happen when the nose wheel angle is constrained as in the code above, but the aircraft trajectory path is such, that a larger angle would have been computed? Will an additional force-moment due to increased ground friction be calculated and included in the sum of forces acting on the ac body?
from jsbsim.
What will happen when the nose wheel angle is constrained as in the code above, but the aircraft trajectory path is such, that a larger angle would have been computed?
The wheel will slip, a situation that JSBSim is perfectly capable of modeling.
Will an additional force-moment due to increased ground friction be calculated and included in the sum of forces acting on the ac body?
Yes. JSBSim uses a friction model to compute the forces that are induced by landing gears and their resulting force and moment. The code is located in src/models/FGAcceleration.cpp
if you'd like to review it:
jsbsim/src/models/FGAccelerations.cpp
Lines 219 to 232 in db830c6
from jsbsim.
Noted and appreciated. Thanks.
from jsbsim.
Related Issues (20)
- JSBSim Simulink Function HOT 36
- aero/coefficient properties returning 0 HOT 1
- Android support HOT 4
- Can't build Unreal Engine plugin on Linux/Mac because of unsupported typeid keyword HOT 5
- JSBSim Unreal throws an Exception few seconds after/during takeoff HOT 1
- Param name new name in the form "hostname:port/proto" is not right in FGOutputSocket::SetOutputName HOT 4
- Build JSBSim by VS2019 and use C++ API HOT 1
- Crashes after adding an xml path to a component in the engine HOT 10
- Trim Errors Happening In RHEL8 On Models That Worked On RHEL7 HOT 11
- Updates to gitignore to tidy up git status after build HOT 2
- CMAKE Configure Error on MacOS (M1 aarch64) HOT 2
- After changing pitch and long initial conditions the yaw angle changes also for no reason HOT 1
- JSBSim interface to Matlab on Windows: throttle command from joystick doesn't work HOT 5
- Trim succeeds and results in NaN values HOT 1
- JSBSim and s-function have different results and different reactivity themselves HOT 1
- Building for Unreal 5 on Linux not working HOT 7
- Javascript alternative? HOT 2
- Linearization and simplex trim from console executable and xml script HOT 16
- FGTurbine Shutdown Spin HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from jsbsim.