Welcome
Username or Email:

Password:


Missing Code




[ ]
[ ]
Online
  • Guests: 12
  • Members: 1
  • Newest Member: omjtest
  • Most ever online: 396
    Guests: 396, Members: 0 on 12 Jan : 12:51
Members Birthdays:
No birthdays today

Next birthdays
05/14 hvguy (41)
05/14 thehappyelectron (14)
05/14 Justin (2024)
Contact
If you need assistance, please send an email to forum at 4hv dot org. To ensure your email is not marked as spam, please include the phrase "4hv help" in the subject line. You can also find assistance via IRC, at irc.shadowworld.net, room #hvcomm.
Support 4hv.org!
Donate:
4hv.org is hosted on a dedicated server. Unfortunately, this server costs and we rely on the help of site members to keep 4hv.org running. Please consider donating. We will place your name on the thanks list and you'll be helping to keep 4hv.org alive and free for everyone. Members whose names appear in red bold have donated recently. Green bold denotes those who have recently donated to keep the server carbon neutral.


Special Thanks To:
  • Aaron Holmes
  • Aaron Wheeler
  • Adam Horden
  • Alan Scrimgeour
  • Andre
  • Andrew Haynes
  • Anonymous000
  • asabase
  • Austin Weil
  • barney
  • Barry
  • Bert Hickman
  • Bill Kukowski
  • Blitzorn
  • Brandon Paradelas
  • Bruce Bowling
  • BubeeMike
  • Byong Park
  • Cesiumsponge
  • Chris F.
  • Chris Hooper
  • Corey Worthington
  • Derek Woodroffe
  • Dalus
  • Dan Strother
  • Daniel Davis
  • Daniel Uhrenholt
  • datasheetarchive
  • Dave Billington
  • Dave Marshall
  • David F.
  • Dennis Rogers
  • drelectrix
  • Dr. John Gudenas
  • Dr. Spark
  • E.TexasTesla
  • eastvoltresearch
  • Eirik Taylor
  • Erik Dyakov
  • Erlend^SE
  • Finn Hammer
  • Firebug24k
  • GalliumMan
  • Gary Peterson
  • George Slade
  • GhostNull
  • Gordon Mcknight
  • Graham Armitage
  • Grant
  • GreySoul
  • Henry H
  • IamSmooth
  • In memory of Leo Powning
  • Jacob Cash
  • James Howells
  • James Pawson
  • Jeff Greenfield
  • Jeff Thomas
  • Jesse Frost
  • Jim Mitchell
  • jlr134
  • Joe Mastroianni
  • John Forcina
  • John Oberg
  • John Willcutt
  • Jon Newcomb
  • klugesmith
  • Leslie Wright
  • Lutz Hoffman
  • Mads Barnkob
  • Martin King
  • Mats Karlsson
  • Matt Gibson
  • Matthew Guidry
  • mbd
  • Michael D'Angelo
  • Mikkel
  • mileswaldron
  • mister_rf
  • Neil Foster
  • Nick de Smith
  • Nick Soroka
  • nicklenorp
  • Nik
  • Norman Stanley
  • Patrick Coleman
  • Paul Brodie
  • Paul Jordan
  • Paul Montgomery
  • Ped
  • Peter Krogen
  • Peter Terren
  • PhilGood
  • Richard Feldman
  • Robert Bush
  • Royce Bailey
  • Scott Fusare
  • Scott Newman
  • smiffy
  • Stella
  • Steven Busic
  • Steve Conner
  • Steve Jones
  • Steve Ward
  • Sulaiman
  • Thomas Coyle
  • Thomas A. Wallace
  • Thomas W
  • Timo
  • Torch
  • Ulf Jonsson
  • vasil
  • Vaxian
  • vladi mazzilli
  • wastehl
  • Weston
  • William Kim
  • William N.
  • William Stehl
  • Wesley Venis
The aforementioned have contributed financially to the continuing triumph of 4hv.org. They are deserving of my most heartfelt thanks.
Forums
4hv.org :: Forums :: Computer Science
« Previous topic | Next topic »   

CSU Chico Tilt Rotor Flying Machine, (Programming and CPU, 3 of 3).

 1 2 3 4  last
Move Thread LAN_403
AndrewM
Wed Jul 11 2012, 01:17AM
AndrewM Registered Member #49 Joined: Thu Feb 09 2006, 04:05AM
Location: Bigass Pile of Penguins
Posts: 362
In controls (maybe just aeronautics?) "dot" is the same as prime which is the same as derivative.

So theta_dot = d theta/dt (angular velocity)
theta_dotdot = d2 theta/ dt2 (angular acceleration)
Back to top
Patrick
Wed Jul 11 2012, 01:44AM
Patrick Registered Member #2431 Joined: Tue Oct 13 2009, 09:47PM
Location: Chico, CA. USA
Posts: 5639
AndrewM wrote ...

In controls (maybe just aeronautics?) "dot" is the same as prime which is the same as derivative.

So theta_dot = d theta/dt (angular velocity)
theta_dotdot = d2 theta/ dt2 (angular acceleration)
whoops! i see what you meant, yes i knew that, brain lapse... im not good at ASCII math anyway. do you know anything about programming in C?

ok so theta dot= (d theta )/( dt) which effectivley means: (change in angle theta) / (change in time)

therefore if the time interval is consecutive and constant: (d theta)/(dt) = (current theta - previous theta)/(time interval)

