exit status 1 expected unqualified-id before '.' token

This a project to build a flight controler for a drone.
the chap is called Jeff Brokking (http://www.brokking.net)

I watched a few of his videos and decided to try this project “YMFC-32 - The STM32 Arduino quadcopter”

I cant get any of his sketches to run. Could someone please look at the code below and advise me?

Thanks
Jim

Compiling sketch...
"C:\Users\Jim\AppData\Local\Arduino15\packages\arduino\tools\arm-none-eabi-gcc\4.8.3-2014q1/bin/arm-none-eabi-g++" -c -g -Os -w -DDEBUG_LEVEL=DEBUG_NONE -std=gnu++11 -MMD -ffunction-sections -fdata-sections -nostdlib --param max-inline-insns-single=500 -fno-rtti -fno-exceptions -DBOARD_generic_stm32f103c -DVECT_TAB_ADDR=0x8000000 -DERROR_LED_PORT=GPIOC -DERROR_LED_PIN=13 -mcpu=cortex-m3 -DF_CPU=72000000L -DARDUINO=10805 -DARDUINO_GENERIC_STM32F103C -DARDUINO_ARCH_STM32F1  -DCONFIG_MAPLE_MINI_NO_DISABLE_DEBUG -DMCU_STM32F103C8  -mthumb  -march=armv7-m -D__STM32F1__ -DMCU_STM32F103C8  -mthumb  -march=armv7-m -D__STM32F1__ "-IC:\Users\Jim\Documents\Arduino\hardware\Arduino_STM32-master\STM32F1\system/libmaple" "-IC:\Users\Jim\Documents\Arduino\hardware\Arduino_STM32-master\STM32F1\system/libmaple/include" "-IC:\Users\Jim\Documents\Arduino\hardware\Arduino_STM32-master\STM32F1\system/libmaple/stm32f1/include"                                                           "-IC:\Users\Jim\Documents\Arduino\hardware\Arduino_STM32-master\STM32F1\system/libmaple/usb/stm32f1" "-IC:\Users\Jim\Documents\Arduino\hardware\Arduino_STM32-master\STM32F1\system/libmaple/usb/usb_lib" "-IC:\Users\Jim\Documents\Arduino\hardware\Arduino_STM32-master\STM32F1\cores\maple" "-IC:\Users\Jim\Documents\Arduino\hardware\Arduino_STM32-master\STM32F1\variants\generic_stm32f103c" "-IC:\Users\Jim\Documents\Arduino\hardware\Arduino_STM32-master\STM32F1\libraries\Wire" "C:\Users\Jim\AppData\Local\Temp\arduino_build_412711\sketch\YMFC-32_Flight_Controller_ver-1a.ino.cpp" -o "C:\Users\Jim\AppData\Local\Temp\arduino_build_412711\sketch\YMFC-32_Flight_Controller_ver-1a.ino.cpp.o"
E:\YMFC-32-V1\YMFC-32_Flight_Controller_ver-1a\YMFC-32_Flight_Controller_ver-1a.ino: In function 'void setup()':

YMFC-32_Flight_Controller_ver-1a:119: error: expected unqualified-id before '.' token

   TwoWire.begin();                                                //Start the I2C as master

          ^

          ^

gyro_setup:10: error: expected unqualified-id before '.' token

   TwoWire.beginTransmission(gyro_address);                        //Start communication with the MPU-6050.

          ^

gyro_setup:11: error: expected unqualified-id before '.' token

   TwoWire.write(0x1B);                                            //We want to write to the GYRO_CONFIG register (1B hex).

          ^

gyro_setup:12: error: expected unqualified-id before '.' token

   TwoWire.write(0x08);                                            //Set the register bits as 00001000 (500dps full scale).

          ^

gyro_setup:13: error: expected unqualified-id before '.' token

   TwoWire.endTransmission();                                      //End the transmission with the gyro.

          ^

gyro_setup:15: error: expected unqualified-id before '.' token

   TwoWire.beginTransmission(gyro_address);                        //Start communication with the MPU-6050.

          ^

gyro_setup:16: error: expected unqualified-id before '.' token

   TwoWire.write(0x1C);                                            //We want to write to the ACCEL_CONFIG register (1A hex).

          ^

gyro_setup:17: error: expected unqualified-id before '.' token

   TwoWire.write(0x10);                                            //Set the register bits as 00010000 (+/- 8g full scale range).

          ^

gyro_setup:18: error: expected unqualified-id before '.' token

   TwoWire.endTransmission();                                      //End the transmission with the gyro.

          ^

gyro_setup:20: error: expected unqualified-id before '.' token

   TwoWire.beginTransmission(gyro_address);                        //Start communication with the MPU-6050.

          ^

gyro_setup:21: error: expected unqualified-id before '.' token

   TwoWire.write(0x1A);                                            //We want to write to the CONFIG register (1A hex).

          ^

gyro_setup:22: error: expected unqualified-id before '.' token

   TwoWire.write(0x03);                                            //Set the register bits as 00000011 (Set Digital Low Pass Filter to ~43Hz).

          ^

gyro_setup:23: error: expected unqualified-id before '.' token

   TwoWire.endTransmission();                                      //End the transmission with the gyro.

          ^

E:\YMFC-32-V1\YMFC-32_Flight_Controller_ver-1a\read_gyro_data.ino: In function 'void gyro_signalen()':

read_gyro_data:5: error: expected unqualified-id before '.' token

   TwoWire.beginTransmission(gyro_address);                       //Start communication with the gyro.

          ^

read_gyro_data:6: error: expected unqualified-id before '.' token

   TwoWire.write(0x3B);                                           //Start reading @ register 43h and auto increment with every read.

          ^

read_gyro_data:8: error: expected unqualified-id before '.' token

   TwoWire.requestFrom(gyro_address, 14);                         //Request 14 bytes from the MPU 6050.

          ^

read_gyro_data:9: error: expected primary-expression before '.' token

   acc_y = TwoWire.read() << 8 | TwoWire.read();                    //Add the low and high byte to the acc_x variable.

                  ^

read_gyro_data:9: error: expected primary-expression before '.' token

   acc_y = TwoWire.read() << 8 | TwoWire.read();                    //Add the low and high byte to the acc_x variable.

                                        ^


                                        ^

r

                                        ^



read_gyro_data:14: error: expected primary-expression before '.' token

   gyro_pitch = TwoWire.read() << 8 | TwoWire.read();               //Read high and low part of the angular data.

                                             ^



                                           ^

Multiple libraries were found for "Wire.h"
 Used: C:\Users\Jim\Documents\Arduino\hardware\Arduino_STM32-master\STM32F1\libraries\Wire
 Not used: C:\Users\Jim\Documents\Arduino\hardware\Arduino_STM32-master\STM32F1\libraries\WireSlave
Using library Wire at version 1.0 in folder: C:\Users\Jim\Documents\Arduino\hardware\Arduino_STM32-master\STM32F1\libraries\Wire 
exit status 1
expected unqualified-id before '.' token

Replace all TwoWire with Wire and try again.

Could someone please look at the code below and advise me?

What code would that be ?