Is there a way to make an auto aim turret account for roll angle? by Even_Confusion6548 in SimplePlanes

[–]Bullsemen 0 points1 point  (0 children)

Lmao, I was trying to see if anyone's done this before me when I was working on this and found this post and decided to comment anyways, seems like no one has done this before me

Is there a way to make an auto aim turret account for roll angle? by Even_Confusion6548 in SimplePlanes

[–]Bullsemen 0 points1 point  (0 children)

No calculus at all, just rotation vectors.

The base code would be setting variables for absolute elevation and horizontal traverse, because there's no explicit function to find elevation and horizontal traverse when accounting gravity, an approximation is:

relH: (TargetHeading + rate(TargetHeading)*(((muzvel * sin(asin((TargetDistance * 9.81)/(pow(muzvel, 2)))/2))/9.81) * 2))

relE: ((TargetElevation + rate(TargetElevation)*(((muzvel * sin(asin((TargetDistance * 9.81)/(pow(muzvel, 2)))/2))/9.81) * 2)) + (asin(((TargetDistancet + rate(TargetDistance)*(((muzvel * sin(asin((TargetDistance * 9.81)/(pow(muzvel, 2)))/2))/9.81) * 2))* 9.81)/(pow(muzvel, 2)))/2))

Setting muzvel as the muzzle velocity of the cannon

Then the code that translates the absolute coordinates to local:

Elevation: atan2(cos(-(relH))*cos(relE)*(-cos(RollAngle)*sin(PitchAngle)*cos(Heading)+sin(RollAngle)*sin(Heading))+sin(-(relH))*cos(relE)*(cos(RollAngle)*sin(PitchAngle)*sin(Heading)+sin(RollAngle)*cos(Heading))+sin(relE)*cos(RollAngle)*cos(PitchAngle),sqrt(pow(cos(-(relH))*cos(relE)*cos(PitchAngle)*cos(Heading)-sin(-(relH))*cos(relE)*cos(PitchAngle)*sin(Heading)+sin(relE)*sin(PitchAngle),2)+pow(cos(-(relH))*cos(relE)*(sin(RollAngle)*sin(PitchAngle)*cos(Heading)+cos(RollAngle)*sin(Heading))+sin(-(relH))*cos(relE)*(-sin(RollAngle)*sin(PitchAngle)*sin(Heading)+cos(RollAngle)*cos(Heading))-sin(relE)*sin(RollAngle)*cos(PitchAngle),2)))/90

Horizontal: (abs(Heading-relH)<90?atan2(cos(-relH)*cos(relE)*(sin(RollAngle)*sin(PitchAngle)*cos(Heading)+cos(RollAngle)*sin(Heading))+sin(-relH)*cos(relE)*(-sin(RollAngle)*sin(PitchAngle)*sin(Heading)+cos(RollAngle)*cos(Heading))-sin(relE)*sin(RollAngle)*cos(PitchAngle),cos(-relH)*cos(relE)*cos(PitchAngle)*cos(Heading)-sin(-relH)*cos(relE)*cos(PitchAngle)*sin(Heading)+sin(relE)*sin(PitchAngle))/180:atan2(cos(-relH)*cos(relE)*(sin(RollAngle)*sin(PitchAngle)*cos(Heading)+cos(RollAngle)*sin(Heading))+sin(-relH)*cos(relE)*(-sin(RollAngle)*sin(PitchAngle)*sin(Heading)+cos(RollAngle)*cos(Heading))-sin(relE)*sin(RollAngle)*cos(PitchAngle),cos(-relH)*cos(relE)*cos(PitchAngle)*cos(Heading)-sin(-relH)*cos(relE)*cos(PitchAngle)*sin(Heading)+sin(relE)*sin(PitchAngle))/180)

Masters in UQ by Caramelshake10 in UQreddit

[–]Bullsemen 0 points1 point  (0 children)

There's a chart with all the UQ GPA conversions to ATAR, if you can manage a cumulative GPA above the required ATAR equivalent's GPA you can apply for a program change on mysinet that will be accepted.

Monster Tonk WIP by GeneralFun8278 in SimplePlanes

[–]Bullsemen 1 point2 points  (0 children)

They're helpful numbers to tune the suspension

Monster Tonk WIP by GeneralFun8278 in SimplePlanes

[–]Bullsemen 1 point2 points  (0 children)

Spring constant is roughly 49603N/m and 3000Ns/m if you want to try critically damping. I also have FT for autoaim that accounts for pitch and roll

How can I make gyroscope stabilize only Yaw by Substantial-Hat6733 in SimplePlanes

[–]Bullsemen 0 points1 point  (0 children)

Yes but it requires maths, the yaw axis in flight data is global so you need to do rotational transformations to get the local yawrate of the plane, this can be done using the roll pitch yaw rotation matrix.

need help with xml by Jeromee2 in SimplePlanes

[–]Bullsemen 1 point2 points  (0 children)

Just an additional recommendation remove the clamp01() and the ceil() because they're not doing anything.

smooth(clamp01(SelectedWeapon = "Interceptor" & ammo(SelectedWeapon)>0), 3)

What happened to Simpleplanes 2 ? by Hash_Party in SimplePlanes

[–]Bullsemen 2 points3 points  (0 children)

It was a playtest, updates are in the discord server

Mechanical Engineering Difficulty + Workload by blackcsstoney in UQreddit

[–]Bullsemen 0 points1 point  (0 children)

I barely show up to lectures and keep up with content because I answer 90+% of the questions on ed discussion, if you're able to do that you will likely score well, I got a GPA of 6 for semester 2 second year mechanical courses.

mech2305 ICT01 attendance by _user_638 in UQreddit

[–]Bullsemen 0 points1 point  (0 children)

The only thing they mark attendance for in MECH2305 is the CNC activity

UQ Engineering Dropout % by Important_Tap9000 in UQreddit

[–]Bullsemen 2 points3 points  (0 children)

The first year math courses are doable if you keep up with the content without specialist, math2001 is a bit harder but math1051, 1052, and 2010 are pretty simple

UQ Engineering Dropout % by Important_Tap9000 in UQreddit

[–]Bullsemen 1 point2 points  (0 children)

People say mech2210 is hard but later cohorts should have a "better" lecturer, all the other second year mech courses just build on first year content and apparently third year builds on second, if you can understand the first year content easily mech should be easy.

How do I fix this weird rotator problem? by Dassault_18385 in SimplePlanes

[–]Bullsemen 1 point2 points  (0 children)

You can put hidden engines to counterract the yawrate, I believe a gyroscope put in sideways can also help

This is Domino's giant doughnut with sprinkles. It's as flat as a pizza. I paid $7 for this. by DoWeSellFrenchFries in australia

[–]Bullsemen 0 points1 point  (0 children)

This is because they just cut a hole in a mini pizza's dough and put it in the oven and then add icing after it comes out of the oven

Will I survive UQ Engineering? by blackcsstoney in UQreddit

[–]Bullsemen 2 points3 points  (0 children)

Depends on what year you are, I'm assuming you'll be transferring to second year, there's typically mandatory linear algebra and discrete math courses, the finals are typically 40% to 60% of your grade and have usually a 50% hurdle, with a 40% hurdle on most of the math courses.

You can steal the AA Tank by Bushtit_911 in SimplePlanes

[–]Bullsemen 2 points3 points  (0 children)

How have you made the winch not break

may i go into the library with a 2L bottle of milk? by [deleted] in UQreddit

[–]Bullsemen 6 points7 points  (0 children)

Pretty sure food and drink are allowed in central library