初级会员
- 积分
- 74
- 金钱
- 74
- 注册时间
- 2021-4-12
- 在线时间
- 12 小时
|
8金钱
static configParam_t configParamDefault=
{
.version = VERSION,
// configParam.language = DISPLAY_LANGUAGE,
.radio.channel = RADIO_CHANNEL,
.radio.dataRate = RADIO_DATARATE,
.radio.addressHigh = ((uint64_t)RADIO_ADDRESS >> 32),
.radio.addressLow = (RADIO_ADDRESS & 0xFFFFFFFFULL),
.flight.ctrl = FLIGHT_CTRL_MODE,
.flight.mode = FLIGHT_MODE,
.flight.speed = FLIGHT_SPEED,
.flight.flip = FLIP_SET,
// configParam.jsParam.pitch.mid = 2000,
// configParam_t.jsParam.pitch.range_neg = 2000,
// .jsParam.pitch.range_pos = 2000,
//
// .jsParam.roll.mid = 2000,
// .jsParam.roll.range_neg = 2000,
// .jsParam.roll.range_pos =2000,
//
// .jsParam.yaw.mid = 2000,
// .jsParam.yaw.range_neg = 2000,
// .jsParam.yaw.range_pos =2000,
//
// .jsParam.thrust.mid = 2000,
// .jsParam.thrust.range_neg = 2000,
// .jsParam.thrust.range_pos =2000,
// .trim.pitch = 0.0,
// .trim.roll = 0.0,
};用的原子哥的程序放在自己遥控器上为什么这里报这种错误,看不懂为啥表达式错误...\..\HARDWARE\Remoter\CONFIG\src\config_param.c(29): error: #29: expected an expression
.version = VERSION,
..\..\HARDWARE\Remoter\CONFIG\src\config_param.c(32): error: #29: expected an expression
.radio.channel = RADIO_CHANNEL,
..\..\HARDWARE\Remoter\CONFIG\src\config_param.c(33): error: #29: expected an expression
.radio.dataRate = RADIO_DATARATE,
..\..\HARDWARE\Remoter\CONFIG\src\config_param.c(34): error: #29: expected an expression
.radio.addressHigh = ((uint64_t)RADIO_ADDRESS >> 32),
..\..\HARDWARE\Remoter\CONFIG\src\config_param.c(35): error: #29: expected an expression
.radio.addressLow = (RADIO_ADDRESS & 0xFFFFFFFFULL),
..\..\HARDWARE\Remoter\CONFIG\src\config_param.c(37): error: #29: expected an expression
.flight.ctrl = FLIGHT_CTRL_MODE,
..\..\HARDWARE\Remoter\CONFIG\src\config_param.c(38): error: #29: expected an expression
.flight.mode = FLIGHT_MODE,
..\..\HARDWARE\Remoter\CONFIG\src\config_param.c(39): error: #29: expected an expression
.flight.speed = FLIGHT_SPEED,
..\..\HARDWARE\Remoter\CONFIG\src\config_param.c(40): error: #29: expected an expression
.flight.flip = FLIP_SET,
..\..\HARDWARE\Remoter\CONFIG\src\config_param.c: 0 warnings, 9 errors
|
|