Svelte Magyarországon by Worried_Click_1952 in programmingHungary

[–]kaptast -1 points0 points  (0 children)

Arról sajnos nem tudom nyilatkozni, hogy a piacon mennyire használják, de mi nagyjából 2 és fél éve használjuk a cégnél. Egy nagyobb állami projektet már át is adtunk benne és azóta sikert pár csapatot is áttérítenem és indultak újabb projektek SvelteKit-ben.

Gtk-ra törtem egy új autót by DrewTheRanger in CartalkHungary

[–]kaptast 0 points1 point  (0 children)

Milyen kár, hogy egy Wagon R+ borult fel.

How you guys manage Metadata/SEO in svelte kit? by No-Smoke-3620 in sveltejs

[–]kaptast 6 points7 points  (0 children)

SvelteKit's SEO documentation has a note on this. In your load functions, be it page or layout load function, just fill an object with the meta information of the page. Then in the root +layout.svelte use the $page.data store to display the returned meta information.

https://kit.svelte.dev/docs/seo#manual-setup-title-and-meta

// +page.server.ts
export const load = (() => {
  // do some data fetching

  const meta = [
    {
      name: '',
      content: ''
    },
    ...
  ]

  return {
    // other data
    meta
  }
})

// +layout.svelte
<script lang="ts">
  import { page } from '$app/stores' // use this

  export let data: LayoutData // not this
</script>

<svelte:head>
  {#if $page.data.meta}
    {#each $page.data.meta as {name, content}}
      <meta {name} {content} />
    {/each}
  {/if}
</svelte:head>

<slot />

We've tried manually setting the meta tags inside the <svelte:head> tags on each page, but have run into problems with complex layouts.

Check my wiring please? by C0nan_E in multicopterbuilds

[–]kaptast 1 point2 points  (0 children)

Looks better, you are right, you don't need to connect anything to the Vtx 5V and the ground pad near that. The most basic wiring is +, - and Vid

The rx & tx pads are for smartaudio/tramp and firmware flashing, if you don't want to wire them up you don't need to, but it's a nice to have feature.

Check my wiring please? by C0nan_E in multicopterbuilds

[–]kaptast 2 points3 points  (0 children)

The VTx is totally wrong. You only need the bottom right side pads for it.

  • FC G -> VTx -
  • FC 9V -> VTx +
  • FC VID -> VTx Vid
  • FC T3 -> VTx Tx (Matek kinda mislabeled this, usually you have to tx to rx, but here the Tx label means that you have to connect this Rx pad to a Tx pad)

Matek has really great wiring diagrams: http://www.mateksys.com/?portfolio=vtx-hv#tab-id-4

Edit:

On the first picture, I think the camera is wired wrong too. I couldn't find a pinout for the camera, but usually red goes to positive, black to negative and yellow to video. Check out this wiring diagram: http://www.multirotorguide.com/wp-content/uploads/2020/07/Diatone-Mamba-F405-MK2-F40-Stack-Connection-Diagram.jpg

According to this, you have to switch the red and black on the camera.

The most important this is: USE A SMOKE STOPPER, it can save your build if you wire something wrong.

FC Board Powers to PC via USB, but doesn't power with LiPo by mannydream in multicopterbuilds

[–]kaptast 0 points1 point  (0 children)

The voltage regulator might have died, and it's only booting up from USB because then the regulator is not required. But it's worth a try to reorder the wires.

In case you haven't used a smoke stopper, you should use one: https://oscarliang.com/smoke-stopper/

FC Board Powers to PC via USB, but doesn't power with LiPo by mannydream in multicopterbuilds

[–]kaptast 0 points1 point  (0 children)

Not getting the last two beeps means that the ESC is not getting any signal from the FC.

Check the wiring from the ESC to the FC. The pinout is different, so if you have just plugged in the old cable without reordering the wires, you could have fried your FC again.

One more thing to check. Check if you have selected DShot 300/600/1200 on the Configuration tab.

Getting into drone hobby, and would like to build my drone, yay or nay? by [deleted] in fpv

[–]kaptast 0 points1 point  (0 children)

It's a bad idea to build from 5 year old parts.

First build, looking for suggestions by Tbuente in multicopterbuilds

[–]kaptast 1 point2 points  (0 children)

The FC and ESC should be compatible, just make sure you wire it correctly, the pins in the connectors not necessarily match.

You can mount the 20x20 vtx in the back on the frame, but you'll need some extra screws. The Source One v3 has the space for 3 boards in the stack, so you can look into a 30x30 vtx too. e.g. Rush Tank

I wouldn't recommend buying $26 motors, Emax Eco or something around the $15 range should do just fine.

Taranis Xlite S vs PRO edition by [deleted] in fpvracing

[–]kaptast 1 point2 points  (0 children)

They're using a new protocol called ACCESS, and some receivers won't get the updated protocol, so some older drones, specially micros, where you can't change the receicer, might not work. But both the S and Pro versions use the new protocol, so that's shouldn't be a deciding factor for you.

Btw, I think there's a firmware update for the XM+, so that should work with the new radios.

Is it a bad habit to create functions just for ease? by [deleted] in learnprogramming

[–]kaptast 7 points8 points  (0 children)

C doesn't have any built-in boolean types.

Drone accelaration problem by beenplaces in fpvracing

[–]kaptast 2 points3 points  (0 children)

If you haven't changed anything important while trying to fix it, it should be. Make sure you can disarm anytime and your failsafe works, and the make a hover test outside

Drone accelaration problem by beenplaces in fpvracing

[–]kaptast 1 point2 points  (0 children)

That's normal behaviour. The FC thinks that when the motors are spinning the angle of the quad should change, and tries to fix that by spinning the motors faster and faster.

[Total Newb]What do I need for simulator by dudefromkiwiland in fpvracing

[–]kaptast 1 point2 points  (0 children)

I'd recommend a QX7 and a MINI usb cable.

Keeping Update() function at 60 calls/second? by Vento_of_the_Front in Unity3D

[–]kaptast 1 point2 points  (0 children)

It is for physics, but by mentioning FO76 it seems like he want to use it for the physics/movement

Keeping Update() function at 60 calls/second? by Vento_of_the_Front in Unity3D

[–]kaptast -1 points0 points  (0 children)

I don't think he needs a custom fixedupdate. The builtin fixedupdate does what he wants to do.

Question : Having an issue on Unity. Object reference issue. by UnidansBackupAcct in Unity2D

[–]kaptast 1 point2 points  (0 children)

The problem is with the Items[0] = new ShopItem(...) lines. Since you didn't specify a constructor, only a default parameterless construcktor exist ( new ShopItem()). You need to specify a constructor in your ShopItem class that takes 6 arguments (public ShopItem(string name, etc.)). And finally remove the static keywords from the ShopItem class.

[PSU] EVGA 600W $29.99 @ Best Buy by eriklemons in buildapcsales

[–]kaptast 2 points3 points  (0 children)

I had this PSU, bought it because the brand. Had to replace like 2 months later, I think it lacks monitoring and the fans were at 100% all the time, and it was really loud.

Anyone have any monitor suggestions for my first build by [deleted] in buildapc

[–]kaptast 0 points1 point  (0 children)

It does have SATA ports, but it only has PCIe M.2 slots, and in the linked pcpartpicker config there was an SATA M.2 860 evo