Quote:
Originally Posted by GuyM142
I can't really change the code inside the gyro VI, I get to a level where I need to enter a password in order to make changes to the VI.
|
Greg's suggestion was to make your own VI that looked for a rollover from 180 to -180, and when that happened, add 360 to the gyro output. If you kept a running total of gyro rollovers, this would work forever. This doesn't require any changes to the simulation.
Quote:
Originally Posted by GuyM142
But i noticed that the angle value is coming from a a Honeywell Compass reference.
I don't get it.. why would the VI called gyro and inside it'll be a compass?
The gyro output really does behave like a compass would.
|
The trick in simulation is to make something that isn't real work "close enough" to something that is real. In this case, most teams are interested in the angle from the gyro. Rather then spend thousands of dollars to make a computer model of a gyro, they used a compass that was already implemented, and produced very similar data. As you noted, it is different in the rollover, however that is easily compensated for.