and i think thats what Brett Beaureguard means in this line :
[ double dErr = (error - lastErr) / timeChange; ]


Back to top
AndrewM
Wed Jul 11 2012, 04:22AM
AndrewM Registered Member #49 Joined: Thu Feb 09 2006, 04:05AM
Location: Bigass Pile of Penguins
Posts: 362
I've never been very good at reading other people's code, I usually just write my own... so I didn't read that page.

But yeah, looks like numerical differentiation to me.
Back to top
Patrick
Wed Jul 11 2012, 05:10AM
Patrick Registered Member #2431 Joined: Tue Oct 13 2009, 09:47PM
Location: Chico, CA. USA
Posts: 5639
well you and i are going to get this working so well need to figure out rolling, pitch collective and yaw and pid's and every other little thing we need, i want this done in less than one year from now.

I really appreciate your help, im going to stay on this everyday.
Back to top
Carbon_Rod
Wed Jul 11 2012, 08:53AM
Carbon_Rod Registered Member #65 Joined: Thu Feb 09 2006, 06:43AM
Location:
Posts: 1155
Typically for UAV aerial acrobatics, people use Minimum Jerk Trajectory planning with Visual Servoing.

If you start to run out of time, openservo is a cheap mod that will reduce some of the errors that you are about to encounter...
Link2

Note that most gyros & some accelerometers will have oversampling error reduction, and low pass filter options...
i.e. simply use the on chip noise filters if you know the craft will not exceed a few g or high angular rates.

@AndrewM There are few robust alternatives outside the consensus of prior threads...
... the current approach will unlikely stay in tune very long... wink
Link2

Note a 200gram 1GHz wifi enabled mini computer is $68 delivered....
Link2

And it runs a popular distro:
Link2
Link2
Back to top
Patrick
Wed Jul 11 2012, 02:26PM
Patrick Registered Member #2431 Joined: Tue Oct 13 2009, 09:47PM
Location: Chico, CA. USA
Posts: 5639
Carbon_Rod wrote ...

Note that most gyros & some accelerometers will have oversampling error reduction, and low pass filter options...
i.e. simply use the on chip noise filters if you know the craft will not exceed a few g or high angular rates.

@AndrewM There are few robust alternatives outside the consensus of prior threads...
... the current approach will unlikely stay in tune very long... wink
Link2

Note a 200gram 1GHz wifi enabled mini computer is $68 delivered....
Link2

And it runs a popular distro:
Link2
Link2

i will use the onboard low pass filter that my chips already supportand i still need to worry about gyro drift, but as for your 68$ computer thats not a real embedded system, and i cant configure pins on it or a RTOS like i can with a pic, ardiuno, STAMP or STM32.


edit, super dooper important:
]filter.pdf[/file]
Back to top
Carbon_Rod
Thu Jul 12 2012, 05:04AM
Carbon_Rod Registered Member #65 Joined: Thu Feb 09 2006, 06:43AM
Location:
Posts: 1155
In general, latency tolerant functions are located within an RTlinux kernel based OS with usb host stack and wifi.

Most RTOSs are not what the name implies, as the last real RTOS was MSDOS.
Link2

In general, people who believe otherwise are better off using multiple chips/boards....

A 12Mbps USB host link will add little latency to consumer sensors given maximum sample rates will rarely exceed 400Hz...

Note a 1.5GHz Cortex-A8 A10 with 1GB ram and a cheap interface chip for i/o is flexible... wink

Back to top
Patrick
Thu Jul 12 2012, 05:50AM
Patrick Registered Member #2431 Joined: Tue Oct 13 2009, 09:47PM
Location: Chico, CA. USA
Posts: 5639
I dispute your claims, yet that clip was funny.
Back to top
Carbon_Rod
Thu Jul 12 2012, 08:40AM
Carbon_Rod Registered Member #65 Joined: Thu Feb 09 2006, 06:43AM
Location:
Posts: 1155
Specifically, schedulers need to save multiple machine states for threading/message-passing, interrupts may overlap ISRs to randomize stack-pointer/register save times, and multi-core/GPU systems have several types of resource contention.

Most multitasking RTOS are approximating a fixed latency scheduler even if written in Assembly. If the accumulated errors from timing jitter are negligible/profiled than people sell it as an "RTOS".
Link2

"dispute" infers there is some inherent value in deception requiring negotiation... tongue

Link2
Link2
Back to top
Patrick
Thu Jul 12 2012, 12:11PM
Patrick Registered Member #2431 Joined: Tue Oct 13 2009, 09:47PM
Location: Chico, CA. USA
Posts: 5639
dispute the meaning of dispute all you want cheesey Ill stick with my STM32's for the time being since they handle GPIO, I2C and SPI nativley, and a traditional computer doesnt.
Back to top
 1 2 3 4  last

Moderator(s): Chris Russell, Noelle, Alex, Tesladownunder, Dave Marshall, Dave Billington, Bjørn, Steve Conner, Wolfram, Kizmo, Mads Barnkob

Go to:

Powered by e107 Forum System
 
Legal Information
This site is powered by e107, which is released under the GNU GPL License. All work on this site, except where otherwise noted, is licensed under a Creative Commons Attribution-ShareAlike 2.5 License. By submitting any information to this site, you agree that anything submitted will be so licensed. Please read our Disclaimer and Policies page for information on your rights and responsibilities regarding this site.