Categories
Ask Geographic Information System (GIS)

Problems with specifiying TM_fill when creating a map in R with TM_maps

For my research I am visualizing plastic contents in segments of water. After creating my segment (online, polygons in KML-file) I jointed it with my table with fieldworkdata with plastics per segment. Creating a map with these segments works fine until I want to combine the amount of plastic and the segments. My code is […]

Categories
Mastering Development

Change NaN, INF values to 0 in php Array

So I have an array in Php where I have the following values respectively. $arr = [1,2,0,0,5,6,7,8,9,10,7,5,7,6,4,7,4,6,4,7,1,15,35]; So when I am applying the growth rate formula in this. Some of the values showing NaN and INF. I Know it’s happening because of the 0 I put in the array. So What I need is to […]

Categories
Mastering Development

Can anyone help a beginner as to why this simple JS wont work?

this is a simple color change project and on the surface it looks like it should work but either the JS file isn’t loading or ive made a simple error, i cant work it out! Any help appreciated! The idea is you press the button ands the BG changes to a random hex color and […]

Categories
Ask Electrical Engineering Engineering

IGBT excessive Vge

I have a circuit with a PWM signal controlling the gate of an IGBT. It’s a dual IGBT module, SKM150GB12. A relay delivers voltage to the collector, 2, and the power is delivered to a battery, Vbat+ on 1 and Vbat- on 3. 1 IGBT is for charging, the other is for discharging. If I […]

Categories
Mastering Development

Determine waiting times between plane arrivals python

I’m writing a program, that takes 200 planes distributed with the poisson distribution over 12 hours and these planes need to land at an airfield that only has 1 runway. I use the reverse CDF method from the exponential distribution to determine the inter-arrival times. However, I can’t seem to calculate the waiting time in […]

Categories
Mastering Development

How do I make this table into a data frame? I’m using R. Trying to get the ANOVA table for it

enter image description here #Here’s what I have, but I don’t think it’s right: gas.test <- data.frame(gas=c(0, 14, 12, 13, 11, 17, 0, 13, 11, 10, 14, 14, 0, 12, 12, 13, 13, 12, 0, 11, 12, 10, 9, 8, 0), Test_Car = factor(rep(c("A","B","C","D", "E"),each=5)), Additive = factor(rep(c(1,2,3,4,5),5)))

Categories
Arduino Ask Engineering

Set speed of Pololu 6 channel USB Servo Controller

This is not strictly Arduino, but I think people here can probably spot my error pretty quickly as it is related. It’s probably just me not understanding the documentation that is the problem. I have this: https://www.pololu.com/product/1350/faqs Micro Maestro 6-Channel USB Servo Controller I’m trying to move a servo at a set speed. I can […]

Categories
Game Creation Mastering Development

How to make a game object from several game objects in Unity?

Dear Stackoveflow fourm I have programmed a great music game. Unfortunately there is a problem. In my game there are so many objects that my smartphone can’t load the game properly. I have nowhere to find out how to make an object out of many objects. If someone knows how to do it I would […]

Categories
Game Creation Mastering Development

How to make a game object from several game objects in Unity?

Dear Stackoveflow fourm I have programmed a great music game. Unfortunately there is a problem. In my game there are so many objects that my smartphone can’t load the game properly. I have nowhere to find out how to make an object out of many objects. If someone knows how to do it I would […]

Categories
Game Creation Mastering Development

How to make a game object from several game objects in Unity?

Dear Stackoveflow fourm I have programmed a great music game. Unfortunately there is a problem. In my game there are so many objects that my smartphone can’t load the game properly. I have nowhere to find out how to make an object out of many objects. If someone knows how to do it I would […]