

NetDuino Quadrocopter
#41
Posted 14 January 2011 - 02:54 PM

#42
Posted 14 January 2011 - 03:11 PM
It will be interesting to see how the quad goes purely on a Netduino. That fezzer code is Chris Seto's btw (His TinyCLR user is simply "Chris")
Ah, that would explain the ChrisSeto namespace that I didn't notice before. I think I know one person I will be posing questions to as I progress through .NETMF land! I wonder why he uses his kid's picture for his avatar?

#43
Posted 14 January 2011 - 04:38 PM
#44
Posted 14 January 2011 - 05:01 PM
I would guess this is caused by scheduler, it has to check what should be run next after 20 ms time quantum elapses.
Good call. BTW, the quantum is a constant and can be changed in code. We've never tried increasing it but it could be possible to increase it to, say, a few weeks/months. If everything is executing on a single thread and one is not using events or threading, this could be a valuable mod.
Chris
#45
Posted 14 January 2011 - 05:43 PM
#46
Posted 14 January 2011 - 05:51 PM
#47
Posted 14 January 2011 - 06:28 PM
#48
Posted 15 January 2011 - 12:17 AM
#49
Posted 15 January 2011 - 12:58 AM
#50
Posted 15 January 2011 - 01:14 AM
I wonder why he uses his kid's picture for his avatar
That's me, granted the picture is maybe around a year old, I look very young for my age and I always have.
#51
Posted 15 January 2011 - 01:17 AM
That's me, granted the picture is maybe around a year old, I look very young for my age and I always have.
I think 'dones' was just teasing. [For reference, I apparently look about 3-5 years younger than my age as well. On my first driver license, I looked like I was in elementary school still.

Chris
#52
Posted 15 January 2011 - 03:17 AM
I think 'dones' was just teasing. [For reference, I apparently look about 3-5 years younger than my age as well. On my first driver license, I looked like I was in elementary school still.
]
Chris
Whoa, after meeting you at Maker Faire, I never would have guessed you were in your 50s!
#53
Posted 15 January 2011 - 03:33 AM
Whoa, after meeting you are Maker Faire, I never would have guessed you were in your 50s!
Clever, Bill French. Clever.

#54
Posted 16 January 2011 - 09:42 PM
#55
Posted 16 January 2011 - 09:44 PM
Good call. BTW, the quantum is a constant and can be changed in code. We've never tried increasing it but it could be possible to increase it to, say, a few weeks/months. If everything is executing on a single thread and one is not using events or threading, this could be a valuable mod.
Chris
Chris where do i change this setting?
#57
Posted 17 January 2011 - 02:07 PM
The constant is defined in Porting Kit header file CLR\Include\TinyCLR_Runtime.h, line #2376 (static const CLR_UINT32 c_TimeQuantum_Milliseconds = 20).Chris where do i change this setting?
But how about hardware events, such as interrupt-based GPIO or communication (UART, SPI, I2C etc.)? CLR checks for any hardware events in between scheduling managed threads, so long quantum will cause long response times for such events....it could be possible to increase it to, say, a few weeks/months. If everything is executing on a single thread and one is not using events or threading...
#58
Posted 17 January 2011 - 04:27 PM
But how about hardware events, such as interrupt-based GPIO or communication (UART, SPI, I2C etc.)? CLR checks for any hardware events in between scheduling managed threads, so long quantum will cause long response times for such events.
Good question. For many of these, this is actually handled "real-time" in the background and the data is buffered. But serial data can be retrieved by using SerialPort.BytesToRead and SerialPort.Read(...) instead of SerialPort.DataReceived, etc. Much like is done on traditional microcontrollers.
There will still be some background processing that's done if a user were to mod the firmware with a long quantum, go single-threaded, not use events, and remove GC from the equation. UART hardware interrupts for instance. We'd have to do some testing to find out the real impact of these...
Chris
#59
Posted 21 January 2011 - 05:14 PM
#60
Posted 21 January 2011 - 05:45 PM
1 user(s) are reading this topic
0 members, 1 guests, 0 anonymous users