Download Technical documentation v.1.0 - ISY

Transcript
Tricopter
57
At line 262 in function Mainloop():
// * * * code added * * *
// C o n d i t i o n added t o d e c i d e i f t o r e c o r d a t t i t u d e window o r v i d e o ←window .
if ( recordcam )
{
hud2 . streamjpgenable = true ;
aviwriter . avi_add ( hud2 . streamjpg . ToArray ( ) , ( uint ) hud2 . streamjpg←. Length ) ;
aviwriter . avi_end ( hud2 . Width , hud2 . Height , 1 0 ) ;
}
else // * * * added e l s e cond ( c o n t a i n s t h e o r i g i n a l code though ) * * *
{
// O r i g i n a l code .
hud1 . streamjpgenable = true ;
// add a frame
aviwriter . avi_add ( hud1 . streamjpg . ToArray ( ) , ( uint ) hud1 . streamjpg←. Length ) ;
// w r i t e h e a d e r − s o even p a r t i a l f i l e s w i l l p l a y
aviwriter . avi_end ( hud1 . Width , hud1 . Height , 1 0 ) ;
}
// * * * added code end * * *
At line 859 in function cam_camimage(...):
// D i s p l a y v i d e o i n t h e a p p r o p r i a t e window .
hud2 . bgimage = camimage ; // * * * m o d i f i e d * * *
At line 1229 in function recordHudToAVIToolStripMenuItem_Click(...):
// L i n e added t o show t h a t r e c o r d i n g i s on .
recording = true ;
At line 1248 in function stopRecordToolStripMenuItem_Click(...):
// L i n e added t o show t h a t r e c o r d i n g i s o f f .
recording = false ;
In Configuration.cs:
// Boolean t o show i f camera window i s a c t i v e .
public static bool is_camera_on = false ;
At line 75 in function Configuration_Load(...):
// This l i n e was changed s o t h a t t h e c o n f i g u r a t i o n s e t t i n g
// f o r hud o v e r l a y i s a p p l i e d t o t h e v i d e o window and not
// t h e a t t i t u d e window .
CHK_hudshow . Checked = GCSViews . FlightData . mycam . hudon ;
At line 629 in function BUT_videostart_Click(...):
Course name:
Project group:
Course code:
Project:
Control Project
Triforce
TSRT10
Tricopter
E-mail:
Document responsible:
Author’s E-mail:
Document name:
tsrt10.tricopter@gmail.com
Karl-Johan Barsk
karba878@student.liu.se
Technical documentation tricopter.pdf