Fixes
Removed Roll, Pitch and Yaw from Gyroscopic Module (I hate dealing with Gimbal Lock)
Available on CurseForge and Modrinth
Fixes
Removed Roll, Pitch and Yaw from Gyroscopic Module (I hate dealing with Gimbal Lock)
Available on CurseForge and Modrinth
For example, I want to receive values in the Y (Vertical) axis to control the car to run straight.
Is mean if i need ship to go straight in 45°
Loop:
MOV up acc //input
SUB 0x51A0
JGZ G
JLZ L
JMP Loop
G:
MOV 1 RIGHT
JMP LOOP
L:
MOV LEFT
JMP LOOP
ok, maybe this isnt quite working in explaining
SUB is thinking this is just a normal Short, but its not, its a Half Point Precision Float stuffed in a Short and thus cant handle it properly
as it says on CF/Modrinth and inside the ingame book tab for TIS-VS, it is HIGHLY recommended that you also use TIS Advanced to properly handle these floats
otherwise you are gonna be doing a LOT of math you really dont need to
and yes, it has to be a Short, thats a limitation of TIS-3D where you only have 16 bits for input and output
Half Point Precision Floats are a method of working within this limitation but TIS-3D itself wasnt built with those in mind, so nothing in base TIS-3D knows the difference and treats it like its a normal number between 0x0000 - 0xFFFF
TIS Advanced fixes that by adding new instructions and modules that utilize Half Point Precision Floats
Oh tis 3d is most about 0-1 logic
Tis vs is about 16 bit half point precision floasts?
TIS-3D’s modules work by accepting and putting out 16 bit numbers (Shorts)
so lets say you feed a redstone module a power of 15, that in a Short is 0x000F so thats what the module outputs to other modules
however, 0 - 65535 (0x0000 - 0xFFFF) does not include decimal points, which are needed for more precise work like measuring angles
but, since we have the space of a Short to work within, we cannot just give you full 32 bit floats, we have ot give you half floats
but TIS-3D wasnt built around using those floats, so it treats them as if they are 0 - 65535 when they are not
I have an idea that you should make a video or an image to explain TIS VS and post on Modrinth / CF.
but anyways, this is why i suggest pretty much everywhere it would fit normally, to also grab TIS Advanced which is an addon for TIS-3D which adds special instructions and modules for handling these floats
It should be very important, such as having sample code that everyone is interested in or does often, such as code that receives values and keeps the ship’s direction constant.
such as code the receives values
thats easy, MOV <side with my modules> <elsewhere>
and keeps the ship’s direction constant
harder, requires a good bit of setup and math, basically ahve ot write a PID controller in Assembly, then configure your ship build to utilize it via redstone signals
I’ll give it a try. I’ve had a huge problem building the car, because the wheels built with Vs bearings don’t rotate equally on both sides.
i wont lie and say i wasnt expecting people to make PID controllers but i dont wanna be the one to have to fight Assembly and half floats to do it
Just encountering a cave or hill can cause jams that make it impossible to continue.
If you look in the showcase I posted, you will see that I only build big wheels because they are reliable for real terrain.
You seem like a very capable person, much more than me. Do you have any ideas or help me with this?
not really, if you wanna look at PIDs that have been made, PHOBOSS allowed me to shove his PID library into CC: VS as a built-in Lua program
This conversation is on Discord · Reply there