mirror of
https://github.com/ArduPilot/ardupilot
synced 2025-02-01 21:48:28 -04:00
CLI work, flightorientation
git-svn-id: https://arducopter.googlecode.com/svn/trunk@1082 f9c3cf11-9bcb-44bc-f272-b75c42450872
This commit is contained in:
parent
0a91b02a93
commit
8764e1bb1d
@ -408,6 +408,13 @@ void Show_Settings() {
|
|||||||
SerPri("Camera mode: ");
|
SerPri("Camera mode: ");
|
||||||
SerPriln(cam_mode, DEC);
|
SerPriln(cam_mode, DEC);
|
||||||
|
|
||||||
|
SerPri("Flight orientation: ");
|
||||||
|
if(SW_DIP1) {
|
||||||
|
SerPriln("x mode");
|
||||||
|
} else {
|
||||||
|
SerPriln("+ mode");
|
||||||
|
}
|
||||||
|
|
||||||
SerPrln();
|
SerPrln();
|
||||||
SerPrln();
|
SerPrln();
|
||||||
|
|
||||||
|
@ -97,6 +97,12 @@ void APM_Init() {
|
|||||||
#endif
|
#endif
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
// Read DIP Switches and other important values. DIP switches needs special functions to
|
||||||
|
// read due they are not defined as normal pins like other GPIO's are.
|
||||||
|
SW_DIP1 = APMPinRead(PINE, 7);
|
||||||
|
SW_DIP2 = APMPinRead(PINE, 6);
|
||||||
|
SW_DIP3 = APMPinRead(PINL, 6);
|
||||||
|
SW_DIP4 = APMPinRead(PINL, 7);
|
||||||
|
|
||||||
// Is CLI mode active or not, if it is fire it up and never return.
|
// Is CLI mode active or not, if it is fire it up and never return.
|
||||||
if(digitalRead(SW2)) {
|
if(digitalRead(SW2)) {
|
||||||
@ -105,13 +111,6 @@ void APM_Init() {
|
|||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
// Read DIP Switches and other important values. DIP switches needs special functions to
|
|
||||||
// read due they are not defined as normal pins like other GPIO's are.
|
|
||||||
SW_DIP1 = APMPinRead(PINE, 7);
|
|
||||||
SW_DIP2 = APMPinRead(PINE, 6);
|
|
||||||
SW_DIP3 = APMPinRead(PINL, 6);
|
|
||||||
SW_DIP4 = APMPinRead(PINL, 7);
|
|
||||||
|
|
||||||
/* Works, tested 18-10-10 JP
|
/* Works, tested 18-10-10 JP
|
||||||
if(SW_DIP1) {
|
if(SW_DIP1) {
|
||||||
SerPrln("+ mode");
|
SerPrln("+ mode");
|
||||||
|
Loading…
Reference in New Issue
Block a user