Data Sheet

3.#Data#Structure#
!
typedef! int32_t! ! ! s32;!
typedef! int16_t! ! s16;!
typedef! int8_t! ! s8;!
!
typedef! uint32_t! ! u32;!
typedef! uint16_t! ! u16;!
typedef! uint8_t! ! u8;!
!
3.1.#Base#
#
3.1.1.#CommandBase#
#
! struct!CommandBase!
! {!
! ! u8! commandType;! ///<!command!type!
! ! u8! option;! ! ///<!option!for!command(use!the!defined!value!in!System.h)!
! };!
#
CommandBase! is! a! basic! structure! to! ask! CoDrone! for! something,! using! in ! structures! of!
Command,# Command2,# Command3,# LedModeCommand,# LedModeCommandIr,#
LedEventCommand,#LedEventCommandIr!
!
3.1.1.1.#CommandType#
#
! enum!CommandType!
! {!
! ! None!=#0,! ! ///<!no!event!
! ! ! ! !
! ! //!setting!
! ! ModePetrone!=!0x10,! ///<!change!petrone!mode!
! ! ! ! !
! ! //!control!
! ! Coordinate!=!0x20,! ///<!change!coordinate!
! ! Trim,! ! ///<!change!fine!adjustment!value!
! ! FlightEvent,!! ///<!execute!flight!event!
! ! DriveEvent,!! ///<!execu te!drive!event!
! ! Stop,! ! ///<!stop!
! ! ! ! !
! ! ResetHeading!=!0x50,! ///<!Reset!heading!
! ! ClearGyroBiasAndTrim,! ///<!Reset!gyrobias!and!fine!adjustment!value!
! ! ! ! !
! ! //!connection!
! ! PairingActivate!=!0x80,! ///<!enable!pairing!
! ! PairingDeactivate,! ///<!disable!pairing!
! ! TerminateConnection,! ///<!connection!terminates!
! ! ! ! !
! ! //!request!
! ! Request!=!0x90,! ///<!request!data!
! ! ! ! !
! ! EndOfType!
! };!
!
3.1.1.2.#Option#