Shop OBEX P1 Docs P2 Docs Learn Events
Gyro and Accelerometer bias's - and serial RX — Parallax Forums

Gyro and Accelerometer bias's - and serial RX

JavalinJavalin Posts: 892
edited 2008-08-13 20:21 in Propeller 1
All

Couple of questions I am stuck on / need advice on.

1)· Tracking bias on accelerometer / gyro's?· Is there a "simple" way that doesn't involve complex math and lots of propeller code space?· I've been thinking about it and couldn't see how you would distinguish the stationary data from moving data?

2)· I've an ASM·routine which reads serial data from a gps (binary bytes not NMEA) in a single cog.· If I want to speed it up, I am assuming that there is a lot of "spare" time in the rx bit (taken from the fullduplexserial ASM object).· Would a sensible approach be to look at the jmpret command like in the video objects?· I.e. jump out, do a number of processing steps, then back, and so on?

Thanks all,

James

Comments

  • TimmooreTimmoore Posts: 1,031
    edited 2008-08-13 20:19
    2. it works, thats how I run 4 serial ports in 1 cog by using the wait times in rx/tx to process the other channels. Its also how fullduplexserial does tx and rx by jmpret back and forth fast enough not to lose either. You have to make sure whatever you jmpet can get back in time
  • JavalinJavalin Posts: 892
    edited 2008-08-13 20:21
    Tim,

    thanks - I'll check it out then. Seems like a good approach.

    James
Sign In or Register to comment.