Changeset 314 in flair-src for trunk/demos/Gps/uav/src/DemoGps.cpp


Ignore:
Timestamp:
Mar 21, 2019, 2:04:45 PM (3 years ago)
Author:
Sanahuja Guillaume
Message:

maj joystick

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/demos/Gps/uav/src/DemoGps.cpp

    r186 r314  
    163163void DemoGps::ExtraCheckJoystick(void) {
    164164  // R1 and Circle
    165   if(GetJoystick()->IsButtonPressed(9) && GetJoystick()->IsButtonPressed(4) &&
     165  if(GetTargetController()->IsButtonPressed(9) && GetTargetController()->IsButtonPressed(4) &&
    166166     (behaviourMode != BehaviourMode_t::Circle)) {
    167167    StartCircle();
     
    169169
    170170  // R1 and Cross
    171   if(GetJoystick()->IsButtonPressed(9) && GetJoystick()->IsButtonPressed(5) &&
     171  if(GetTargetController()->IsButtonPressed(9) && GetTargetController()->IsButtonPressed(5) &&
    172172     (behaviourMode == BehaviourMode_t::Circle)) {
    173173    StopCircle();
Note: See TracChangeset for help on using the changeset viewer.